Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
I have an existing import table containing of date values as such:
| Process | Step Name | Last Update | Step a | Step b | Step c | Step d |
| P1 | Step a | 01-01-01 | 01-01-01 | |||
| P2 | Step b | 07-07-01 | 03-03-01 | 07-07-01 | ||
| P3 | Step a | 02-02-01 | 02-02-01 | |||
| P4 | Step d | 06-06-01 | 04-04-01 | 06-06-01 | ||
| P5 | Step c | 05-05-01 | 03-03-01 | 05-05-01 |
How can I create a new column to replace the Last Update column in the Query Studio to meet the following condition:
When Step Name = Step b, Last Update will be replace with Step a value
When Step Name = Step d, Last Update will be replace with Step a value
Else = Last Update value
Final table should looks like this: (Highlighted value is the updated value)
| Process | Step Name | Last Update | Step a | Step b | Step c | Step d | Last Update1 |
| P1 | Step a | 01-01-01 | 01-01-01 | 01-01-01 | |||
| P2 | Step b | 07-07-01 | 03-03-01 | 07-07-01 | 03-03-01 | ||
| P3 | Step a | 02-02-01 | 02-02-01 | 02-02-01 | |||
| P4 | Step d | 06-06-01 | 04-04-01 | 06-06-01 | 04-04-01 | ||
| P5 | Step c | 05-05-01 | 03-03-01 | 05-05-01 | 05-05-01 |
Thanks.
Solved! Go to Solution.
Hi @Roy_tap
add a custom column
if [Step Name]="Step b" or [Step Name]="Step d" then [Step a] else [Last Update]
In the formula bar, type:
= Table.AddColumn(NameOfPriorStep, "Last Update 1", each if [Step Name] = "Step b" then [Step a] else if [Step Name] = "Step d" then [Step a] else [Last Update])
--Nate
Hi @Roy_tap
add a custom column
if [Step Name]="Step b" or [Step Name]="Step d" then [Step a] else [Last Update]
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 |