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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Help with ranking that ignores slicers

I have am attempting to build a report that ranks Stores, and shows that Stores ranks of certain Products vs all other Stores. My data is Sales by Product, by Store, by week. 

 

Now I have been able to create a measure which provides a ranking that works when using a table visual.

Rank = RANKX(ALL(Data[Store]),CALCULATE(sum(Data[Sales])))
 
However I would like to use slicers to refine my report page down to a single Store at a time. However when I do this the ranking is always 1. I cannot work out a way so the ranking is still based on all Stores.
 
I have looked at previous problems on this forum like this but cannot seem to adapt their answers to fit my data / needs.
 
Many thanks in advance for any help!
2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Please share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-lili6-msft
Community Support
Community Support

HI, @Anonymous 

Sample data and expected output would help tremendously. 

For rankx measure problem, please share some simple sample data and the expected output in different scenario.

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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