The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 ? mScore
Many thanks
David
Solved! Go to Solution.
change your TopN measure to
TopN = if([RANK] <= SELECTEDVALUE('Top N'[Top N]),1,0)
and then filter your visual by TopN = 1
change your TopN measure to
TopN = if([RANK] <= SELECTEDVALUE('Top N'[Top N]),1,0)
and then filter your visual by TopN = 1
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
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.
Thanks @lbendlin
I'll keep that in mind. For the moment I have duplicated the table and added a top n and bootom n. This way they can compare the top and the bottom at a glance.
Thanks for your reply
@ADP007 ,
Use what if analysis with incremant of 1 for N filter.
Regards,
Manikumar
Proud to be a Super User!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
94 | |
93 | |
88 | |
70 | |
65 |
User | Count |
---|---|
232 | |
128 | |
116 | |
82 | |
82 |