Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
here is an example.
I have 3 countries.
Each country has some regions.
Each region has temperatures for each month.
I want to show the stacked graph to show the TOP5 regions with highest temperatures for last 6 months
As we know topN pulls whole data, sorts to find top N and simply shows the values for those categories ( regions) over 6 month period.
Now,I want to apply the filter of countries. I want the TopN to look for the data from only selected countries, apply the Top5 logic only for temperatures for regions from selected countries and replot.
I noticed this does not work as expected above.
Does anyone know how to solve this?
-SuG
This one should help
https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/
You have to filter a using rank
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
Hi @Anonymous,
You can create a measure below:
Hi @Anonymous,
Would you please share some sample data then clarify corresponding result?
Best Regards,
Qiuyun Yu
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 98 | |
| 72 | |
| 50 | |
| 50 | |
| 43 |