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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Richard_Halsall
Helper IV
Helper IV

Dynamic Grouping based on Sum of Value

Hi

I have viewed many posts but am struggling with a simple grouping function.

 

In this sample data I have 4 tables, DimClient, DimCountry, FactTurbine and a disconnected banding table

 

FactTurbine is linked to DimCustomer on ClientID and DimCountry on CountryID

 

I have created a simple measure which sums total turbines from the FactTurbine table  and using a country slicer can create the dynamic visualisation below:

 

Richard_Halsall_0-1628610511080.png

 

I now need to create a piechart visualisation that sums the number of clients based on the total turbines measure based on a max and min value in the disconnected banded table.

 

So if the bands in the disconnected banded table were

201-500

101-200

1-100

 

Based on the above visual of 15 clients, the calculated count of clients would be:

201-500 = 5

101-200 = 9

1-100 = 1

 

Any help would be appreciated

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Richard_Halsall ,

 

Based on the disconnected table you created, create a measure to dynamically distinguish whether the sum of the current client is in this range, and count the clients.

Vlianlmsft_0-1628748882926.pngVlianlmsft_1-1628748898373.png

 

I created a sample pbix for your reference:

 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi Liang,

I've been struggling with a measure like this for hours and your post solved my problem.

Thank you very much!

Jason

V-lianl-msft
Community Support
Community Support

Hi @Richard_Halsall ,

 

Based on the disconnected table you created, create a measure to dynamically distinguish whether the sum of the current client is in this range, and count the clients.

Vlianlmsft_0-1628748882926.pngVlianlmsft_1-1628748898373.png

 

I created a sample pbix for your reference:

 


Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.