cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Alberto_Orta
Regular Visitor

Create a Bucket based on a aggregated meassure in an upper level

 I need to make Buckets based on KPI col aggregated by Estado:  
Buckets: Green >90 , Yellow between 80 and 90 and Red <80.  But when I have the buckets, these are calculated in the lower level instead in the upper level.  Then when I choose the red color Bucket I get 3 Estados.

 

My data

Alberto_Orta_0-1631901194037.png

 

Grouped Data ( avg of KPI)

Alberto_Orta_1-1631901892535.png

 

This is what I'm having (By creating the buckets with a calculated column applying rules for Red,Green,Yellow)

Alberto_Orta_2-1631902006298.png

Instead of 3,2,1

Somebody has made something similar?

 

1 ACCEPTED SOLUTION
Alberto_Orta
Regular Visitor

I have found a workaround by creating the three Segments with three measures:

RedBucket=CountRows (  Filter (  Summarize (  Values ('BDD'[Estado]) ,[Estado],"K", Average ( BDD[Kpi])  )  ,[K] >0.90 )  )

View solution in original post

2 REPLIES 2
Alberto_Orta
Regular Visitor

I have found a workaround by creating the three Segments with three measures:

RedBucket=CountRows (  Filter (  Summarize (  Values ('BDD'[Estado]) ,[Estado],"K", Average ( BDD[Kpi])  )  ,[K] >0.90 )  )
TomMartens
Super User
Super User

Hey @Alberto_Orta ,

 

what you are trying to achieve is a little more complex as the segmentation (the bucketing) is based on a measure.

You have to use the pattern described in this article: https://www.daxpatterns.com/dynamic-segmentation/

 

If you need more help, please create a pbix file that contains sample data but still reflects your data model (including the measure or calculated column that calculates the KPI). Upload the pbix to onedrive or dropbox and share the link. If you are using Excel to create the sample data instead of the manual input method, share the xlsx as well.

 

Hopefully, this provides what you are looking for to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors