Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello,
I have 3 columns (ID, Status and Last_Updated_Date). ID can repeat and the status can change from Low->Moderate->High->Critical. I would like to capture Max_Date for each ID based on max(Last_Updated_Date) and Latest_Status is Status from max(Last_Updated_Date). Here is an example from excel file. Can someone help achive this in PBI please?
| ID | Status | Last_Updated_Date | Max_Date | Latest_Status |
| 100 | High | 2/14/2023 | 2/14/2023 | High |
| 100 | High | 2/13/2023 | 2/14/2023 | High |
| 100 | Low | 2/12/2023 | 2/14/2023 | High |
| 200 | Critical | 2/12/2023 | 2/12/2023 | Critical |
| 300 | Moderate | 2/13/2023 | 2/13/2023 | Moderate |
| 300 | Low | 2/12/2023 | 2/13/2023 | Moderate |
Solved! Go to Solution.
Max_Date =
CALCULATE (
MAX ( 'Table'[Last_Updated_Date] ),
ALLEXCEPT ( 'Table', 'Table'[ID] )
)
-----
Latest_Status =
CALCULATE (
MAX ( [Status] ),
ALL ( 'Table' ),
'Table'[ID] = EARLIER ( 'Table'[ID] )
&& 'Table'[Last_Updated_Date] = 'Table'[Max_Date]
)
I have explained in this tutorial please do check this out.
Get another column value based on the Max Date or Max Value in PowerBI
I have explained in this tutorial please do check this out.
Get another column value based on the Max Date or Max Value in PowerBI
Max_Date =
CALCULATE (
MAX ( 'Table'[Last_Updated_Date] ),
ALLEXCEPT ( 'Table', 'Table'[ID] )
)
-----
Latest_Status =
CALCULATE (
MAX ( [Status] ),
ALL ( 'Table' ),
'Table'[ID] = EARLIER ( 'Table'[ID] )
&& 'Table'[Last_Updated_Date] = 'Table'[Max_Date]
)
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 49 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 121 | |
| 118 | |
| 38 | |
| 36 | |
| 29 |