2.54 Subtotal

Applies to RDL 2003/10 and RDL 2005/01

The Subtotal element specifies a subtotal column or row to include in a Matrix. The subtotal is specified for a DynamicColumns element or a DynamicRows element. The subtotal is applied to the full set of data for the entire row or column group that is specified by the parent element.

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

Parent elements

DynamicColumns

DynamicRows

Child elements

Subtotal.DataElementName

Subtotal.DataElementOutput

Subtotal.Position

Subtotal.ReportItems

Subtotal.Style

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

 <xsd:complexType name="SubtotalType">
   <xsd:choice minOccurs="1" maxOccurs="unbounded">
     <xsd:element name="ReportItems" type="ReportItemsType" />
     <xsd:element name="Style" type="StyleType" minOccurs="0" />
     <xsd:element name="Position" minOccurs="0">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="Before" />
           <xsd:enumeration value="After" />
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:element>
     <xsd:element name="DataElementName" type="xsd:string" minOccurs="0" />
     <xsd:element name="DataElementOutput" minOccurs="0">
       <xsd:simpleType>
         <xsd:restriction base="xsd:string">
           <xsd:enumeration value="Output" />
           <xsd:enumeration value="NoOutput" />
           <xsd:enumeration value="ContentsOnly" />
         </xsd:restriction>
       </xsd:simpleType>
     </xsd:element>
     <xsd:any namespace="##other" processContents="skip" />
   </xsd:choice>
   <xsd:anyAttribute namespace="##other" processContents="skip" />
 </xsd:complexType>