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
RogerSteinberg
Post Patron
Post Patron

Ranking game sales by month

Hi,

 

I was able to rank sales by various dimensions on a daily basis but wasn't able to incorporate the monthly ranking into my measure:

RANKX( 
    ALLSELECTED( 'Table'), // Need to keep allselected so that ranking applies to other attributes
    [Revenue Sales], // Measure
    , DESC, Dense 
    )
    
5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hi @RogerSteinberg ,

 

Please give a copy of the sample data and the formula for the measure [Revenue Sales].

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Tahreem24
Super User
Super User

Try the measure:

RankColumn = RANKX(FILTER(Table,Table[Month]=EARLIER(Table[Month])),RevenueMeasure,,DESC, Dense)

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

By doing so , you remove the allselected logic which is crucial when I need to rank  games by sales . I also have slicers .

Use this:

RankColumn = RANKX(FILTER(ALLSELECTED(Table),Table[Month]=EARLIER(Table[Month])),RevenueMeasure,,DESC, Dense)

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

it gives me the same value. its not working

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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