cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LucasFiorini
New Member

Check if value is in a List

Hello everybody!

How can I find out if one of the selected values is a string?
What I tried out:

VAR SelectedKpi = SELECTEDVALUE(KPIs[Value])
return
IF(SelectedKpi IN {"SOE"},SUM(...),BLANK())

It works, but I select multiple values, it will only work for one at a time. 
I would like to be able to check if the string is into that variable.

Thanks!

1 ACCEPTED SOLUTION
daXtreme
Super User
Super User

You can put many values inside {...}, like {"A", "B", "C"}.

View solution in original post

2 REPLIES 2
v-binbinyu-msft
Community Support
Community Support

Hi @LucasFiorini ,

I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting.

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_ Binbin Yu

daXtreme
Super User
Super User

You can put many values inside {...}, like {"A", "B", "C"}.

Helpful resources

Announcements
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors
Top Kudoed Authors