Forum Discussion
USERELATIONSHIP not working?
Be careful when using VAR. DAX Variable is actually a constant value: once defined, it never changes. So in your case, the filter argument with USERELATIONSHIP is actually useless. Following your thread of thought, you can try to create a intermediate measure and it shall work.
- Thennarasu_R3 years agoResponsive Resident
FreemanZ
i Using USERELATIONSHIP in variables its working fine
Thanks,
Thennarasu - Anonymous3 years agoNot applicable
Tried an intermediate measure, but get the same result.
- FreemanZ3 years agoSuper User
try to add a physical column.
- FreemanZ3 years agoSuper User
a imtermediate measure is not working in your case, because
a measure is implicitely wrapped with CALCULATE. So it is like this
CALCULATE(
CALCULATE,
USERELATIONSHIP()
)
As the filter argument of the inner CALCULATE has higher priority over its outer filter context (from USERELATIONSHIP), so again USERELATIONSHIP is useless.