2.330 Filter

The Filter element specifies a filter to apply to rows of data within a DataSet (in RDL 2008/01, RDL 2010/01, and RDL 2016/01), a group, or a data region.

The following are the parent and child elements of the Filter element.

Parent elements

Filters

Child elements

Filter.FilterExpression

Filter.FilterValues

Filter.Operator

The following is the XML Schema definition of the Filter element.

 <xsd:complexType name="FilterType">
   <xsd:choice minOccurs="1" maxOccurs="unbounded">
     <xsd:element name="FilterExpression" type="xsd:string" />
     <xsd:element name="Operator">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="Equal" />
           <xsd:enumeration value="Like" />
           <xsd:enumeration value="NotEqual" />
           <xsd:enumeration value="GreaterThan" />
           <xsd:enumeration value="GreaterThanOrEqual" />
           <xsd:enumeration value="LessThan" />
           <xsd:enumeration value="LessThanOrEqual" />
           <xsd:enumeration value="TopN" />
           <xsd:enumeration value="BottomN" />
           <xsd:enumeration value="TopPercent" />
           <xsd:enumeration value="BottomPercent" />
           <xsd:enumeration value="In" />
           <xsd:enumeration value="Between" />
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:element>
     <xsd:element name="FilterValues" type="FilterValuesType" />
     <xsd:any namespace="##other" processContents="skip" />
   </xsd:choice>
   <xsd:anyAttribute namespace="##other" processContents="skip" />
 </xsd:complexType>