Forum Discussion
How to start with this project? 3 tables multiple values
- 6 years ago
Difficult to say exactly but it seems like you need to create a composite key between RawMaterials and Recipes. So in PowerQuery, add a column to both like:
[MaterialID][Plant]
To create a unique key for each material by plant.
- 6 years ago
If I understand your scenario, I would do the following:
1. Add a column that merges Plant and Material in both your Raw Material and Recipes tables
2. Make a relationship between your two new columns (1:Many)
3. Use a measure like this - TotalCost = sumx(RawMaterials, RawMaterials[Preis]*Calculate(Sum(Recipes[Wert])))
I also assume you have a Date table that is filtering your Recipes table too.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
If I understand your scenario, I would do the following:
1. Add a column that merges Plant and Material in your commodity and recipe tables
2. Make a relationship between your two new columns (1:Many)
3. Use a measure like this - TotalCost - sumx(RawMaterials, RawMaterials[Preis]*Calculate(Sum(Recipes[Wert])))
I also assume that you have a date table that also filters the Recipes table.
If this works for you, please mark it as the solution. Congratulations are also appreciated. Please let me know if you don't.
Best regards
Pat