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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I use the following code for a calculated table in Power BI:
CALCULATETABLE(
Contracts,
PricePlans[Range] = TRUE(),
Partners[Parent Company Name] = BLANK()
)
The table cannot be created, and I receive the error message saying:
Column '' in Table '' contains a duplicate value '24909' and this is not allowed for columns on the one side of a many-to-one relationship or for columns that are used as the primary key of a table.
I guess there should be column and table names between the single quotes, but there is nothing. I also checked the two relationships, both are many-to-one. The value 24909 is twice on the many side, and once on the one side.
What's even weirder is that the same command runs flawlessly in DAX Studio and gives back the result I look for.
Any help would be greatly appreciated.
Solved! Go to Solution.
Ok, I found a solution, I just needed to ask the question here 🙂
I deleted the table and recreated it again, and it worked. Maybe it had to do with a calculated column I added to this table. After adding the calculated column, I modified the model somewhat, which resulted in the error message.
Anyway, I would still love to hear some ideas about how could I have diagnosed the problem.
I got the idea of deleting and recreating the table again. However, it is very strange. In my case I get the same message but I was creating a table with the DAX UNION function and according to the documentation although there are duplicates in the two sets with the same columns, it still failed me but it should work. I backed up the DAX code, deleted the table then recreated it with the same code and that's it.
Ok, I found a solution, I just needed to ask the question here 🙂
I deleted the table and recreated it again, and it worked. Maybe it had to do with a calculated column I added to this table. After adding the calculated column, I modified the model somewhat, which resulted in the error message.
Anyway, I would still love to hear some ideas about how could I have diagnosed the problem.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 54 | |
| 41 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 106 | |
| 99 | |
| 38 | |
| 29 | |
| 28 |