Group Expressions in Reportviewer
-
20-08-2019 - |
Question
I am trying to figure out how to group data contained inside a Table. I want to be able to group by data that is similar in a column.
For example:
- Bob, 23, Cereal
- Bob, 24, Oatmeal
- Susan, 25, Cream
- Susan, 26, Horse
The above, I am trying to find an expression to use that will allow me to group both Bobs together, and both Susans together.
I am assuming this is a simple thing to do, however, I cannot figure it out.
Solution
I would set up a sort order.
Edit your group and go to the Sorting tab. Then I'd put in =Fields!Name.Value
with Ascending as the Direction. Forgive me if I'm not understanding the question correctly.
If you have a static number of names you could statically assign your groups with =Fields!Name.Value="Bob"
and another group with =Fields!Name.Value="Susan"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow