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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.