I am struggling a bit with a pretty simple measure at the moment. How can I deactivate a relationship between two tables? I have a fact table, that shows me all values for each item per date: Item - Value - Date - State - Type
This table is linked to the calendar table. In the end, I have pivot table that sums up the values per week. Now I need an additional column in this pivot table that shows me the total value for all items with a etate of "50", regardless of the date. I already have tried something like this:
=CALCULATE(SUM([Value]);ALL(Calendar);FILTER(tbl;tbl[State]=50))
This is not working.
How would you manage that?
ALLSELECTEDfunction might help you here, but I would need to know more about your data model. - Christian Welsch