Forum Discussion
undefi
- 4 months ago
Hi Sno_93
You cannot have both Country and Brand relationships active at the same time and USERELATIONSHIP only activates one and not both. You can handle in DAX by applying both filters using TREATAS which simulates a multi column relationship.
Turnover_Target =CALCULATE(
SUM('Targets'[Turnover_Target]) / 4,
TREATAS(VALUES('Sales'[Country]), 'Targets'[Country]),TREATAS(VALUES('Sales'[Brand]), 'Targets'[Brand]))
It allows the measure to respond to both Country and Brand filters without needing multiple active relationships
Hi Sno_93
You cannot have both Country and Brand relationships active at the same time and USERELATIONSHIP only activates one and not both. You can handle in DAX by applying both filters using TREATAS which simulates a multi column relationship.
Turnover_Target =CALCULATE(
SUM('Targets'[Turnover_Target]) / 4,
TREATAS(VALUES('Sales'[Country]), 'Targets'[Country]),TREATAS(VALUES('Sales'[Brand]), 'Targets'[Brand]))
It allows the measure to respond to both Country and Brand filters without needing multiple active relationships
Thanks a bunch