Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Please, I need your tips.
I have two grouped columns in one table.
How can I compare it and demonstrate the difference? Power Query solution.
I've found VBA but in power query can not 😞
Colors Set A Colors Set B Result A to B Result B to A
| A | B | Result A to B | Result B to A |
| red;blue;green | yellow;purple;red | blue;green | yellow;purple |
| white;green;red | yellow;red | white;green | yellow |
Solved! Go to Solution.
Text.Combine(
List.Difference(
Text.Split([A],";"),
Text.Split([B],";")),
";#(lf)"))
Stéphane
can I get cells with text in new line?
| A | B | Result A to B | Result B to A |
| red;blue;green | yellow;purple;red | blue; green | yellow; purple |
| white;green;red | yellow;red;purple | white; green | yellow; purple |
Text.Combine(
List.Difference(
Text.Split([A],";"),
Text.Split([B],";")),
";#(lf)"))
Stéphane
Hi, @MykytYla
Result A to B
Text.Combine(
List.Difference(
Text.Split([A],";"),
Text.Split([B],";")),
";")
Result B to A
Text.Combine(
List.Difference(
Text.Split([B],";"),
Text.Split([A],";")),
";")
Stéphane
@slorin Thank you so much!
It looks such easy but I couldn't handle it.
PS. Could you advise me any good studying for formulas power query and DAX?
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 |
|---|---|
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 15 | |
| 14 | |
| 11 | |
| 8 | |
| 8 |