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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
bammyd36
Frequent Visitor

Data appears twice in power query

Hello everyone,

 

I have an issue with my data. When I get new data from my data source (Athena), it duplicates itself in power query. Right after the last row, the same data appears again from the beginning so instead of having 100 rows I get 200 rows. I've tried to delete the table and connect to the data again but the data still appears twice right from the Navigation step. 

I can't remove duplicates because there is no unique identifier that I can use.

 

Can you please help?

 

 

 

 

2 ACCEPTED SOLUTIONS
RocketRod
Frequent Visitor

Verify your data source doesn't have duplicated data. If the source is Excel delete all the rows in the workbook after the last know row.

 

If that doesn't fix it post your m code. Also if it's duplicating the data, select all columns and click Remive Duplicates....however that's a poor band aid as you really want to find the root cause of the duplicates.

View solution in original post

Thank you for your suggestion.

 

The problem was from the data source so I corrected it from there and added index column.

View solution in original post

3 REPLIES 3
v-cgao-msft
Community Support
Community Support

Hi @bammyd36 ,

1. 1. If each row is unique, consider using Table.Distinct ()

2. Consider adding an index column in your data source.

 

If that still doesn't solve the problem, consider publishing the code in the advanced editor, taking care to remove the data source information, we need to know how it is queried.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Thank you for your suggestion.

 

The problem was from the data source so I corrected it from there and added index column.

RocketRod
Frequent Visitor

Verify your data source doesn't have duplicated data. If the source is Excel delete all the rows in the workbook after the last know row.

 

If that doesn't fix it post your m code. Also if it's duplicating the data, select all columns and click Remive Duplicates....however that's a poor band aid as you really want to find the root cause of the duplicates.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors