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
lcasey
Post Prodigy
Post Prodigy

Has Micvrosoft pulled the text.contain function

All of the suden text.contain no longer works. What or how can we search if a text field contains a value ? 

 

Text.contains is not recognized in Power BI desktop as any valid function. All the forums and Google searches are incorrectkly stating that this is supported inm power BI.

 

HasDoc = IF text.contains('00-GLSummary'[ORCTRNUM],"VCHR"),"1","0"

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

hello @lcasey

 

You can use Search Function

 

HasDoc = IF(SEARCH("VCHR",'00-GLSummary'[ORCTRNUM],1,0)<>0,1,0)




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

hello @lcasey

 

You can use Search Function

 

HasDoc = IF(SEARCH("VCHR",'00-GLSummary'[ORCTRNUM],1,0)<>0,1,0)




Lima - Peru

Your right, that works.  Text.contains must be an older method. This worked perfectly, Thanks!

Vvelarde
Community Champion
Community Champion

Text. Contains is part of Power Query Language.

 

you can use this in Query Editor.

 

 

 




Lima - Peru

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.