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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.