Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Removing duplicates by comparing multiple columns with condition

Hi there, 

 

I have this data where I want to remove duplicates. Essentially there are 3 service categories, GO, SVOD and SOTT. 

I would like to check for duplicates by comparing all the headers in the table. However here comes the complicated part. 
When one title have all three services, GO, SVOD and SOTT, I would like to remove the SOTT row. As it is a double count/entry for my data. Can this be done in query? Appreciate any help. Thanks.

 

Display CategoryTitleEpisodeTitleEpisode No.License Period Start DateLicense Period End DateService
ChooseDetectiveIs There A Detective on Board?113-Oct-219-Nov-21SVOD
ChooseDetectiveIs There A Detective on Board?113-Oct-219-Nov-21SOTT
ChooseDetectiveI Still Remember219-Oct-2115-Nov-21SVOD
ChooseDetectiveI Still Remember219-Oct-2115-Nov-21SOTT
ChooseDetectiveThat's Yui-nya319-Oct-2115-Nov-21SVOD
ChooseDetectiveThat's Yui-nya 319-Oct-2115-Nov-21SOTT
Outdoor Mission SurviveHighlights 661-Oct-2129-Dec-21SVOD
Outdoor Mission SurviveHighlights 661-Oct-2129-Dec-21SOTT
Outdoor Mission SurviveHighlights 661-Oct-2129-Dec-21GO
Outdoor Big AdventuresParty in Pensacola121-Oct-2130-Nov-21SVOD
Outdoor Big AdventuresParty in Pensacola121-Oct-2130-Nov-21SOTT
Outdoor Big AdventuresParty in Pensacola121-Oct-2130-Nov-21GO
Outdoor Big AdventuresThe Redfish 131-Oct-2130-Nov-21SVOD
Outdoor Big AdventuresThe Redfish 131-Oct-2130-Nov-21SOTT
Outdoor Big AdventuresThe Redfish 131-Oct-2130-Nov-21GO
PlanetWildlife2405-Oct-213-Nov-21SVOD
PlanetWildlife2405-Oct-213-Nov-21SOTT
PlanetWildlife2405-Oct-213-Nov-21GO
PlanetCrikey!Komodo95-Oct-213-Nov-21SVOD
PlanetCrikey!Komodo95-Oct-213-Nov-21SOTT
PlanetCrikey!Komodo95-Oct-213-Nov-21GO
PlanetLone StarMassacre115-Oct-213-Nov-21SVOD
PlanetLone StarMassacre115-Oct-213-Nov-21SOTT
PlanetLone StarMassacre115-Oct-213-Nov-21GO


Cheers
Darren

7 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      just to clarify, everything is done in the advance editor? sorry, quite a newbie here. thanks.

      So it groups all the columns and createa list and remove the duplicates there if it detects all 3 services? 

      • mussaenda's avatar
        mussaenda
        Community Champion

        Hi Anonymous ,

         

        For clarification, it is done in Power Query.

        Advanced editor is where you can see all the steps you do in Power Query.

         

        Have you tested the file?

        I suggest that you go though each applied step so you'll have the idea of each trasnformation.

         

        Basically, I group by title, listed all the services, then created a filter that if there are all the services and the row is SOTT then I will hide it.

         

        Hope this helps