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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dniedrauer
Resolver I
Resolver I

Remove Duplicates removing non duplicates!!

Vessel NameVesselChemicalCustomerVessel_Chemical

Dawn Princess9103996Air Cooler CleanerPrincess-T9103996Air Cooler Cleaner
Dawn Princess9103996AquabreakPrincess-T9103996Aquabreak
Dawn Princess9103996AutotreatPrincess-T9103996Autotreat
Dawn Princess9103996Boiler CoagulantPrincess-T9103996Boiler Coagulant
Dawn Princess9103996BrominePrincess-P9103996Bromine
Dawn Princess9103996CarboncleanPrincess-T9103996Carbonclean
Dawn Princess9103996ChlorinePrincess-P9103996Chlorine
Dawn Princess9103996CleanbreakPrincess-T9103996Cleanbreak
Dawn Princess9103996Corrosion InhibitorPrincess-T9103996Corrosion Inhibitor
Dawn Princess9103996Deck Clean NpPrincess-T9103996Deck Clean Np
Dawn Princess9103996DescalerPrincess-T9103996Descaler
Dawn Princess9103996ElectrosolvPrincess-T9103996Electrosolv
Dawn Princess9103996EnvirocleanPrincess-T9103996Enviroclean
Dawn Princess9103996Hydrochloric Acid/Muriatic AcidPrincess-P9103996Hydrochloric Acid/Muriatic Acid
Dawn Princess9103996Metal BritePrincess-T9103996Metal Brite
Dawn Princess9103996Oxygen Scavenger PlusPrincess-T9103996Oxygen Scavenger Plus
Dawn Princess9103996Ph IncreaserPrincess-P9103996Ph Increaser
Dawn Princess9103996Pool & Spa HardnessPrincess-P9103996Pool & Spa Hardness
Dawn Princess9103996Pool ClarifierPrincess-P9103996Pool Clarifier
Dawn Princess9103996Teak RenewerPrincess-T9103996Teak Renewer
Dawn Princess9103996Evaporator TreatmentPrincess-T9103996Evaporator Treatment

 

The top table shows what I've done. I've built a composite column in the far right and then I remove duplicates. 

 

Vessel NameVesselChemicalCustomerVessel_Chemical

Dawn Princess9103996Air Cooler CleanerPrincess-T9103996Air Cooler Cleaner
Dawn Princess9103996Boiler CoagulantPrincess-T9103996Boiler Coagulant
Dawn Princess9103996CarboncleanPrincess-T9103996Carbonclean
Dawn Princess9103996Deck Clean NpPrincess-T9103996Deck Clean Np
Dawn Princess9103996DescalerPrincess-T9103996Descaler
Dawn Princess9103996EnvirocleanPrincess-T9103996Enviroclean
Dawn Princess9103996Pool & Spa HardnessPrincess-P9103996Pool & Spa Hardness
Dawn Princess9103996Pool ClarifierPrincess-P9103996Pool Clarifier

 

Now, as you can see, there are a number of items missing that aren't duplicates. And it's just for this vessel (as far as I know). No idea what's going on, but this is bizarre and aggravating. 

1 ACCEPTED SOLUTION

Here's what the issue was. 

 

This table was comprised of a lookup table made by mashing two different data sets together; unfortunately, the vessel id (the number) was assigned to one name in one table and another name in the other table. So removing duplicates in terms of the id number removed many of the line allocations by name, even though the total by id number was correct. I did a replace of the incorrect name with the correct name, and now both the allocation and the consumption are correct. 

View solution in original post

5 REPLIES 5

. Which columns are you selecting before removing duplicates? 

 

That is what determines the removal. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Vessel is the numbered columns; I am selecting the concatenated column to the right to remove duplicates (I know I could just select multiple columns, but I also need that column for another purpose). 

 

I also tried removing duplicates prior to creating that custom column over to the far right, but it didn't remove all duplicates. 

@dniedrauer,

 

That sounds impossible. You may check the Advanced Editor. If convenient, show us the .pbix file.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Here's what the issue was. 

 

This table was comprised of a lookup table made by mashing two different data sets together; unfortunately, the vessel id (the number) was assigned to one name in one table and another name in the other table. So removing duplicates in terms of the id number removed many of the line allocations by name, even though the total by id number was correct. I did a replace of the incorrect name with the correct name, and now both the allocation and the consumption are correct. 

You should log a bug then



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.