Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a many-to-many relationship problem that is quite hard to solve.
In my ProductionTable I have information on what date and time the production starts on what AssemblyArea and what the VehicleNumber is that is going to get produced.
On the other table I have what part number (Partno) included in each VehicleNumber and that quantity of each part number.
The two tables are linked together with a number called LinkNumber that has a many-to-many relationship because one VehicleNumber can include many different part numbers and one part number can be included in many different VehicleNumbers. You can see the relationship in the picture below.
In the picture below you can see the problem. I have filtered on one production date, one article number and one AssemblyArea and wants to see how many of that article number is going to be used that day (Quantity) in that AssemblyArea. Table 1 shows what I get now (Wrong value). The true value should be quantity multiplied with count of VehicleNumber for each unique LinkNumber, in this case 15.
Note that the quantity can differ from LinkNumber to LinkNumber even if it´s the same Partno.
Any help is appreciated!
Regards
Hi,
I would say, you need to create a bridge table to have relationship many to one in order to have this right.
Best regards
Alin Oprita
I have tried that like in the picture below but I get the same problem. As far as I understand, it is just the same problem with an extra step.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
94 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |