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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors