Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 81 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |