Hi,
I do have issues with relationship in the datamodel to show the proper data in my analysis.
The attached sample file should show my problem.
I do have 7 Tables loaded into PQ and the Datamodel.
DIMCustomer: List of Customer and partnumber (=Finish Goods)
DIMSupplier: List of Supplier part number and the names
DIMDate: just simple years
SalesVolume: for each Customer Finish Good and year the sales volume
Sales Price: price per year for each Finish good
BOM: For each Customer Finish good a supplier partumber including the amount used for the finish good.
BOM Price: Price for each Supplier part for each year
BOM usage means e.g. to build Partnumber Customer 1 I need 5 S1 Part, 2 S2 Part and 1 S3 parts
I created the relationships but get the wrong results im my worksheet PIVOT.
What do I want:
The Pivot table should be able to show per my row selection the Salesvolumen, the used BOM Parts and quantity of them, the cost of the BOM parts,...
I created one example in the sheet PIVOT (Yellow area)
What is my problem:
The Relationship is not working. after selecting the cust.Partnumber I see all Suppliers and all Partnumber of the supplier. Therefore the volumes are also wrong
Another issue is the DAX to calculate the measure. E.g. for my selection in the pivot, multiply the USAGE with the Volume(=measure BOM Units), then take this measure and multiply the result with the price
I hope someone can help me out a bit
thanks
Bookmarks