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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors