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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
obriaincian
Resolver I
Resolver I

power bi summarize duplicate error

Hi Community,
 
I am facing an issue when using the summarise function.
What I am trying to do is create a new table with distinct values. To do this I am using summarise.
 
The query I'm using is:
</Table = SUMMARIZE('Data','Data'[Data.ID],'Data'[Data.Company],'Data'[Data.Department])>
 
The issue I'm having is that when I add deparement to the quiery I get the following error:
Column '' in Table '' contains a duplicate value and this is not allowed for columns on the one side of a many-to-one relationship
 
The table I'm using will be used when creating slicers for my dashboard, and is linked to 2 other tables (hence the relationship error).
 
Just wondering if there is a solution for this. Can't find any concrete answers online
2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

As you say, it is highly recommended to keep relationships as one-to-many. If the tables you need as slicers cannot work with one-to-many relationships, I suggest you create separate tables for each field. You can use a measure to filter the other silcers  to limit selection options to actual rows of data.

Here is an example based on this simple fact table:

ftable.jpg

 I've created separate tables for Company and Department using the DISTCINCT function:

slicer.jpg

 

The model is as follows:model.jpg

 

Create this measure to use as a filter for each slicer, by adding it to the filters in the filter pane:

Filter Slicers = 
COUNTROWS(RELATEDTABLE(FTable))

fs.jpg

 

To get:

FS.gif

 

I've attached the sample PBIX file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






AntonioM
Solution Sage
Solution Sage

Does it work without department added? One thing you could do is remove the relationships first before you add in department and then relink the tables.

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors