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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mokegubshook
Helper I
Helper I

Sort Matrix By Desc of Last date

Mokegubshook_0-1741955544985.png

I have matrix looklike in picture, where each Application have multiple ID and Status. Is it posible to sort Desc of number of usage by last date. For example, If 6 Jan is last date sort by number of usage Desc of 6 Jan that should be App B ID 003 status zzz yyy xxx is top  row follow by other status.

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@Mokegubshook Create a measure to find the last date in your dataset.

LastDate = MAX('YourTable'[DateColumn])

 

Create another measure to calculate the number of usages on the last date. You can use the following DAX formula:

UsageOnLastDate =
CALCULATE(
SUM('YourTable'[UsageColumn]),
'YourTable'[DateColumn] = [LastDate]
)

 

Add the necessary fields (App, ID, Status1, Status2, Status3, etc.) to your matrix visual.
Add the UsageOnLastDate measure to the values section of the matrix.
Sort the matrix by the UsageOnLastDate measure in descending order.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@Mokegubshook Create a measure to find the last date in your dataset.

LastDate = MAX('YourTable'[DateColumn])

 

Create another measure to calculate the number of usages on the last date. You can use the following DAX formula:

UsageOnLastDate =
CALCULATE(
SUM('YourTable'[UsageColumn]),
'YourTable'[DateColumn] = [LastDate]
)

 

Add the necessary fields (App, ID, Status1, Status2, Status3, etc.) to your matrix visual.
Add the UsageOnLastDate measure to the values section of the matrix.
Sort the matrix by the UsageOnLastDate measure in descending order.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Your solution is working! 

 

I have one more question, I also have month filter. I want to show the highest usage in the month I selected. I have no idea to combine with your measure. Is it possible?

Thank You so much!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.