Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
As an example I have a sales table with some info like person, their sales amount, and the number of sales transactions.
I created a measure to rank the number one salesperson by sales amount, which changes dynamically with filters such as region, start date, etc. The below measure works perfectly.
Sales Ranker = RANKX(ALLSELECTED('Table'),CALCULATE([Sames Amount]),,DESC,Dense)
I then wanted to create a Card visual which displays the stats of the number 1 salesperson only which also works fine and appropriately with my slicers.
Solved! Go to Solution.
Hi @vendersonalias0 ,
You could modify the measure as:
If([sales transaction]>10,9999,[rank_sales])
Then use MINX('Table',[rank_sales]) instead of "1" in the formula.
Best Regards,
Jay
Hi @vendersonalias0 ,
You could modify the measure as:
If([sales transaction]>10,9999,[rank_sales])
Then use MINX('Table',[rank_sales]) instead of "1" in the formula.
Best Regards,
Jay
Thanks that makes sense, I'm having a bit of trouble wiht the dax, is there a way to create this rank measure while keeping the Allselected, so it changes dynamically with filter?
I created a custom column which denotes whether something has > 10 transactions, and it works well with tables as a visual filter, but I can't use it in cards since it is aggregated
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.