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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
petrcz
Regular Visitor

Function text.contains reffering řo another table

Hi, I have two tables

 

In a table "Queries", column "Branded", I need a function, which check, if a string in a table "Queries", column "Query" contains any value from table "Branded", column "Query".

If yes, return "brand"

If not, return "non brand"

 

Could you give me a hint, how to proceed this?

3 REPLIES 3
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @petrcz,

Have you resolved your issue? If you have, welcome to share your solution or mark the right reply as answer. So that more more people will benefit from here.

Best Regards,
Angelia

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @petrcz,

Please refer to the similar thread, please feel free to ask if you have any issue.

Best Regards,
Angelia

MFelix
Super User
Super User

Hi @petrcz,

 

Not sure if I understood the correct way that you are searching, and if you are searching the full text in a value but you can add this column to your query table and then put it on a table:

Column

BRAND =
IF (
    ISBLANK ( LOOKUPVALUE ( Branded[Query], Branded[Query], Queries[Branded] ) ),
    "Not Brand",
    "Brand"
)

Final result

 

brand.png

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors