Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
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]
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
125 | |
111 | |
73 | |
65 | |
46 |