Reply
avatar user
Anonymous
Not applicable
Partially syndicated - Outbound

Query Editor- Remove Duplicate

Hi Team,

 

I have to remove duplicate based on single column.

 

see Keep column, don't keep B1, B3 and next item 02 also.

 

use Edit Query only.

 

Capture.PNG

 

 

Thanks,

KV's

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Syndicated - Outbound

HI @Anonymous ,

 

Can you kindly elaborate on your data please?

Pragati11_0-1621847104397.png

If I understand it correctly, you first need to split your column, then remove duplicates and merge them back.

 

Consider as follows:

Pragati11_1-1621847398686.png

 

Click on column and on top ribbon and make highlighted selection:

Pragati11_2-1621847465544.png

 

A new window appears. Fill in highlighted information:

Pragati11_3-1621847508178.png

 You will get this:

Pragati11_4-1621847530659.png

 

Right click on 1st column and select Remove Duplicates:

Pragati11_5-1621847580971.png

You will get following:

Pragati11_6-1621847610875.png

 

Now merge these columns again by selecting both columns and right-click:

Pragati11_7-1621847662667.png

A window appears. Don't forget to mention the separator as in your original column values:

Pragati11_9-1621847762742.png

 

After merging you get the required result:

Pragati11_10-1621847783775.png

 

The values from your data are taken as example as you haven't shared the data in right format to be copied and pasted easily. I had to type the values. From next time make sure you add data in such a format that anyone can copy and use it in answering your query.

Try same steps on your data, you will get the desired result.

 

Thanks,

Pragati

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

2 REPLIES 2
simrantuli
Continued Contributor
Continued Contributor

Syndicated - Outbound

Hi @Anonymous,

Please elaborate on your requirement.

Pragati11
Super User
Super User

Syndicated - Outbound

HI @Anonymous ,

 

Can you kindly elaborate on your data please?

Pragati11_0-1621847104397.png

If I understand it correctly, you first need to split your column, then remove duplicates and merge them back.

 

Consider as follows:

Pragati11_1-1621847398686.png

 

Click on column and on top ribbon and make highlighted selection:

Pragati11_2-1621847465544.png

 

A new window appears. Fill in highlighted information:

Pragati11_3-1621847508178.png

 You will get this:

Pragati11_4-1621847530659.png

 

Right click on 1st column and select Remove Duplicates:

Pragati11_5-1621847580971.png

You will get following:

Pragati11_6-1621847610875.png

 

Now merge these columns again by selecting both columns and right-click:

Pragati11_7-1621847662667.png

A window appears. Don't forget to mention the separator as in your original column values:

Pragati11_9-1621847762742.png

 

After merging you get the required result:

Pragati11_10-1621847783775.png

 

The values from your data are taken as example as you haven't shared the data in right format to be copied and pasted easily. I had to type the values. From next time make sure you add data in such a format that anyone can copy and use it in answering your query.

Try same steps on your data, you will get the desired result.

 

Thanks,

Pragati

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)