Forum Discussion
Power BI Report Builder - Grouping Issue
- 9 months ago
Hi Anonymous ,
Regarding the expand/collapse functionality, you’re right that it’s available by default only when using the Matrix Wizard, but you can still enable this feature manually within your current design. To achieve this, open the Design View and select the row group (for example, your first dimension level) in the Row Groups pane. Then, go to Group Properties - Visibility. Set the Initial visibility to Hidden if you want the group to start collapsed, and under Display can be toggled by this report item, select the textbox from the parent group header that will control the expand/collapse behavior. Repeat this step for each sub-group, ensuring that every child group’s visibility is toggled by its parent’s textbox. This setup will allow hierarchical expand/collapse just like the matrix wizard provides. Also, make sure that your row groups and detail rows use the same dataset fields to maintain correct aggregations and prevent mismatched values like before. If your main requirement is simply to keep the matrix structure while ensuring interactivity, another option is to start with the Matrix Wizard, generate the layout, and then switch to Design View to customize expressions or remove unwanted totals this way, the toggling functionality remains intact. This approach gives you both correct grouping behavior and dynamic expand/collapse control without depending entirely on the wizard defaults.
Hello Anonymous
ncorrect group expressions – Each group must use its own field (e.g., =Fields!Region.Value, =Fields!Country.Value, etc.).Wrong hierarchy setup – Add each as a child group, not a parent.Detail row duplication – Remove or correctly group the detail row.Duplicate rows in dataset – Check your dataset; duplicates cause repeated values.
Ensure groups are properly nested and each uses the correct field for grouping.
If my response helped you, please consider clicking
Accept as Solution ✅ and giving it a Like 👍 – it helps others in the community too.
Thanks,
Connect with me on:
- Anonymous10 months agoNot applicable
Hi pankajnamekar25
Thank you for your reply!
I created matrix via Matrix Wizard, I haven't create hierarchy by myself.
So each nested field might be a child group of previous one.
Expression of each field also looks correct:
Ensure groups are properly nested and each uses the correct field for grouping.What do you meant by this?