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
naeemf
New Member

Need help regarding calculating earliest last status of a record

Hello,

 

I have demand updates table which logs all the updates for each demand. I want to keep latest update record of each demand in a new table. Problem is that even if a user adds comments for a demand, the status stays the same but a new line record is added with new timestamp. In such cases, I would like to keep the last substatus change record.

 

Below is an example table. The demand DOH-1252 has been updated as draft "4" times. In this case I would like to keep the record with date. e.g. "5/16/2019 11:25:02 AM" as my last sub-status update record. In case of DOH-1122 data would be fetched as it is because there are no substatus duplications.

 

CreatedDIDDemand Substatus
2/4/2019 1:07:17 PMDOH-1252Under Pre-Tender Input (User, Legal, Proc., Finance, DPO)
4/16/2019 12:33:29 PMDOH-1252Under Contract Drafting & Finalization (Proc., Legal, TNO, Finance, DPO, Vendor)
5/16/2019 11:22:53 AMDOH-1252Under Contract Drafting & Finalization (Proc., Legal, TNO, Finance, DPO, Vendor)
5/16/2019 11:25:02 AMDOH-1252Draft
5/20/2019 11:32:37 AMDOH-1252Draft
5/20/2019 11:34:34 AMDOH-1252Draft
5/20/2019 12:36:39 PMDOH-1252Draft
12/17/2018 12:02DOH-1122Pending Manager Approval

 

If anyone can help with this, it will be very helpful. 

 

Link to the excel file is this:

https://drive.google.com/drive/folders/1ywzrvyU_0O6Pjz2CuDV417JIpsmy0XQL?usp=sharing
Thanks a lot in advance

 

 

1 REPLY 1
amitchandak
Super User
Super User

@naeemf , refer these approches. You might need min, inplace of max

 

https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

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.