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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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