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
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors