Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
i am trying to create active relationship between two tables . i am getting error you can't create direct active relationship between Out_Duration_ChildTMC_Affiliate_Final and Out_RefernceDates because that would introduct ambiguity between tables D_scenario and Out_Duration_ChildTMC_Affiliate_Final . To make this relationshiop active,Deactivate or delete one of the realtionship between _scenario and Out_Duration_ChildTMC_Affiliate_Final first.
i am trying to take fixed shipments value from Out_Duration_ChildTMC_Affiliate_Fina based on Affiliate and ChildTMC.
Out_RefernceDates
Affiliate ChildTMC ID LPPYear
1002020 LOOF 898372 2019
Out_Duration_ChildTMC_Affiliate_Final
Affiliate ChildTMC ID LPPYear FixedShipments
1002020 LOOF 898372 2019 0
final output refernce :
Out_RefernceDates
Affiliate ChildTMC ID LPPYear FixedShipments
1002020 LOOF 898372 2019 0
i have tired with USERELATIONSHIP function but its not working
thanks in advance. i am looking for help .
Solved! Go to Solution.
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.
Proud to be a Super User!
@ValtteriN my measure return wrong value . In both table common value ChildTMC ,Affiliate.
for example
Affiliate ChildTMC
1002020 LOOF
FixedShipments value zero but i have applied measure its return value 17.50
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
17 | |
7 | |
7 | |
6 | |
5 |
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |