Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I am wondering if there is a way to remove the Top & Bottom 50 rows by a Value specified in one column.
Few Main Points to consider:
Thank you for your time and efforts here.
Regards,
Ryan Mulhollem
Solved! Go to Solution.
hi,@ryan_mulhollem
After my research, you can do these like below:
basic data
And i need to remove Top/Bottom 5 rows by Value
use this formula to create a new table
Table = var _count =COUNTROWS(Table1) return var _table5=TOPN(_count-5,Table1,Table1[rank],ASC) return var _table10=TOPN(_count-10,_table5,Table1[rank],DESC) return _table10
Result:
here is demo,please try it.
https://www.dropbox.com/s/nutv50e6509jdq0/Remove%20TopBottom%2050%20rows.pbix?dl=0
Regards,
lin
Thank you for the reply. As per checking, this formula did work. I would also want to add for anyone else interested the formula to create a table for only the top 50:
OnlyTop50 =
var _table5=TOPN(50,table,table[column],DESC) return
_table5
Thank you!
hi,@ryan_mulhollem
After my research, you can do these like below:
basic data
And i need to remove Top/Bottom 5 rows by Value
use this formula to create a new table
Table = var _count =COUNTROWS(Table1) return var _table5=TOPN(_count-5,Table1,Table1[rank],ASC) return var _table10=TOPN(_count-10,_table5,Table1[rank],DESC) return _table10
Result:
here is demo,please try it.
https://www.dropbox.com/s/nutv50e6509jdq0/Remove%20TopBottom%2050%20rows.pbix?dl=0
Regards,
lin
Thank you for the reply. As per checking, this formula did work. I would also want to add for anyone else interested the formula to create a table for only the top 50:
OnlyTop50 =
var _table5=TOPN(50,table,table[column],DESC) return
_table5
Thank you!
User | Count |
---|---|
127 | |
108 | |
99 | |
63 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |