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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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 Solution Authors
Top Kudoed Authors