Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Dynamic rank with Group

Hi,

I am tring to create a measure which can dynmaic rank data by date and partition by project name 

Project Project NumberDateRank
A1011/1/20214
A1012/1/20213
A1013/1/20212
A1014/1/20211
B1023/1/20213
B1024/1/20212
B1028/1/20211

 

If I select Jan,Mar,Apr in slicer. data will show this way 

Project Project NumberDateRank
A1011/1/20213
A1013/1/20212
A1014/1/20211
B1023/1/20212
B1024/1/20211

 

Thanks 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi username,

    Create two measures.

    date__ = SELECTEDVALUE('Table'[Date])
    rank_m = RANKX(FILTER(ALLSELECTED('Table'),'Table'[Project ]=SELECTEDVALUE('Table'[Project ])),[date__])

     

    Put date into slicer.

    Best Regards

    Community Support Team _ polly

     

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

2 Replies