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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
KhrystinaM
Helper I
Helper I

Calculating top 20 from multiple measures

Hello, 

 

I have created multiple measures to get the count of each row. Those measures were added to a pie chart, but I only want to see the top 20 results. I am not sure how to acheive this. 

 

KhrystinaM_0-1703267337615.png

 

Measure formula: 

Advance Authority = CALCULATE(COUNTA('Missing Docs'[Missing Docs - Advance Authority]),'Missing Docs'[Missing Docs - Advance Authority] IN { "Advance Authority" })
3 REPLIES 3
Fowmy
Super User
Super User

@KhrystinaM 
From what you have done, I can see that you have created separate measures hard coding the values for the filed Missing Docs - Advance Authority.  I suggest you change the approach to creating a single measure wich will pick the Missing Docs - Advance Authority from the filter context. This way you will be able to use the Missing Docs - Advance Authority column in the legend of the chart. This will also allow you to show only the top 20 using an additional meaure. Please share a dummy file with data.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy, thank you for your response. I had to create a measure for each miss document column. Advance Authority is one of around 80 missing doc columns. I'm not sure if your approach will work for me?

KhrystinaM_0-1704225067662.png

 

KhrystinaM
Helper I
Helper I

@johnt75, you helped out on this topic Solved: Rank multiple measures each with different calcula... - Microsoft Fabric Community and I'm wonding if my issue is the same? If so, how do I create a new fields parameter?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors