cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
poweringbi123 Regular Visitor
Regular Visitor

IF and Search functions for multiple values

Hi guys,
 
I want to use the IF SEARCH function to combine multiple values that are duplicates.
The dax formula down below works correctly. But this dax formula is only for 1 value (searchcriteria1), but I want to use it for multiple values. So also searchcriteria2, searchcriteria4, searchcriteria4 etc.
 
SearchGroup =
IF( SEARCH ( "searchcriteria1", 'Table1[Column1], 1, 0 ) > 0,
    "searchcriteria1", 'Table1'[Column1]
)
 
Regards,
 
 
 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: IF and Search functions for multiple values

@poweringbi123 ,

 

To achieve this, you need to use regular expression, but dax and power query doesn't support text match with regular expreesion. So I would suggest you use R script or Python script.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Community Support Team
Community Support Team

Re: IF and Search functions for multiple values

@poweringbi123 ,

 

To achieve this, you need to use regular expression, but dax and power query doesn't support text match with regular expreesion. So I would suggest you use R script or Python script.

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in 2020

New Ranks and Rank Icons in 2020

Read the announcement for more information!

New Kudos Given Badges Coming

New Kudos Given Badges Coming

We're rolling out new Kudos Given badges. Find out how many Kudos you've given.

November 2019 Community Highlights

November 2019 Community Highlights

Get an overview of the events and great community content from November.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)