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.
Hi All,
I have a question that I need help on...See situation below.
I would like to know for each of my trips what the load capacity is. I need to get this from another table but am not able to resolve. I need to be able to see per [tripnr] what the load capacity is of the vehicle. Vehicle and Rcombi are currently actively connected through [truck] , but the capacity comes from the trailers which is an inactive relation with [vehiclenr]
Table Vehicle
[vehicle nr] | active 1 - * relation to RComb [truck], inactive 1 - * relation to RComb [trailer] |
[Loading capacity] | holds value for load capacity of the vehicle nr |
Table RComb
[truck] | active * - 1 relation to Vehicle [vehiclenr] |
[trailer] | inactive * - 1 to Vehicle [vehiclenr] |
[trip] | active * - 1 to Trip [tripnr] |
Table Trip
[tripnr] | active 1 to * relation to RComb [trip] |
How do I get a measure that allows me to give the [loading capacity] per [tripnr].
Should I use Use Relationship formula..? Hope it is clear. Thanks for help!
Hi NV Durga Prasad,
Thanks for your repoonse but I had tried that already and get incorrect outcome.
So what I did is that I created in Table vehicle a measure that is [# Loading capacity] = SUM('Vehicle'[LoadingCapacity]). In 1st table below you see that gives per vehiclenr the correct answer.
Hower I I then create a measure in table RComb that
Hi Dave,
Yes when you are having inactive relationship then "USE RELATIONSHIP" function turns active during measure run time.
typical syntax is like "CALCULATE ([MEASURE], USERLATIONSHIP(TABLE1[COLUMN],TABLE2[COLUMN]))
Appreciate a Kudos! 🙂
If this helps and resolves the issue, please mark it as a Solution! 🙂
Regards,
N V Durga Prasad
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 |
---|---|
21 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |