Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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!