Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
MykytYla
Frequent Visitor

How to compare 2 cells text with delimiter and demonstrate difference?

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

 

ABResult A to BResult B to A
red;blue;green yellow;purple;redblue;greenyellow;purple
white;green;redyellow;redwhite;green yellow

 

1 ACCEPTED SOLUTION

Text.Combine(
List.Difference(
Text.Split([A],";"),
Text.Split([B],";")),
";#(lf)"))

Stéphane 

View solution in original post

4 REPLIES 4
MykytYla
Frequent Visitor

can I get cells with text in new line?

ABResult A to BResult B to A
red;blue;green yellow;purple;red

blue;

green

yellow;

purple

white;green;redyellow;red;purple

white;

green

 yellow;

purple

Text.Combine(
List.Difference(
Text.Split([A],";"),
Text.Split([B],";")),
";#(lf)"))

Stéphane 

slorin
Super User
Super User

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?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors