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

Preparing for a certification exam? Ask exam experts all your questions on May 15th. 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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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