CRM Report Viewer allows user created calculated columns where you can specify expressions for how your column values should be calculated.
When defining an expression it is possible to use values from other columns (of the same row). There are also a large number of built in functions (numerical, logical, and mathematical as well as date and time related) available when defining an expression.
Everything is available through a graphical interface which contains basic help for all functions.
Calculated columns are saved as part of a layout (see section on Layout files in Report Viewer: Introduction) so changes are not persistent unless the layout is saved (exported).
Let's look at how calculated columns work:
Add a calculated column
- Right click on any existing column header.
- Choose Add calculated column, this brings up the Column Properties window.
Refer to Column Properties section for details about its usage. - Click OK to add the new column or cancel to abort.
Modify a calculated column
- Right click on the column header of the calculated column to modify.
- Select “Edit calculated column” , this brings up the Column Properties window.
Refer to Column Properties section for details about its usage. - Click OK to add the new column or cancel to continue using the previous settings.
The option “Edit calculated column” is only visible when right-clicking on a calculated column.
Remove a calculated column
- Right click on the column header of the calculated column to remove.
- Select Remove calculated column.
The option “Remove calculated column” is only visible when right-clicking on a calculated column.
Column Properties
- Column Id: The id is used to identify the column and it is not possible to edit once a column is created. Each column in a report must have an unique id so it is recommended use the Header but with lowercase characters and without spaces
- Header: This is the text that should appear in the column’s header.
- Type of data: Depending on the type selected the values will have displayed using different formatting. A preview of the formatting is available in parenthesis after the name of the type. The choice also affect if sub-totals will be calculated or not for the column (sub-totals are only calculated for Numeric and Integer).
- Edit: Edit the formula for the column
- Aggregation Type: Sets the aggregation type for the column totals.
- Weight column: Choose which column that should act as weight column
- Average Denominator: Choose which column should act as average denominator.
Take a look at the below video to learn more
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article