Forum Discussion
johanthedataman
6 years agoFrequent Visitor
from Rankx Calculated Column to Measure
Hi guys, I'm really struggling with the following: How can I write the following Rankx Calculated Column as a Measure? Rank = RANKX ( FILTER ( Table, Table[organisation_id] = EARL...
- 6 years ago
Try this
IndexValue = SUM('Table'[Index])Rank = var _selectedID= SELECTEDVALUE('Table'[organisation_id]) var _rank=RANKX(FILTER(ALL('Table'),'Table'[organisation_id]=_selectedID),[IndexValue]) return _rank
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂 - 6 years ago
Try this
IndexValue = SUM('Table'[Index])Rank = var _selectedID= SELECTEDVALUE('Table'[organisation_id]) var _rank=RANKX(FILTER(ALL('Table'),'Table'[organisation_id]=_selectedID),[IndexValue],,ASC) return _rank
Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 🙂
nandukrishnavs
6 years agoCommunity Champion
johanthedataman please mark my reply as accepted solution.
johanthedataman
6 years agoFrequent Visitor
yes, I did, thanks!