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 good day can anyone help me on my new column base from my table below, basically if the comments is Cancelled and Tobe- Cancelled the actual colunm should reflect Non-Workable.
OUTPUT
Thank you
Solved! Go to Solution.
Just add [Status] like this
Actual =
SWITCH(
TRUE(),
[Comments] = "Cancelled" || [Comments] = "Tobe- Cancelled" , "Non-Workable",
[Status]
)
regards
Phil
Proud to be a Super User!
Just add [Status] like this
Actual =
SWITCH(
TRUE(),
[Comments] = "Cancelled" || [Comments] = "Tobe- Cancelled" , "Non-Workable",
[Status]
)
regards
Phil
Proud to be a Super User!
What about the other values in the column like Not Started, Completed, In Progress?
You can use IF or SWITCH
Column = IF([Comments] = "Cancelled" || [Comments] = "Tobe- Cancelled" , "Non-Workable")
Column =
SWITCH(
TRUE(),
[Comments] = "Cancelled" || [Comments] = "Tobe- Cancelled" , "Non-Workable"
)
Regards
Phil
Proud to be a Super User!
Hi @PhilipTreacy thank you for the quick reply and for the Actual will copy the word is status column as long its not Cancelled and Tobe- Cancelled in comment column.
Assumed the table named "Test", add a column with DAX,
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 |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |