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.
Hello All,
I ve got a table wich look like this
Specialist Customer Service | Specialist Invoicing and Settlement |
Specialist Customer Service | Specialist Order Data Management |
Specialist Invoicing and Settlement | Specialist Customer Service |
Specialist Invoicing and Settlement | Specialist Order Data Management |
Specialist Order Data Management | Specialist Customer Service |
Specialist Order Data Management | Specialist Invoicing and Settlement |
What i need to do is remove one of duplicated pair.
As you can see as first row there is:
Column1: Spec. Cust. Serv and Column2: Spec Inv. and Sett.
and also in row third there is te same pair but in different order
Column1: Spec Inv. and Sett. and Column2: Spec. Cust. Serv.
From my point of view those are the same data and one of them have to be removed (doesnt matter which one).
No idea how to do it. Can you help?
Solved! Go to Solution.
"Remov Dupliactes" is great, @AbhinavJoshi .
But removing the duplicate directly didn't provide @michal_boro with the expected result.
Pease allow me to add that below are the detailed steps:
1.Create two custom columns, one is the result of column 1 merging column 2, and the other is the result of column 2 merging column 1.
2.Select C1C2 and C2C1 at the same time, then click "Unpivot Columns".
3.Select the Value column and remove duplicates.
4.Remove the Attribute column and the Value column.
5.Select the Column1 and the Column2 and remove duplicates again.
6.Here's your final result.
I upload the attachment for your reference. You can download it and go to Power Query Editor to check it.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
add_col = Table.AddColumn(
your_table,
"check",
each List.Sort(Record.FieldValues([[Column1], [Column2]]))
),
distinct = Table.Distinct(add_col, "check"),
rm_col = Table.RemoveColumns(distinct, "check")
"Remov Dupliactes" is great, @AbhinavJoshi .
But removing the duplicate directly didn't provide @michal_boro with the expected result.
Pease allow me to add that below are the detailed steps:
1.Create two custom columns, one is the result of column 1 merging column 2, and the other is the result of column 2 merging column 1.
2.Select C1C2 and C2C1 at the same time, then click "Unpivot Columns".
3.Select the Value column and remove duplicates.
4.Remove the Attribute column and the Value column.
5.Select the Column1 and the Column2 and remove duplicates again.
6.Here's your final result.
I upload the attachment for your reference. You can download it and go to Power Query Editor to check it.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You are amazing! It`s working. Thanks a loooot!
Nope, it`s gonna delete "random" row from column 2 also, i need to be sure that right pair stays.
Hello @michal_boro.
You can use the remove duplicates in Power Query Editor. Select the column, here for example col1, right click and remove duplicates.
I hope it helps.
Thank you,
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.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!