Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello all,
I have a problem:
I got a table which contains duplicated values (a duplicated value means one order contains of more than 1 item). Anyway, at one side, I need the duplicated values to count the gross sold items, at the other hand I also need the number of orders to count the weighted value of an order, hence, net to get rid of the duplicated values.
Therefore, I created a table which contains all columns from the original table, but gets rid of the duplicatons. For the creation of the table I used:
Solved! Go to Solution.
@Anonymous
I've just tried your table syntax in a dummy dataset and it works (no duplicated values). This can occur if the dataset includes null values or blank values for the field used in the relationship.
Can you try two things:
1) create the table using VALUES('Table1'[Sales Doc.])
2) creat another table using DISTINCT('Table1'[Sales Doc.])
One of these, (I thin the VALUES option) will include "blank" as a row if the dataset contains blank rows.
Try if either of these works in a one-to-many relationship.
Proud to be a Super User!
Paul on Linkedin.
Hi @Anonymous
Can you please provide soem data to work with? Without using your data it's a bit tricky!
If PBI is telling you that it's a many-to-many relationship then I'd say it is so we're missing something here. Without your data it's hard to help.
Regards
Phil
Proud to be a Super User!
Hi Phil,
I'm sorry but I cant provide the dataset as it's confidential. And like said I've now figured out why this error occured (blank values where there shouldn't have been some) so now I got problems with the measure...:/
@Anonymous
I've just tried your table syntax in a dummy dataset and it works (no duplicated values). This can occur if the dataset includes null values or blank values for the field used in the relationship.
Can you try two things:
1) create the table using VALUES('Table1'[Sales Doc.])
2) creat another table using DISTINCT('Table1'[Sales Doc.])
One of these, (I thin the VALUES option) will include "blank" as a row if the dataset contains blank rows.
Try if either of these works in a one-to-many relationship.
Proud to be a Super User!
Paul on Linkedin.
Indeed the issue was the blank values. I changed them using "replace values" in PowerQuery and it ended up working and creating the path for a follow up problem 🙂
Well like mentioned below, it didn't work as intended, however, I've solved that issue by replacing all blanks in the original tables (which definitely should not be there!) by "0" via PowerQuery. After, I could establish a 1:many-relationship.
Anyway, the value output is still wrong. So, I'm using the measurement:
Hi @PaulDBrown ,
First of all thanks for your kind support!
However, I tried both options and unfortunately neither of them worked...
1) I created the VALUES-Table, but it told me a circular dependancy was created
2) I Created the second distinct table, that filters the first one, but when I tried to link that to the table that I want to be filtered, it told me, "that this cardinality isn't valid for this relationship". This, however accounts for every relationship except the "many-to-me"-option so that doesn't work either and now I'm kind of desperate...
I also can't override thos errors as they disable the "OK"-button...
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 76 | |
| 52 | |
| 51 | |
| 46 |