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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
10656645
New Member

Refresh Error: Contains Duplicate Value

Hello PowerBI community, 

 

I am in need of help refreshing my daily sales report. I have categories for each item in the report and needed to change an items sales category in the excel file to match what accounting has in their reporting. When I went to refresh PowerBI with this change, I received an error stating that the table "Daily Sales" contains a duplicate value and this is not allowed. 

 

I attempted a few things. One being clearing the cache in the query editor (didnt work) and the other changing the relationships up which also didnt work. 

 

Does anyone know anything else I can try without having to change the sales category back to the wrong one in the excel file? 

 

Thank you!

1 ACCEPTED SOLUTION

Solution!!!

 

I went into query editor and removed the index column with the duplicates then re-added a new index column with new numbers. 

10656645_0-1651673666871.png

 

View solution in original post

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @10656645 ,

Pls test operation like the below:

1. Go to Model on the left bar and then click 'Manage relationships' under the 'Home' menu.

2. Select which relationship is causing the issue and then delete it.

3. Open Power Query and then go to the 'Add Column' menu and click 'Index Column From 1'

4. Refresh all queries and then click 'Load & Apply'.

 

 

Similar question refer:

https://community.powerbi.com/t5/Desktop/Refresh-error-quot-contains-duplicate-value-and-this-is-not... 

https://community.powerbi.com/t5/Desktop/Get-quot-not-allowed-for-columns-on-the-one-side-of-a-many-... 

 

 

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

Solution!!!

 

I went into query editor and removed the index column with the duplicates then re-added a new index column with new numbers. 

10656645_0-1651673666871.png

 

aj1973
Community Champion
Community Champion

Hi @10656645 

Have you tried to refresh the report in your desktop? Before that delete all relationships to that excel sheet and refresh, then relate the table back in.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

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.

Top Kudoed Authors