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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Rank with Month on Month Rank change (Trend)

Hi Everyone,

 

I have calculated the Rank of certain items available in table. Those Items values are changing month on month basis.

 

I want to exclude one of the group and then want to rank that particular group. 

 

Raw Data

 

GroupItemValue 
Oneitem1778 
Oneitem2617 
Oneitem3540 
ThreeItem4847 
ThreeItem6873 
ThreeItem9781 
Twoitem8512 
TwoItem10785 
Twoitem5623 

 

I have used given rank function to get the rank for each item 

RankXDescMeasure3 = 
    RANKX(
        FILTER(
            ALL(
                'Table'[Group],
                'Table'[Item]
            ),
            'Table'[Group] = MAX('Table'[Group])
        ),
        CALCULATE(SUM('Table'[Value]))
        ,
        ,DESC
    )

 

Output is like 

 

GroupItemValueRank
Oneitem17781
Oneitem26172
Oneitem35403
ThreeItem48472
ThreeItem68731
ThreeItem97813
Twoitem85123
TwoItem107851
Twoitem56232

 

Further used Rankx to calcualte the group wise rank

 

RankXDescMeasure2 = 
    RANKX(
        ALL('Table'[Group]),
        CALCULATE(
            SUM('Table'[Value])
        ),
        ,
        DESC
    )

 

GroupValueRank1
One19352
Three25011
Two19203

 

Problem 1

Now, I want to exclude any of the desired group from the table, Say group one and want to Rank again?

 

GroupValueRank1
Three25011
Two19202

 

Apart from this my rank table values are changing month wise therefore I want to calculate a trend for group wise  as well item wise to display the same in dashboard

 

MonthGroupItemValueRank
JanOneitem19651
JanOneitem27482
JanOneitem36593
JanThreeItem47973
JanThreeItem68262
JanThreeItem98901
JanTwoitem88263
JanTwoItem106922
JanTwoitem59131

 

MonthGroupItemValueRank
FebOneitem17781
FebOneitem26172
FebOneitem35403
FebThreeItem48472
FebThreeItem68731
FebThreeItem97813
FebTwoitem85123
FebTwoItem107851
FebTwoitem5623

2

 

Problem 2 (Last to month to this month Rank difference)

Here, I would like to calculate this month to Last Month Rank difference

 

Item wise trend would be last month rank to this month rank difference e.g. = Trend = Item 6 (this month)-Item6(last month) = 1-2=-1

 

Dashboard represntation would be like

 

Capture.PNG

 

 

Is it possible???

 

Kindly help as I am unable to fetch the results. 

 

@Greg_Deckler  could you please help as I am refeering your Bleep with Rankx article

 

Regards

Uphar

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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