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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
QuentinDSC
Frequent Visitor

Use column value with operator IN

Hi all,

 

In order to use a the operator "IN" in a DAX measure I need a list after that operator.

I am trying to use a string stored in my model as a list. How could I convert a string into a list in a measure?

 

The function we want to use: PRODUCT_TABLE[Name] IN Product_List

  • If we use constant values it works : PRODUCT_TABLE[Name] IN {"A";"B";"C"} : OK
  • If we use data from a column it doesn't works : PRODUCT_TABLE[Name] IN Product_List with Product_List = A;B;C from model

 

 

 

 

1 ACCEPTED SOLUTION
RickPowerBI
Helper I
Helper I

Hi @QuentinDSC,

 

Have you tried using FIND or Search instead of IN?

 

FIND(<find_text>, <within_text>[, [<start_num>][, <NotFoundValue>]])

FIND is case-sensitive.

 

SEARCH(<find_text>, <within_text>[, [<start_num>][, <NotFoundValue>]])

This function does not check uppercase and lowercase letters.

View solution in original post

3 REPLIES 3
QuentinDSC
Frequent Visitor

I managed to do what I wanted to. Thank you all 🙂

RickPowerBI
Helper I
Helper I

Hi @QuentinDSC,

 

Have you tried using FIND or Search instead of IN?

 

FIND(<find_text>, <within_text>[, [<start_num>][, <NotFoundValue>]])

FIND is case-sensitive.

 

SEARCH(<find_text>, <within_text>[, [<start_num>][, <NotFoundValue>]])

This function does not check uppercase and lowercase letters.

harshnathani
Community Champion
Community Champion

HI @QuentinDSC ,

 

Please refer to this article from SQL BI.

 

https://www.sqlbi.com/articles/the-in-operator-in-dax/

 

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.