Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We'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

Reply
Anonymous
Not applicable

PowerQuery custom column returns "Active" when [reference column] contains any of the specified word

I have 2 columns

ExtractWork Status
AMService Stabilization
AGService Stabilization
AGIn progress
AGService 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}

 

ExtractWork StatusActive
AMService Stabilization 
AGService StabilizationYes
AGIn progress 
AGService DeliveryYes

 

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

 

1 ACCEPTED SOLUTION
xzmiche
Resolver I
Resolver I

You may use List.Contains.

if [Extract]="AG" and List.Contains({ "Service Stabilization", "Service Delivery"},[Work Status]) then "Yes" else "No"

View solution in original post

2 REPLIES 2
xzmiche
Resolver I
Resolver I

You may use List.Contains.

if [Extract]="AG" and List.Contains({ "Service Stabilization", "Service Delivery"},[Work Status]) then "Yes" else "No"

Anonymous
Not applicable

Wow thanks i never thought funcitions like that works inside custom columns. Thank you

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.