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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.