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
CristinaB
Regular Visitor

searching for text in a separate table

Hi everyone,

 

I need help in the following situation. I have two data sets that are not related to each other. The first one is actually a Bookings report by Order Number

Order NumberCustomerAmount
123456Epsilon.COM

10000

456789Beta.com

5000

 

And the second one is a CRM Extract which should include the order number but unfortunately without any naming convention

 

Order Number Cloud
0000123456-aabs
qwerty456789qwerty

 

In my first table i want to search by each order number in the second table.

 

In excel i used the following formula: =IF(COUNTIF(Order_Number_Cloud;"*"&[@[Order Number]]&"*")>0;"in CRM Cloud";"not in CRM Cloud")

 

Can i do something similar in POwer BI taking into consideration that i don't have any relationship between the 2 tables ?

 

Thank you so much !

Cristina

3 REPLIES 3
Anonymous
Not applicable

Hi @CristinaB ,

 

I found a similar topic. It might help you.

https://community.powerbi.com/t5/Desktop/Search-text-for-keywords-from-another-separate-table-Search... 

 

Best Regards,

Jay

amitchandak
Super User
Super User

@CristinaB , Create a new column in table 1

if(countx(filter(Table2,search(Table[Order Number], table2[Order Number],1,0)>0), table2[Order Number])+0>0,"in CRM Cloud","not in CRM Cloud")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thank you! i do get an error message and don't know exactly how should i proceed.

formula:

CRM ENg = if(COUNTX(FILTER(vwCRMOrders, search(Orders[Order Number], vwCRMOrders[Order Number],1,0)>0), vwCRMOrders[Order Number]+0>0), "in CRM Cloud", "not in CRM Cloud")
Error: The function COUNTX cannot work with values of type Boolean.
Any advice on what to do next ?

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