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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Remove duplicate rows when refreshing

Hi, my issue is that I have some workbooks that contain data from 45 days back each one, and I'll be adding a new workbook weekly, then I have entire rows duplicated with same data in every column, so I need to remove duplicates every time I add a new workbook to the folder and refresh the table. In query Editor in "transform file sample" I add the step "remove duplicates" but it's not working, I tried selecting every column, also in the table icon but doesn't work neither. The only way to make it work is selecting the table and then remove duplicate rows, but i'll have to do that every time I add a file

 

 

1 ACCEPTED SOLUTION

Hi, @Anonymous 

 

Based on your description, I'd like to suggest you refer to Referencing Power Query queries about reference. You may parameterise a data source to load the entire folder. For further information, please refer to the following links.

https://www.biinsight.com/power-bi-desktop-query-parameters-part-1/

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

Sounds like you are using some sort of Append query or perhaps a Folder query. Can you create another query, reference your Append or Folder query and add your remove duplicate rows there?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

hello, i create a reference from my sample file but when I refresh, only load the file that used for the sample, what should I do to use the parameters that a I set and load the entire folder?

Hi, @Anonymous 

 

Based on your description, I'd like to suggest you refer to Referencing Power Query queries about reference. You may parameterise a data source to load the entire folder. For further information, please refer to the following links.

https://www.biinsight.com/power-bi-desktop-query-parameters-part-1/

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

yes I loaded a folder and have to append to combine multiple worksheets of each workbook. taking all the data to a new query/table will resolve this issue? Sorry i'm new in this. There's no way to remove it directly in the created table? 
These are the steps applied in the sample file

steps.PNG

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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