Using the same data as your example:
I have a simple table based on this:
Note that I have one group and I am displaying a header row for this group. As such, all the different charge fields are using the Sum
aggregate.
The group has two grouping items:
The expression for the second item is:
=IIf(Parameters!DisplayByOrder.Value, Fields!Order.Value, Nothing)
This expression is saying that if the parameter is True
, include grouping by the Order
field, otherwise no grouping.
I've also hidden the Order
column based on the parameter selection.
Works OK for me when run: