Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Solved! Go to Solution.
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.
I managed to do what I wanted to. Thank you all 🙂
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.
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)
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |