March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hello
I have 2 tables(A , B) ,
I need to add [true , false] column to tableA
if row in TableA same in TableB return True
I tried this , but i got errors
= List.Contains(TableB[id], [id])
Thanks in advance
Solved! Go to Solution.
Hi,
If you are trying to get the result in Power Query Editor, please check the below picture and the attached pbix file.
= Table.AddColumn(Source, "Custom", each if List.Contains(TableB[B], [A]) then true else false)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Hi,
I used the List.positionof function in power query as below :
I did create the below custom column in Power query :
1- the first table (Sheet181) :
2- Sheet180 :
3- in Sheet181, add new Custom Column :
= Table.AddColumn(#"Changed Type", "ExistValue", each if List.PositionOf(Sheet180[Name],[#"Name "]) >= 0 then true else false)
Then use it in the visual :
Appreciate your Kudos
Hi,
If you are trying to get the result in Power Query Editor, please check the below picture and the attached pbix file.
= Table.AddColumn(Source, "Custom", each if List.Contains(TableB[B], [A]) then true else false)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
134 | |
91 | |
89 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |