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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Query for ranking

I have below data model 

 

A123Chauhan_0-1714472144951.png

Need to display below :

Most Purchased Item by Country

the most purchased product based on the age category less than 30 and above 30

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Sergii24 

 

The issue is resolved. I changed the crossfilteration to Both from Single in data model. 

Started getting correct rank post that.

 

Thanks!

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Sergii24 

 

The issue is resolved. I changed the crossfilteration to Both from Single in data model. 

Started getting correct rank post that.

 

Thanks!

Great, I'm glad that you found a solution! 🙂

Sergii24
Super User
Super User

Hi @Anonymous, so what exactly is your question to the community? How did you try to achieve the desired result and what exactly didn't work?

Anonymous
Not applicable

Hi @Sergii24 

 

A123Chauhan_0-1714473144733.png

I need to display higlighted values as they are max purchased items for each country 

trying to rank 

= RANKX(ALL('Item'[Item]), COUNT('Order'[Item ID]), ,DESC
 
but not working

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.