Forum Discussion
shefali_13
3 years agoRegular Visitor
USERELATIONSHIP function can only use the two columns references participating in relationship
Hi, I have inactive relationships set up between 'MyReport' and 'LegendCategories' table; however, I am still seeing the error 'USERELATIONSHIP function can only use the two columns references partic...
amitchandak
3 years agoSuper User
shefali_13 , hope you have created an inactive/active relationship between USERELATIONSHIP('MyReport'[Race], LegendCategories[Category]) or USERELATIONSHIP('MyReport'[Gender], LegendCategories[Category])
if the relationship is missing, then you get an error like above
example
Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970