cancel
Showing results for
Did you mean:
Post Partisan

## How to sort revenue of latest day in Matrix.

Hi Team,

I need to sort sum of revenue of the last day in descending order in matrix table how to do in Power BI?

1 ACCEPTED SOLUTION
Community Support

We can create a measure as sum to meet your requirement.

``````SumValue =
VAR t =
CALCULATE ( MAX ( 'Table'[Date] ), ALLSELECTED ( 'Table' ) )
RETURN
IF (
HASONEVALUE ( 'Table'[Date] ),
SUM ( 'Table'[Vaule] ),
CALCULATE ( SUM ( 'Table'[Vaule] ), FILTER ( 'Table', [Date] = t ) )
)``````

If it doesn't meet your requirement, Please show the exact expected result based on the Tables that We have shared.

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 REPLIES 3
Community Support

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support

We can create a measure as sum to meet your requirement.

``````SumValue =
VAR t =
CALCULATE ( MAX ( 'Table'[Date] ), ALLSELECTED ( 'Table' ) )
RETURN
IF (
HASONEVALUE ( 'Table'[Date] ),
SUM ( 'Table'[Vaule] ),
CALCULATE ( SUM ( 'Table'[Vaule] ), FILTER ( 'Table', [Date] = t ) )
)``````

If it doesn't meet your requirement, Please show the exact expected result based on the Tables that We have shared.

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Super User

@arvindyadav unfortuntely it is not possible, I think there is an idea for this on ideas forum, please vote for it.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Announcements

#### Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

#### Power BI March 2023 Update

Find out more about the March 2023 update.

#### March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors
Top Kudoed Authors