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! Request now
HI Everyone!
I am working in a Restaurant data and I am trying to find top 2 cuisines per price range (low, medium, high).
I have tried to use this measure but it doesn't seems to work-
Thanks
Radhika
Solved! Go to Solution.
Hi @Radhika2605 ,
Try the following formula:
Measure =
RANKX(
ALL('Restaurant Cuisines'[Cuisine]),
CALCULATE( COUNT('Restaurant Cuisines'[Restaurant_ID]) ),
,
DESC,
Dense
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Radhika2605 ,
Try the following formula:
Measure =
RANKX(
ALL('Restaurant Cuisines'[Cuisine]),
CALCULATE( COUNT('Restaurant Cuisines'[Restaurant_ID]) ),
,
DESC,
Dense
)
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 93 | |
| 70 | |
| 50 | |
| 40 | |
| 39 |