cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

Maximum value associated with revision

Good morning Community!

I need to create a measure that shows me only the amount of the last revision, associated with each Customer Code.

Thanks a lot

1 ACCEPTED SOLUTION
tamdo95
Frequent Visitor

Hello,

Here is my solution:

amountLastRevision =
VAR lastRevision =
CALCULATE ( MAX ( 'Table'[Revision] ) )
RETURN
CALCULATE ( VALUES ( 'Table'[Importe] ), 'Table'[Revision] = lastRevision )
tamdo95_0-1625223888799.png

 

View solution in original post

1 REPLY 1
tamdo95
Frequent Visitor

Hello,

Here is my solution:

amountLastRevision =
VAR lastRevision =
CALCULATE ( MAX ( 'Table'[Revision] ) )
RETURN
CALCULATE ( VALUES ( 'Table'[Importe] ), 'Table'[Revision] = lastRevision )
tamdo95_0-1625223888799.png

 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors