Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Dear all
I have a log table to record each action ("Action" column), when it happen ("Log_Time" column), and its meaning ("Process" column).
My target is to automatically update the "Process" column when there is a new action happen after the previous action.
Below is an example:
Action A, B, and C happened again, so the process start over after the latest Action A.
Action | Log_Time | Process |
Action A | 1/1/2022 | Start of Process A |
Action B | 2/1/2022 | Start of Process B |
Action C | 3/1/2022 | Start of Process C |
Action D | 3/15/2022 | Start of Process D |
Action E | 4/1/2022 | Start of Process E |
Action A | 5/1/2022 | |
Action B | 5/4/2022 | |
Action C | 5/15/2022 |
Action | Log_Time | Process |
Action A | 1/1/2022 | |
Action B | 2/1/2022 | |
Action C | 3/1/2022 | |
Action D | 3/15/2022 | |
Action E | 4/1/2022 | |
Action A | 5/1/2022 | Start of Process A |
Action B | 5/4/2022 | Start of Process B |
Action C | 5/15/2022 | Start of Process C |
Many thanks!
Solved! Go to Solution.
sorry, somehow forgot to paste in the code for the calculated column:
Column =
VAR _action_A_max =
CALCULATE (
MAX ( 'Table'[Log_time] ),
FILTER ( ALL ( 'Table' ), 'Table'[Process] = "Action A" )
)
RETURN
IF (
'Table'[Log_time] >= _action_A_max,
CONCATENATE ( "Start of Process ", RIGHT ( 'Table'[Process], 1 ) ),
BLANK ()
)
Thanks Sturla! It works!
Hi,
you create this calculated column
which returns this:
Cheers,
Sturla
If this post helps, then please consider Accepting it as the solution. Kudos are nice too.
Hi Sturla, would you mind sharing the pbix file? Thanks!
sorry, somehow forgot to paste in the code for the calculated column:
Column =
VAR _action_A_max =
CALCULATE (
MAX ( 'Table'[Log_time] ),
FILTER ( ALL ( 'Table' ), 'Table'[Process] = "Action A" )
)
RETURN
IF (
'Table'[Log_time] >= _action_A_max,
CONCATENATE ( "Start of Process ", RIGHT ( 'Table'[Process], 1 ) ),
BLANK ()
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
74 | |
63 | |
51 | |
48 |
User | Count |
---|---|
211 | |
86 | |
64 | |
59 | |
56 |