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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
A123-Chauhan
Employee
Employee

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
A123-Chauhan
Employee
Employee

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
A123-Chauhan
Employee
Employee

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 @A123-Chauhan, so what exactly is your question to the community? How did you try to achieve the desired result and what exactly didn't work?

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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