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

search column A and column B for specific string existence in its text, and update column C based on

help needed in how to:

 need to use DAX to search column A and column B for specific string existence in its text, and update column C based on that

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @agkolkata ;

You could try to create a column by dax.

Column = 
IF(
CONTAINSSTRING([Column1],"ZZ")&&CONTAINSSTRING([Column2],"B_C"),666,[Column3])

The final show:

vyalanwumsft_0-1669096062303.png


Best Regards,
Community Support Team _ Yalan Wu
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

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @agkolkata ;

You could try to create a column by dax.

Column = 
IF(
CONTAINSSTRING([Column1],"ZZ")&&CONTAINSSTRING([Column2],"B_C"),666,[Column3])

The final show:

vyalanwumsft_0-1669096062303.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Uspace87
Resolver II
Resolver II

@agkolkata 

 

You cannot modify the content of a column with DAX, the only way is to create custom column in "Power Query Editor" or Create a new Column after you load the data.

 

Please find belowe an example in power query editor:

 

Uspace87_0-1669041667716.png

 

Helpful resources

Announcements
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.

Top Solution Authors
Top Kudoed Authors