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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.