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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Chandrashekar
Resolver III
Resolver III

Wildcard with In Function

Hello,

 

How to use wildcard with In Statment?

Column = if([state] In {"*action*"},"Action")
 
Regards,
Chandrashekar B
1 ACCEPTED SOLUTION

@Chandrashekar I dont think so it possible with IN but we have certain other option as well like search or you can create in PQ using conditional column. In case you want to add multiple conditions then you can use below code:-

Column =
IF ( CONTAINSSTRING ( [state], "action" ) ||  CONTAINSSTRING ( [state], "condition1" ) || CONTAINSSTRING ( [state], "condition2" ), "Action" )

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
Community Champion

Hi @Chandrashekar 

Please try like below:-

 

Column =
IF ( CONTAINSSTRING ( [state], "action" ), "Action" )

 

Thanks,

Samarth

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Hello Samarth,

 

Is it possible with In function?

 

Regards,

Chandrashekar B

@Chandrashekar I dont think so it possible with IN but we have certain other option as well like search or you can create in PQ using conditional column. In case you want to add multiple conditions then you can use below code:-

Column =
IF ( CONTAINSSTRING ( [state], "action" ) ||  CONTAINSSTRING ( [state], "condition1" ) || CONTAINSSTRING ( [state], "condition2" ), "Action" )

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Thanks Samarth

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors