Forum Discussion
Modelling
- 1 year ago
Hi FabianHolm seems like the relationship beteen MaterialDim to FactTable is not set properly. As its a dimension and Fact table relationship if possible try to make it 1 to many.
If i implement your model with same sample data it will be look like this
Here: Relationships are
ESG[CatNum] = MaterialDim[CatNum]
MaterialDim[Key] = FactTable[Key]
Measure:
MyVal1 = CALCULATE(SUM(FactTable[Val1]), FILTER(ESG, ESG[Name] = "Cat1"))Results:
As you can see i got 13 (11 + 2) for Cat1 which is correct.
Idea:
- Keep 1-1 relationship between ESG and MaterialDim
- Make sure MaterialDim (Key) column is unique and relationship is 1 to many (ideal)
Let me know what is the different situation you have?
Thanks
Hi FabianHolm
Thank you for submitting your question to the Microsoft Fabric Community Forum, and thanks to rajendraongole1 , Royel and tayloramy for offering helpful suggestions.
Could you let us know if the suggested solution resolved your issue?If you still need help, please share more details so we can assist you further.
Thank you.