Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Remove Duplicates after merging tables

I have what is probably a really dumb issue, but I am a powerquery/DAX noob. 🙂

 

I am taking several datasets with data that looks like this: 

Machine NameOperating SystemDomain
ABCD1234Windows 10domain.company.com

and appending them together to create a 'master list' of machine name.

 

When I append the data tables together and 'remove duplicates' on column #1, i can't get it to remove duplicates, because they'll be formatted like this:

Machine NameOperating SystemDomain
ABCD1234Windows 10domain.company.com
ABCD1234Windows 10 Enterprisedomain.company.com

 

I don't care which one it keeps, but I am assuming as long as theres another column with different data it will never see that 2nd row as a duplicate.

 

If I start with each table, and try to merge the queries, It wont let me consolidate the columns either.

E.g. it will do this:

Machine NameOperating SystemOperating System.1
ABCD1234Windows 10Windows 10 Enterprise

 

Do I have to merge the sources and then somehow concatenate the columns down to 1? I don't know how to scrub that as it's going to be a mix of nulls and some where it gets results for each table.

 

Thanks in advance!!

  • Anonymous's avatar
    Anonymous
    4 years ago

    I just realized i never tried the "Clean" option.  No idea what that changed but it may have worked.

     

    I swear I tried trim and all those others 100 times but I guess I must have had some weird extra character. I even exported the data and didn't see any but alas... there we go. sigh. 🤦‍♂️🤦‍♂️ 

     

    Thanks! 

4 Replies