Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
G'day!
Probably one of the most popular topics - I've read a ton of articles but I seem to be a blockhead today. Anyhow, I hope you can point me in the right direction with this rather simple challenge.
Table A:
| DECK_TYPE | DECK_HEIGHT | 
| CAR | 1.7 | 
| CAR | 2.0 | 
| HSV | 2.8 | 
| HHO | 3.2 | 
| HHO | 3.8 | 
| HHO | 4.3 | 
| HHM | 6.5 | 
Table B:
| CARGO_CLASS | HEIGHT | SQM | 
| AUTOS | 1.5 | 9 | 
| AUTOS | 1.85 | 10 | 
| H&H | 2.8 | 31 | 
| H&H | 3.4 | 25 | 
| BB | 5.7 | 43 | 
Problem description
Table A describes the capacity of a cargo carrier while Table B describes the cargo that shall be carried. My challenge is, that I need to apply a rather simple "least cost/effort" calculation to figure out how the different decks are utilized based on the currently booked cargo. In my Power Apps solution, I calculate a sorting order, where CAR has the lowest multiplicator and HHM the highest. That figure is multiplied with the DECK_HEIGHT and the first value of that calculated and sorted table is used to virtually assign the cargo. I can't pull that off in Power BI...
Following logic applies:
| DECK_TYPE | Can carry following CARGO_CLASS | 
| CAR | AUTOS | 
| HSV | AUTOS | 
| HHO | AUTO, H&H, BB | 
| HHM | AUTO, H&H, BB | 
Desired Output
| DECK_TYPE | DECK_HEIGHT | BOOKED_CARGO_SQM | 
| CAR | 1.7 | 9 | 
| CAR | 2.0 | 10 | 
| HSV | 2.8 | 0 | 
| HHO | 3.2 | 31 | 
| HHO | 3.8 | 25 | 
| HHO | 4.3 | 0 | 
| HHM | 6.5 | 43 | 
Can you please help me, to assemble the measure for BOOKED_CARGO_SQM?
Thank you in advance,
Henning
Solved! Go to Solution.
Hi @HenningB ,
If there is a relationship between the two tables, calculate "booked"_ CARGO_ Sqm "will become simple.
Refer to this thread:https://community.powerbi.com/t5/Desktop/Sum-Sales-over-two-unrelated-tables/td-p/359810
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @HenningB ,
If there is a relationship between the two tables, calculate "booked"_ CARGO_ Sqm "will become simple.
Refer to this thread:https://community.powerbi.com/t5/Desktop/Sum-Sales-over-two-unrelated-tables/td-p/359810
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 80 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |