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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Anonymous
Not applicable

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

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

Hi @Anonymous,

Please elaborate on your requirement.

Pragati11
Super User
Super User

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!!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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