Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Memorable Member
Memorable Member

Rank by Department - Company Level

I have the measure below that lets me rank products by each department type. However I hit a snag when I bring in branch level as it re-evalutes it.
What I want to do is to see what the department rank is for the company level against each branch. This will assist me in identifying top selling products out of stock in branches.
Rank by Revenue = RANKX(ALLEXCEPT('Product Table', 'Product Table'[Department Description]),
CALCULATE([Sales (Nett)]),,DESC,Dense)
Any ideas on how i might achieve this?
Community Support
Community Support

HI @davehus,


Since I'm not so clear for your data structure, can you please share some sample data for test?



Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors