Forum Discussion
Dynamic Ranking within a category
- 3 years ago
Anonymous , if you are creating a column Rank.
Rank = rankx(filter(Table, [Category] = earlier([Category]) , [Date],,asc,dense)
But I think you need a measure
Countx(filter(allselected(Table) , [Category] = Max([Category]) && [Date] <= Max([Date]) ), [Date])
Hi,
I think this thread hold your solution: https://community.powerbi.com/t5/Desktop/Dynamic-ranking-of-data-based-on-filter-selections-with/td-p/2217819
I hope that helps 🙂
- Anonymous3 years agoNot applicable
Hi, Thanks for helping. I tried creating calculated column(similar to Rank by Test Type in mentioned post) but i see only 1 getting populated for each row.
- amitchandak3 years agoSuper User
Anonymous , if you are creating a column Rank.
Rank = rankx(filter(Table, [Category] = earlier([Category]) , [Date],,asc,dense)
But I think you need a measure
Countx(filter(allselected(Table) , [Category] = Max([Category]) && [Date] <= Max([Date]) ), [Date])