This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All,
I m using below measures to get Top 20% from vendor list.
Top_20%_Vendor = IF (ISBLANK ( [Invoiced] ),BLANK (),IF ([Ranking]< ( CALCULATE ( [Unique_Vendor], ALL ( f6MonthSpend ) ) * 0.2 ),[Invoiced],BLANK ()))
Then i m using below measure to get Top N from above 20% list.
Issue : It takes around 1 min to get Top N .
Hi @Anonymous ,
Would you please try to use IF instead of switch in your TOPN?
TopN =
IF (
[SelectedTOPNValue] = 0,
[Invoiced],
IF ( [Ranking] <= [SelectedTOPNValue], [Invoiced] )
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
please provide sample data in usable format
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 45 | |
| 33 | |
| 24 | |
| 23 |