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
JamesBurke
Helper II
Helper II

Rank x

Hi All, 

 

I'm Looking at creating a ranking system that ranks a store by all Months 

 

Store NameMonth Rank
Store 1Aug1
Store 1Sep2
Store 1Oct2
Store 1Nov1
Store 1Dec1

 

Something like above i want to rank stores based on their  total usages by Month so as a result i can create a Matrix table that says store 1 has been rank 1 x amount of times. 

 

Thanks , James.  

1 ACCEPTED SOLUTION
v-xinruzhu-msft
Community Support
Community Support

Hi @JamesBurke 

You can refer to the following solution.

Sample data 

 vxinruzhumsft_0-1715910195179.png

You can create a measure

 

MEASURE =
RANKX (
    ALLSELECTED ( 'Table'[Store Name], 'Table'[Month] ),
    CALCULATE ( SUM ( 'Table'[Usage] ) ),
    ,
    ASC,
    DENSE
)

 

 Output
vxinruzhumsft_7-1715910541162.png

 


Best Regards!

Yolo Zhu

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

 

 

 

 

 

View solution in original post

1 REPLY 1
v-xinruzhu-msft
Community Support
Community Support

Hi @JamesBurke 

You can refer to the following solution.

Sample data 

 vxinruzhumsft_0-1715910195179.png

You can create a measure

 

MEASURE =
RANKX (
    ALLSELECTED ( 'Table'[Store Name], 'Table'[Month] ),
    CALCULATE ( SUM ( 'Table'[Usage] ) ),
    ,
    ASC,
    DENSE
)

 

 Output
vxinruzhumsft_7-1715910541162.png

 


Best Regards!

Yolo Zhu

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

 

 

 

 

 

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.