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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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 III
Resolver III

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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