Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Thank in advance.
Solved! Go to Solution.
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
Proud to be a Super User!
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:
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
Proud to be a Super User!
You can write this
= if List.ContainsAny({[ID]} , {1, 2, 3}) then true else false
regards
Phil
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!