Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Eliaskh17
Regular Visitor

Rankx with date column

Hello Everyone, I have a measure rank that will adapt on the user selection and the slicers in the report:

IF (
     ISINSCOPE ( 'TIME'[YEAR] ),
      RANKX (
                      CALCULATETABLE ( ALLSELECTED ( 'TIME'[YEAR])), [Spend],, DESC )).
 
Result:
Eliaskh17_0-1698240325193.png

 

Howerver the rank works on all columns / categories except for the TIME table (year, month, halfyear and quarter year). the spend measure used above is sum ('fact'[AMOUNT])

 

Thank you

1 REPLY 1
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.