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

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.

Reply
Logistics
Regular Visitor

Man-to-many problem, what articles and how many is included in one vehicleID?

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.

 

Power BI Relationship.PNG

 

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.

 

Power BI Problem.PNG

 

Note that the quantity can differ from LinkNumber to LinkNumber even if it´s the same Partno.

 

Any help is appreciated! 

Regards 

 

 

2 REPLIES 2
Anonymous
Not applicable

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.

 

Bridge.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.