Forum Discussion
stefani_vileva
Resolver II
4 years agoUse relationship as measure not working
Hello everyone, I am struggling with the userelationship function which is not working as I have planed. My model is looking like this: - Products table - which contains all of the details of t...
- 4 years ago
Box = CALCULATE( SELECTEDVALUE(Packages[Name]), USERELATIONSHIP(Products[Box ID],Packages[Pack ID]), CROSSFILTER(Products[Box ID],Packages[Pack ID], Both), CROSSFILTER(Clients[Product ID], Products[Product ID], Both) )
SpartaBI
Community Champion
4 years agostefani_vileva that is another issue 🙂 The reason for the error was what I wrote. I will take a look at your file
SpartaBI
Community Champion
4 years agoBox =
CALCULATE(
SELECTEDVALUE(Packages[Name]),
USERELATIONSHIP(Products[Box ID],Packages[Pack ID]),
CROSSFILTER(Products[Box ID],Packages[Pack ID], Both),
CROSSFILTER(Clients[Product ID], Products[Product ID], Both)
)- stefani_vileva4 years ago
Resolver II
Thank you SpartaBI. Your solution works!