Forum Discussion
Need Suggestion
- 6 years ago
suvechha
You need to define the entire path of relationships and it seems that RELATED() function does not like the USERELATIONSHIP, so I have fixed it. Please check if this returns the expected results for technician:
Technician = CALCULATE(SELECTEDVALUE(AaaUser[FIRST_NAME]), USERELATIONSHIP(WorkOrder[WORKORDERID],WorkOrderStates[WORKORDERID]), USERELATIONSHIP(WorkOrderStates[OWNERID], SDUser[USERID]), USERELATIONSHIP(SDUser[USERID], AaaUser[USER_ID]))UPDATE: suvechha if you are getting an error about single path, you will need to make the relationship between WorkOrder and WorkOrderStates a many to one relationship with single cross filter direction.
Hi Allison,
I took the option 2.
But I am getting an error message
The column 'AaaUser[FIRST_NAME]' either doesn't exist or doesn't have a relationship to any table available in the current context.
Please kindly assist.
Are you getting the error message on Requester or Technician or both?
Do all the arrows in the relationships you created make a cascading connection from AaaUser to WorkOrder with all the arrows pointing toward WorkOrder table?
- suvechha6 years agoHelper IV
Hi Alison ,
Your suggestion Option 1 work.
But I want the Option2 to work.
I followed every steps you mentioned,
Please can you have a look on the sample file and let me know what is wrong.
https://1drv.ms/u/s!AhqwbtIVEKQ2bBzZ7PyqQ6ot-vk?e=coQGzS
You steps helped me to acheive almost what I want but not working 100%.
Thanks
Suvechha
- AllisonKennedy6 years agoCommunity Champion
suvechha
You need to define the entire path of relationships and it seems that RELATED() function does not like the USERELATIONSHIP, so I have fixed it. Please check if this returns the expected results for technician:
Technician = CALCULATE(SELECTEDVALUE(AaaUser[FIRST_NAME]), USERELATIONSHIP(WorkOrder[WORKORDERID],WorkOrderStates[WORKORDERID]), USERELATIONSHIP(WorkOrderStates[OWNERID], SDUser[USERID]), USERELATIONSHIP(SDUser[USERID], AaaUser[USER_ID]))UPDATE: suvechha if you are getting an error about single path, you will need to make the relationship between WorkOrder and WorkOrderStates a many to one relationship with single cross filter direction.
- suvechha6 years agoHelper IV
Thanks Allison for your help.
- suvechha6 years agoHelper IV
Hi Allison,
I am only getting error at Technician.
Please find the sample app link.
https://1drv.ms/u/s!AhqwbtIVEKQ2an7GOEIb_ql2hys
OR Else
Thanks,
Suvechha