Forum Discussion
TK12345
Resolver II
4 years agoRANKX with repeated values
Hi there, I am struggeling with the RankX function, I would like to see in how many countries different employees have worked, based on Month/Year, so I can filter on Month Year. As you c...
- Anonymous4 years ago
Hi TK12345 ,
I have updated your sample pbix file(see attachment), please check whether that is what you want. You can create a calculated column as below:
New_Countries worked in = CALCULATE ( DISTINCTCOUNT ( 'Blad1'[Country-legal] ), FILTER ( ALLEXCEPT ( 'Blad1', 'Blad1'[Employee] ), 'Blad1'[Month/Year] <= EARLIER ( 'Blad1'[Month/Year] ) ) )Best Regards
TK12345
Resolver II
4 years agoAnonymous
4 years agoNot applicable
Hi TK12345 ,
I have updated your sample pbix file(see attachment), please check whether that is what you want. You can create a calculated column as below:
New_Countries worked in =
CALCULATE (
DISTINCTCOUNT ( 'Blad1'[Country-legal] ),
FILTER (
ALLEXCEPT ( 'Blad1', 'Blad1'[Employee] ),
'Blad1'[Month/Year] <= EARLIER ( 'Blad1'[Month/Year] )
)
)
Best Regards
- TK123454 years ago
Resolver II
This is exactly the way I would love to see it. I am really thankfull for your help, will accept it as solution. Thanks for the help~!!!