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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Users online (3,844)