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
Anonymous
Not applicable

SEARCH FUNCTION WITH A LIST VALUE COMMAS

Hi guys,

I found answer for that : we have 2 lists. Now we want to check if list 1 contains any value from list 2. 

sonicmaster_0-1648656107224.jpeg

which values in list are in current value? =

CONCATENATEX (

    CALCULATETABLE (

        VALUES ( List[Keyword] ),

        FILTER ( List, SEARCH ( List[Keyword], 'Messy names'[Name], 1, 0 ) > 0 )

    ),

    [Keyword],

    ","

)

sonicmaster_1-1648656129300.jpeg

 

My question is how to display which values in list are NOT in current value? Any idea please ?

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

nice code. Well done 👍. I think you just need to replac > with =

CONCATENATEX (

    CALCULATETABLE (

        VALUES ( List[Keyword] ),

        FILTER ( List, SEARCH ( List[Keyword], 'Messy names'[Name], 1, 0 ) = 0 )

    ),

    [Keyword],

    ","

)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Works.... 🙊 Thank You so much for that.

tamerj1
Super User
Super User

Hi @Anonymous 

nice code. Well done 👍. I think you just need to replac > with =

CONCATENATEX (

    CALCULATETABLE (

        VALUES ( List[Keyword] ),

        FILTER ( List, SEARCH ( List[Keyword], 'Messy names'[Name], 1, 0 ) = 0 )

    ),

    [Keyword],

    ","

)

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.