Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |