Forum Discussion
More than 3 relationships between same table
Hi Anonymous ,
Up to 10 USERELATIONSHIP functions can be nested; however, your expression might have a deeper level of nesting, ie. the following sample expression is nested 3 levels deep but only 2 for USEREALTIONSHIP: =CALCULATE(CALCULATE( CALCULATE( <anyExpression>, USERELATIONSHIP( t1[colA], t2[colB])), t99[colZ]=999), USERELATIONSHIP( t1[colA], t2[colA])).
=
CALCULATE (
CALCULATE (
CALCULATE ( SUM ( table[sales] ), USERELATIONSHIP ( t1[colA], t2[colB] ) ),
t99[colZ] = 999
),
USERELATIONSHIP ( t1[colA], t2[colA] )
)
Reference:
https://docs.microsoft.com/en-us/dax/userelationship-function-dax
Hello Xue,
Thank you for providing the syntax. Can you please be more specific on the syntax like what would be the condition for t99[colZ]=999
Or I would appreciate if you provide the formula with respect to the screen shot that would be of great help.
Thanks
Deepak
- Anonymous4 years agoNot applicable
I have the same doubt, Deepak.
Some answer, Xue Ding?