Fields options can be used to create a new field when a required information is not directly available in the retrieved dataset. It will also allows you to change the column names of the existing fields in the dataset.
Refer Create Data section and create a data in report designer.
DATA
panel to which you want to add fields.
Fields...
option in the menu. Now, the available fields in the selected dataset will be listed in the Fields
dialog as shown below.
Add
button and choose Calculated Field
in the menu.
Field Name
text box, type the unique name for the field.
Field Source
text box, enter the static value directly or set an Expression for the field. Here, =Month(Fields!OrderYear.Value)
expression is assigned to the OrderMonth
field.
OK
button and the newly added field will be listed under the respective dataset.
The expression for a calculated field cannot contain aggregates and the field name must be unique in the dataset.
Follow steps 1 - 5, to create calculated field.
Expression
.
Expression Builder
will be open as shown below.
To learn more about handling expressions in report designer refer Expressions section.
OK
button.
Black color
, if the expression is applied to the dataset field.
Reset
.
White color
, after reset action.
DATA
panel to which you want to add fields.
Fields...
option in the menu. Now, the available fields in the selected dataset will be listed in the Fields
dialog as shown below.
Add
button and choose Query Field
in the menu.
Field Name
text box, type the unique name for the field.
Field Source
text box, enter the name of an existing field on the data set.
OK
button and the newly added field will be listed under the respective dataset.
Click on the Delete icon in the right corner to remove the required fields from the dataset.
When you open the fields dialog, the available fields in the respective dataset will be listed in the Fields
dialog as shown below.
To change the existing field name, modify the name in first textbox of the respective row and click on the OK
button.
Now, the respective field name will be updated in the dataset collection and in the list view.