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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.