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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply

Multiple OR

Hello friends,

Can you help me with how to write below formula properly please

I was thinking about is in ["ID 1","ID 2"] as we do in SQL queries.

 

FranckGbadamass_0-1668769453545.png

 

Thank in advance.

 

1 ACCEPTED SOLUTION

Hi @FranckGbadamass 

 

Download example XLSX file

 

Yes that's correct you can use a column from another table as the list for the 2nd argument

= if List.ContainsAny({[ID]} , Table2[ID]) then true else false

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

4 REPLIES 4

Thank you @PhilipTreacy for your reply.

Is List.ContainsAny works with column as argument too?

Because what I really want is made the last argument of the function dynamic ie use the column of my dataset.

 

 

Below what I'm trying to do:

FranckGbadamass_1-1668782080748.png

 

Hi @FranckGbadamass 

 

Download example XLSX file

 

Yes that's correct you can use a column from another table as the list for the 2nd argument

= if List.ContainsAny({[ID]} , Table2[ID]) then true else false

 

Regards

 

Phil

 



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @FranckGbadamass 

 

Download sample XLSX file

 

You can write this

 

= if List.ContainsAny({[ID]} , {1, 2, 3}) then true else false

 

 

listnum.png

 

regards

 

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors