Forum Discussion
RANX Function
- 6 years ago
sandee Is this how you want it? I have attached the file below my signature.
Measure = VAR Yes = CALCULATETABLE ( Sandee, Sandee[Debt Overdue] = "yes", ALL ( Sandee ) ) VAR No = CALCULATETABLE ( Sandee, Sandee[Debt Overdue] = "no", ALL ( Sandee ) ) VAR CurrentSelection = SELECTEDVALUE ( Sandee[Debt Overdue] ) VAR Ranking = IF ( CurrentSelection = "yes", RANKX ( Yes, [Total Due],, DESC ), RANKX ( No, [Total Due],, DESC ) ) VAR Result = IF ( ISINSCOPE ( Sandee[Debt Overdue] ), Ranking ) RETURN Result
sandee - See if this gets you there, otherwise @ me and I'll take a closer look https://community.powerbi.com/t5/Quick-Measures-Gallery/To-Bleep-with-RANKX/m-p/1042520#M452
- sandee6 years ago
Helper I
Hi Greg,
thanks for the reference,
it seems nothing is working here, i am not getting the desired output. working on one formula from almost one week, really Fed up.
- AntrikshSharma6 years ago
Community Champion
sandee does my solution work for you?
- sandee6 years ago
Helper I
Hi Antriksh,
Super Duper Shot ........ Great ......
the file u attached this is exactly i am after, i have not applied in my file as it seems stuck, but i will get back to you on this. Many Many thanks for this. God Bless You....
- AntrikshSharma6 years ago
Community Champion
sandee Great, once you are able to replicate the same in your model and have no issues, then please mark my post as solved so that others can easily find the solution. Otherwise let me know if you still face any issue.- sandee6 years ago
Helper I
Hi Antriksh,
While accepting this as my solution i AM getting below error message again and again. i have checked everything is fine, but still same.