Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
HenningB
Frequent Visitor

Current row value as filter context

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_TYPEDECK_HEIGHT
CAR1.7
CAR2.0
HSV2.8
HHO3.2
HHO3.8
HHO4.3
HHM6.5

 

Table B:

CARGO_CLASSHEIGHTSQM
AUTOS1.59
AUTOS1.8510
H&H2.831
H&H3.425
BB5.743


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_TYPECan carry following CARGO_CLASS
CARAUTOS
HSVAUTOS
HHOAUTO, H&H, BB
HHMAUTO, H&H, BB

 

Desired Output

DECK_TYPEDECK_HEIGHTBOOKED_CARGO_SQM
CAR1.79
CAR2.010
HSV2.80
HHO3.231
HHO3.825
HHO4.30
HHM6.543

 

Can you please help me, to assemble the measure for BOOKED_CARGO_SQM?

 

Thank you in advance,

Henning

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

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.

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors