Forum Discussion
Help with calculation
Thank you, both. Unfortunately I cannot get either suggestion to work. I guess it is because my data is a bit more complicated, than my simplified example. The Recipes-table includes the same Recipe ID many times. Since the same Recipe can be changed, the Recipe-table gets a new row for every time a Recipe is used in a report. Like this:
Recipes-table:
Id Recipe ID Report ID Preset KG
1 1 1 4
2 1 2 4
3 2 2 3
4 2 3 3
To get this to work, I have made another table: SharedDimRecipeId, which takes the Recipe ID from the Holes-table and removes duplicates. Then I have many-to-one relationships from the Recipes-table and the Holes-table to this new SharedDimRecipeID.
Any ideas?
Please provide sanitized sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.