Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
Omarb33
Regular Visitor

Issue when filtering with RANQX

Hello,

I have two tables in power BI. One table for stores and another one for reviews which are linked by a common store id.
I have created a table visual and added a rank to classify stores based on the average ranking and added also the number reviews in the rank formula to break ties.

When adding the rank measure in the table everything seems well as. However when I filter by rank (in visual filters) to show only top 20 stores, I have an issue as only 16 values appear. Why is there a mismatch and how can I solve this issue ? 

 

Your help will be much appreciated.
Many thanks!

2 REPLIES 2
Anonymous
Not applicable

Hi @Omarb33 

 

Can you provide your sample pbix file and the results you expect? So that I can help you better.  Please remove any sensitive data in advance.

Best Regards,

Jayleny

amitchandak
Super User
Super User

@Omarb33 , Try the new rank function it is better of to break ties

 

example


New Rank Desne = rank(DENSE, ALLSELECTED('PMP_GSA_itm_stats_v202312_stores'[Store]),ORDERBY([Average Rating],DESC,'PMP_GSA_itm_stats_v202312_stores'[Store] asc ))

 

 

Power BI - New DAX Function: RANK - How It Differs from RANKX: https://youtu.be/TjGkF44VtDo

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors