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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Measure to get the maximum submission date for a single unique ID?

I have an excel file in my Power BI workbook that has repeat values for the primary ID, Org Code. It's a unique ID assigned to each company, shown below

 

 

jsauerla_0-1614009821159.png

 

 

My objective is to create a measure which calculates the latest (maximum) submission date for a company when the Process Step is Approval, Upload, or Resubmission. Shown below is the excel version of this calculation, and what I'd like to have in Power BI

 

example2.PNG

 

Here's the code I have tried -- believe I might have an erorr somewhere as it doesn't work... I want the MAX of the three upload approval resubmission for each unique org code

 

Latest Submission Date = CALCULATE(MAX('Approval Process Audit Log'[Status Change Date]), FILTER('Approval Process Audit Log','Approval Process Audit Log'[Process Step] = "Upload" , 'Approval Process Audit Log'[Process Step] = "Approval" , 'Approval Process Audit Log'[Process Step] = "Resubmission"))

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Check the measure.

Measure = CALCULATE(MAX('Table'[date]),FILTER(ALLEXCEPT('Table','Table'[id]),'Table'[step]<>"rejection"))

15.PNG 

 

Best Regards,

Jay

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

Check the measure.

Measure = CALCULATE(MAX('Table'[date]),FILTER(ALLEXCEPT('Table','Table'[id]),'Table'[step]<>"rejection"))

15.PNG 

 

Best Regards,

Jay

amitchandak
Super User
Super User

@Anonymous , Try like

 

Latest Submission Date = CALCULATE(MAX('Approval Process Audit Log'[Status Change Date]), FILTER('Approval Process Audit Log','Approval Process Audit Log'[Process Step] in{ "Upload" , "Approval" , , "Resubmission"}))

 

Latest Submission Date = CALCULATE(MAX('Approval Process Audit Log'[Status Change Date]), FILTER('Approval Process Audit Log','Approval Process Audit Log'[Process Step] in{ "Upload" , "Approval" , , "Resubmission"}) , allexcept('Approval Process Audit Log','Approval Process Audit Log'[Org_code]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello @amitchandak -- thank you for the response. Would these measures be able to be added to a matrix table, or is that not possible? It appears to not let me add them as matrix table only accepts one column field, [Process Step] and doesn't let me use the new measure at all

@Anonymous , Are you trying for a hybrid table 

if you are looking for a Hybrid display with Matrix Column and measure
https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1354591
https://community.powerbi.com/t5/Quick-Measures-Gallery/The-New-Hotness-Custom-Matrix-Hierarchy/m-p/963588#M428

vote for Hybrid Table
https://ideas.powerbi.com/ideas/idea/?ideaid=9bc32b23-1eb1-4e74-8b34-349887b37ebc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.