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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
JeroniJamboni
Advocate I
Advocate I

Search for exact value from table

Hi guys,

 

I am working on a way to add a label to a big list of keywords. In this case i want to extract all keywords that contain a brandname.

I've got a big list of keywords and a table with keywords.

 

I found part of the solution

VAR searchbrand =
FIRSTNONBLANK (
FILTER (
VALUES ( DimBrand[name] );
SEARCH ( DimBrand[name] ; FactKeywords[Keyword]; 1; 0 )
);
1)

RETURN
IF ( NOT ( ISBLANK ( searchbrand ) ); searchbrand; "NOT BRANDED" )

 

However... (example) i got a brandname "ACTI", which is linked to all keywords with "active, action or activate". I can't figger out how to improve this. A brandname is a word on it's own followed and/or preceded by whitespace. Or.... the keyword is equal to the brandname.

How would you guys solve this?

Kind regards,

 

Jeroni Jamboni

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@JeroniJamboni,

 

You may try the following expression.

SEARCH ( " " & DimBrand[name] & " ", " " & FactKeywords[Keyword] & " ", 1, 0 )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@JeroniJamboni,

 

You may try the following expression.

SEARCH ( " " & DimBrand[name] & " ", " " & FactKeywords[Keyword] & " ", 1, 0 )
Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

Perhaps try FIND instead of SEARCH. FIND is case-sensitive whereas SEARCH is not.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

This could be part of the solution. I've capatalized each word in the keywords. With the Find function it helps for most part. But I want to know if there a better solution? Is still end up with too many wrong results.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 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.