Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
7 |
User | Count |
---|---|
13 | |
12 | |
11 | |
11 | |
8 |