Forum Discussion
ADP007
5 years agoHelper IV
Dynamic Top N
Hi all, I have seen several examples with a dynamic top N but I just can't seem to get it working in my report. Could someone have a look at my example mScore_topN.pbix at the following link ? m...
- 5 years ago
change your TopN measure to
TopN = if([RANK] <= SELECTEDVALUE('Top N'[Top N]),1,0)and then filter your visual by TopN = 1
lbendlin
5 years agoSuper User
change your TopN measure to
TopN = if([RANK] <= SELECTEDVALUE('Top N'[Top N]),1,0)
and then filter your visual by TopN = 1
- ADP0075 years agoHelper IV
Hi lbendlin
This is great many thanks.
I'm not very good with DAX. Any idea how I could also add a Bottom N filter ?
Thanks
David
- manikumar345 years agoSolution Sage
- lbendlin5 years agoSuper User
Run a MAXX over the RANKX and then subtract the rank from the result. That makes the BottomN behave like the TopN.
Watch out for performance issues with large lists.