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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jdevalk77
Frequent Visitor

Truckload efficiency

I do have a challenge;

I'd like to calculate the load efficiency per truckride. I do have a table with ridenumber, parcel/pallet category and quantity and the idea is to calculate the need floorspace known that a pallet uses 1,08 m². To keep it simple we calculated that 16 parcels uses the same floorspace as 1 pallet. So in case of let's say 8 pallets and 14 parcels per ride, the total floorspace would be (8*1,08) + ((14/16)*1,08) = 9,585 m²

I do have multiple rows that contains parcel and pallet data like:

RidenumberParcel_PalletQuantity_PCR
52593Colli4
52593Pallet2
52593Pallet1
52593Pallet1
52593Colli1
52593Pallet1
52593Pallet1
52593Colli6
52593Pallet1
52593Colli1
52593Colli2
52593Pallet1


And of course I do have more ridenumbers.
Who could help me? Thanks in advance.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@jdevalk77 If a Colli a parcel then maybe this. PBIX below signature.

Measure = 
    VAR __Pallet = 1.08
    VAR __Parcel = __Pallet / 16
    VAR __Table = 
        ADDCOLUMNS(
            SUMMARIZE('Table', [Ridenumber], 'Table'[Parcel_Pallet], "__Quantity", SUM('Table'[Quantity_PCR])),
            "__M2", IF([Parcel_Pallet] = "Colli", [__Quantity] * __Parcel, [__Quantity] * __Pallet)
        )
    VAR __Result = SUMX( __Table, [__M2] )
RETURN
    __Result

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@jdevalk77 If a Colli a parcel then maybe this. PBIX below signature.

Measure = 
    VAR __Pallet = 1.08
    VAR __Parcel = __Pallet / 16
    VAR __Table = 
        ADDCOLUMNS(
            SUMMARIZE('Table', [Ridenumber], 'Table'[Parcel_Pallet], "__Quantity", SUM('Table'[Quantity_PCR])),
            "__M2", IF([Parcel_Pallet] = "Colli", [__Quantity] * __Parcel, [__Quantity] * __Pallet)
        )
    VAR __Result = SUMX( __Table, [__M2] )
RETURN
    __Result

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Yes, correct. Sorry, forgot the record translation.

@jdevalk77 OK, I edited my original reply with what I believe to be the answer.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

This is great, many thanks for your fast repsonse.
Much appreciated.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.