How to group by two fields in crystal reports
-
11-12-2019 - |
Question
Currently I can group just by one field not by two fields in a cross-tab
Solution
For reports, you just select Insert > Group
and add a second group. For crosstabs, just add them to the Rows section.
If you want to have two physically separate statuses ("Temporary" and "Permanent") like in the picture, you'll want two physically separate crosstabs (the second of which will need to be in a subreport).
It would be easier to have one crosstab and just add the Status to the Row section.
OTHER TIPS
You should create a formula field that concatenates the text of these two fields, then use that formula as the field that you group on.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow