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 have data like below table, i want to add Top N Invoice Filter
output : want to create Rank by Invoice, and also want to add Rank and Top N filter in below Table
Thanks,
Vengadesh P
Solved! Go to Solution.
Hi @Anonymous,
I think you need a unique field that used to combine with the amount field for ranking or it is hard to accurately filter only top n records. (for the same values)
Add an index column (Power Query) - Excel (microsoft.com)
Regards,
Xiaoxin Sheng
Hi @Anonymous,
I think you need a unique field that used to combine with the amount field for ranking or it is hard to accurately filter only top n records. (for the same values)
Add an index column (Power Query) - Excel (microsoft.com)
Regards,
Xiaoxin Sheng
Hi @Anonymous
Create these two calculated columns and you will get the desired result:
Rank= RANKX(Table,Table[Sales AMT])
Top 5 Filter= VAR c=RANKX(ALL(Table),Table[Rank],,ASC) return IF(c<=5,1,0)
Did it work ? Mark it as a solution to help spreading knowledge.
A kudos would be appreciated
@Anonymous You can create a custom column in your data like below
Proud to be a Super User!
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |