Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Dynamic rank with slicer

Hi,

 

I have following data

 

ClientProductSourceBalance
a1X100
b1X200
c2Y140
d2Y234
e3X456
f3X251

 

I need to create dynamc rank for Balance that changes based on the slicer. I want my table (created on dashboard) based on slicer for product and source. If i select product '1'. this is how the table should look like:

 

RankClientProductSourceBalance
2a1X100
1b1X200

 

If i select product '2' it changes to this 

 

RankClientProductSourceBalance
2c2Y140
1d2Y234

 

If i select both, it should look like this:

 

RankClientProductSourceBalance
4a1X100
2b1X200
3c2Y140
1d2Y234

 

Same is the case with source. 

 

Can someone help. 

 

Thanks in Advance.

  • Anonymous Please try this as a "New Measure"

     

    Test129 = RANKX(ALLSELECTED(Test129DynamicRnk),CALCULATE(SUM(Test129DynamicRnk[Balance])),,DESC,Dense)

2 Replies

  • PattemManohar's avatar
    PattemManohar
    Icon for Community Champion rankCommunity Champion

    Anonymous Please try this as a "New Measure"

     

    Test129 = RANKX(ALLSELECTED(Test129DynamicRnk),CALCULATE(SUM(Test129DynamicRnk[Balance])),,DESC,Dense)