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
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
Employee
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
Employee
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
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.

Top Solution Authors