Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RDansereau
Frequent Visitor

Need Help with Dynamic Grouping Please.

Hi,

Trying to dynamically create 1 visual that shows groups based on slicer selection-no hard coding. Data is not imported(if that matters).
I have tried multiple ways, but cannot seem to get a solution to work. Thank you in advance.
Group 1 is avg of selected group

Group 2 is avg of the selected group's category

Group 3 is avg of all.
 RDansereau_0-1746480168234.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RDansereau,

 

Power BI does not support truly dynamic grouping in the way you can dynamically segment in tools like R or Python. What you’re aiming for — grouping data into multiple levels based purely on slicer input — cannot be natively modeled in a single visual using dynamic group definitions.

The solution shared by @lbendlin is currently the most practical workaround.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!


Regards,
Vinay Pabbu

View solution in original post

4 REPLIES 4
RDansereau
Frequent Visitor

Not sure what you mean. This is test data scenario. There is no data repeated unneccessarily.
We need to show the rating comparisons of accounts in 3 groups. Rating of the Account, Rating of all accounts within the same industry of the selected account & lastly all accounts for all industries.

Anonymous
Not applicable

Hi @RDansereau,

 

Power BI does not support truly dynamic grouping in the way you can dynamically segment in tools like R or Python. What you’re aiming for — grouping data into multiple levels based purely on slicer input — cannot be natively modeled in a single visual using dynamic group definitions.

The solution shared by @lbendlin is currently the most practical workaround.

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!


Regards,
Vinay Pabbu

Thank you both for your reply. I am disappointed that Power Bi doesn't support this. 😞 Thanks for the best solution!

lbendlin
Super User
Super User

This is not dynamic grouping (which isn't supported by Power BI anyway) - these are three separate measures that frankly should not be shown like this (repeating the same data in a visual is a design red flag).

lbendlin_0-1746485104480.png

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.