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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Create a measure for a unpivoted column, with repeating ID values?

I have a table with unpivoted data, shown below. The ID column has repeat values because the transaction goes through several stages captured in the Process Step column

 

jsauerla_1-1616240276851.png

 

My objective: Create a measure that calculates the maximum date from the Status Change Date Column, but only for Upload and "Approval" Process Step. So, where Process Step is Upload OR Approval, Max(Status Change Date)

 

 

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

 

Download sample PBIX file

 

Is this what you are after.  If it is not, please show an example of your expected result.

 

Max Date = CALCULATE(MAX('Table'[Status Change Date]), FILTER(ALL('Table'), 'Table'[Process Step]="Approval" && 'Table'[Transaction ID] = SELECTEDVALUE('Table'[Transaction ID])))

 

maxd.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Anonymous 

 

Download sample PBIX file

 

Is this what you are after.  If it is not, please show an example of your expected result.

 

Max Date = CALCULATE(MAX('Table'[Status Change Date]), FILTER(ALL('Table'), 'Table'[Process Step]="Approval" && 'Table'[Transaction ID] = SELECTEDVALUE('Table'[Transaction ID])))

 

maxd.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.