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
Syndicate_Admin
Administrator
Administrator

Group by the value of a measure

Good day, I have the next doubt.

Perform the following measurements to be able to calculate some materials with greater amount of use, through ranges, in which you calculate a ranking, and a cumulative percentage (ranges)

pauiglesias_0-1629736550526.png

pauiglesias_1-1629736860213.png

Before you can filter, use the following measure:

pauiglesias_2-1629736911842.png

pauiglesias_3-1629737167209.png

How can I calculate the lines with this measurement and filter applied? For example if filter by ranges to 8% throws me 3 lines, but I do not know how to reflect that value on a card, that is, how do I group by the value of a measure?

2 REPLIES 2
Icey
Community Support
Community Support

Hi @pauiglesias ,

 

Please try this:

Filter Measure =
SWITCH ( [Total Acumulado OS] <= SELECTEDVALUE ( 'Rango OS'[Rango] ), 1, 0 )

 

 

Best Regards,

Icey

 

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

amitchandak
Super User
Super User

@Syndicate_Admin , replace var total

by

calculate(sum( consumo[candid OS]) , filter(allselected(consumo) , consumo[model] =max(consumo[model]) && consumo[series] =max(consumo[series])) )

 

and try

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.