Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 wrong, but I'm definately using CALCULATE and USERELATIONSHIP.
Leavers VOL = CALCULATE(COUNT(Person[PersonID]),
USERELATIONSHIP(Dates[Date], Person[TerminationDate])+0,
FILTER(Person,Person[TerminationReason] IN{"Resignation - VOL","Retirement - VOL"}))
Assistance is much appreciated
Solved! Go to Solution.
Hi @GJ217
You may try it this way
Leavers VOL =
CALCULATE (
COUNT ( Person[PersonID] ),
USERELATIONSHIP ( Dates[Date], Person[TerminationDate] ),
FILTER (
Person,
Person[TerminationReason] IN { "Resignation - VOL", "Retirement - VOL" }
)
) + 0
Hi @GJ217
You may try it this way
Leavers VOL =
CALCULATE (
COUNT ( Person[PersonID] ),
USERELATIONSHIP ( Dates[Date], Person[TerminationDate] ),
FILTER (
Person,
Person[TerminationReason] IN { "Resignation - VOL", "Retirement - VOL" }
)
) + 0
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
97 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |