Forum Discussion
Anonymous
4 years agoNot applicable
CALCULATE and USERRELATIONSHIP not working
Hi, I'm getting an error message the following error message "USERELATIONSHIP function can only be used in the CALCULATE" with the below measure I have written and I'm not sure where I have gone ...
- 4 years ago
Hi Anonymous
You may try it this wayLeavers VOL = CALCULATE ( COUNT ( Person[PersonID] ), USERELATIONSHIP ( Dates[Date], Person[TerminationDate] ), FILTER ( Person, Person[TerminationReason] IN { "Resignation - VOL", "Retirement - VOL" } ) ) + 0
Anonymous
4 years agoNot applicable