Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
27 | |
26 | |
23 | |
12 | |
10 |
User | Count |
---|---|
25 | |
21 | |
19 | |
19 | |
11 |