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
cheid_4838
Helper IV
Helper IV

Grouping a Percentage Measure

I have the below idle percentages that I would like to group into buckets (80,60,40,20,15,10,5).  Then show the distribution under each.  I created the below switch statement as a column and measure.  When I use it as a column I only get 5, 60, and 80. Not sure why I am only getting those buckets.  When I use it as a measure I can't use it as a row or column.  How do I group a measure that is calculating a percentage into groupings?  I thought this would be a pretty simple excercise.  Any thoughts that could help? Thanks.

 

Idle Grouping = SWITCH(
    TRUE(),
    [Long Idle Percentage] <=.5,"5%",
    [Long Idle Percentage] >.5 && [Long Idle Percentage] <=.10, "10%",
    [Long Idle Percentage] >.10 && [Long Idle Percentage] <=.15, "15%",
    [Long Idle Percentage] >.15 && [Long Idle Percentage] <=.20, "20%",
    [Long Idle Percentage] >.20 && [Long Idle Percentage] <=.40, "40%",    
    [Long Idle Percentage] >.40 && [Long Idle Percentage] <=.60, "60%",
    [Long Idle Percentage] >.60 && [Long Idle Percentage] <=1, "80%+",
    "OTHER")

 

 

cheid_4838_0-1737646581355.png

 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

1 REPLY 1
johnt75
Super User
Super User

You need the dynamic segmentation pattern - https://www.daxpatterns.com/dynamic-segmentation/ 

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.