Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi,
I am trying to filter a list of Top N hospitals based on a value using Top N what if slicer selection. I have different other measures I need to show in the table visual to users too. It works fine when I just use the Test measure that Rankx is performing on but when I add other measures in the visual, the rankx DAX doesn't work.
| Hospital_Name | CustomHospitalType | Custom_IDN | FullAddress | Test | Other Measure |
| A | Hospital | StandAlone | CT,06053 | 100$ | 10% |
| B | Hospital | StandAlone | CA,90638 | 98$ | 15% |
| C | Hospital | StandALone | IL,60521 | 95$ | 12% |
My Current formula:
Solved! Go to Solution.
Thanks a lot for looking into it. I was able to do it by doing rank as measure
Thanks a lot for looking into it. I was able to do it by doing rank as measure
Hi @Fuhrer786
Congratulations, if the issue has been solved, please adopt your solution to help others.
Best Regards,
Link
Hi @Fuhrer786,
You can try to use RANKX by creating calculated column.
You can refer this related post to implement the dax conversion.
So that the Rankx results are not affected by the line context.
Best Regards,
Link
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.
| User | Count |
|---|---|
| 80 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |