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
Exciting changes

Power BI Community Changes

Check out the changes to the Power BI Community announced at Build.

May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Kudo Data Story carousel

Data Stories Gallery

Visit our Data Stories Gallery and give kudos to your favorite Data Stories.

Top Solution Authors