Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I have 2 columns
| Extract | Work Status |
| AM | Service Stabilization |
| AG | Service Stabilization |
| AG | In progress |
| AG | Service Delivery |
Now for the custom column I'm trying to return "Yes" if [Extract] = "AG" and [Work Status] = *to any of these words {Service Stabilization, Service Delivery}
| Extract | Work Status | Active |
| AM | Service Stabilization | |
| AG | Service Stabilization | Yes |
| AG | In progress | |
| AG | Service Delivery | Yes |
How do put multiple words as a criteria on [Work Status]
I tried doing
if [Extract] = "AG" and [Work Status] = { "Service Stabilization", "Service Deliver"} then "Yes" else""
I also tried
If [Extract] ="AG" and [Work Status] = "Service Stabilization" or "Service Delivery" then "Yes" esle ""
both only seems to output "Yes" *ONLY when [Work Status] is Service Stabilization, what might be the correct syntax for it
Solved! Go to Solution.
You may use List.Contains.
if [Extract]="AG" and List.Contains({ "Service Stabilization", "Service Delivery"},[Work Status]) then "Yes" else "No"
You may use List.Contains.
if [Extract]="AG" and List.Contains({ "Service Stabilization", "Service Delivery"},[Work Status]) then "Yes" else "No"
Wow thanks i never thought funcitions like that works inside custom columns. Thank you
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |