Create a report schema transformation
You can create a report schema transformation (.rst) from a data schema (.rdd or .xsd) or another report schema transformation.
- Select File > New > Reports > Report Schema > Schema Transformation (.rst) and click OK.
-
On the Source selection and file location page, select the input and
output files:
- Schema Location - The file name of the schema to transform. This can be a data schema (.rdd or .xsd) or another report schema transformation (.rst). If the Genero report schema (.rdd) contains multiple reports, or the XML schema (.xsd) contains multiple root elements, you must also disambiguate the selection using the Schema Root field.
- Schema transformation file path - The full path and file name for the report schema transformation. You can choose whether to insert the file into the current project.
-
On the Data building page, select the data by using the arrows or by
dragging and dropping items.
Tip: You can duplicate data by dragging and dropping it multiple times. See Duplicate data using a report schema transformation for further information.
- Optional:
The Grouping data page displays the items to group by. To change the
default grouping:
- In the Results section, select the item you want to change.
- In the Group By section, click the + button.
- Select the new Group By item and select the field from the drop-down list.
- Add more Group By items as required.
The Repetitions section shows the original grouping order, and the Results section shows the transformed grouping order. You can rename items in the Results section using F2. - Optional:
On the Aggregations page, add computed aggregations to
the data using the + button. For each aggregation,
select:
- Variable - The variable to aggregate.
- Aggregation - The rule that determines the aggregation type, for example, Sum or Average.
- Running - If selected, the running total is calculated, depending on the aggregation type. For example, the running total or the running maximum.
- Sort Key - If Ascending or Descending is
selected, the data is sorted by the aggregate value of the variable.
This sorting does not affect the previous grouping of items. For example, on the Grouping Data page you group by region, and on the Aggregations page you sort the data by turnover in ascending order. The list will start with the region that has the lowest turnover, and the list of products in that region will be sorted by turnover.
- Click Finish.
You can now attach the report schema transformation to the report design document.