Forum Discussion
can't create direct active relationship
- Anonymous4 years ago
Hi Anonymous ,
USERRELATIONSHIP function works.
My sample data is as follows.
What you need to pay attention to is that your relationship is to be created an inactive relationship, uncheck this option.
Measure = CALCULATE(SUM('Out_Duration_ChildTMC_Affiliate_Final'[FixedShipments]),USERELATIONSHIP(Out_Duration_ChildTMC_Affiliate_Final[Affiliate],Out_RefernceDates[Affiliate]))Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Your idea with the userelationship is a good if you are not able to create active relationship. Could you provide more details as to how your measure is not currently working? Additionally it would be good to have some sort of idea about how your data model is structured. Anyway, if you are trying to calculate the fixed shipments based on Affiliate and ChildTMC you could consider making a combined primary key out of these two by using CONCAT either in powerqeury, in your database or within a calculated column. Afterwards you can use this key to create the relationship.
- Anonymous4 years agoNot applicable
ValtteriN my measure return wrong value . In both table common value ChildTMC ,Affiliate.
for exampleAffiliate ChildTMC
1002020 LOOF
FixedShipments value zero but i have applied measure its return value 17.50
- Anonymous4 years agoNot applicable
Hi Anonymous ,
USERRELATIONSHIP function works.
My sample data is as follows.
What you need to pay attention to is that your relationship is to be created an inactive relationship, uncheck this option.
Measure = CALCULATE(SUM('Out_Duration_ChildTMC_Affiliate_Final'[FixedShipments]),USERELATIONSHIP(Out_Duration_ChildTMC_Affiliate_Final[Affiliate],Out_RefernceDates[Affiliate]))Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.