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
I have a table similar to the one shown below:
| Col A | Col B | Condtion X |
| A123 | A322 | 1 |
| A322 | A300 | 0 |
| A232 | A123 | 1 |
What I want to do is filter on Condition X where value is 0 and then append the corresponding Col B values to Col A for the same table. The result will look like below:
| Col A | Col B | Condtion X |
| A123 | A322 | 1 |
| A322 | A300 | 0 |
| A232 | A123 | 1 |
| A300 | - | - |
Basically, I am adding to Col A the values that are in Col B but not already in Col A.
I want to do this in Power Query (M code) NOT Dax
Hope that makes some sense.
Thanks in advance
Solved! Go to Solution.
@zb134 There may be a more streamlined way to do this without duplicating the table, but off the top of my head I used the following steps:
@zb134 There may be a more streamlined way to do this without duplicating the table, but off the top of my head I used the following steps:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 20 | |
| 19 |