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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Priyange
Regular Visitor

Create pallets with series of vaule not exceed the certain sum per pallet by using fewest pallets

Hi All 

Please excuse me for my layman's expression. 

Order_nrArticleHight
Order1Art15
Order1Art21
Order1Art38
Order1Art43
Order1Art52
Order2Art11
Order2Art29
Order2Art38
Order2Art45
Order2Art54
Order2Art65
Order2Art74

 

I need a column in the above table based on the following criteria:
Per "Order_nr" assing pallet numbers where the total height of the pallet does not exceed 10 and the height of the items are combined to use fewer pallets as possible per order.

 

Example:

Order_nrArticleHightPaletteNr
Order1Art151
Order1Art212
Order1Art382
Order1Art431
Order1Art521
Order2Art113
Order2Art291
Order2Art382
Order2Art453
Order2Art542
Order2Art653
Order2Art742

 

Could someone tell me how to achive this in PowerBI?

Thank you.
Regards

Priyange

6 REPLIES 6
Priyange
Regular Visitor

Anyone?

Hi, @Priyange 

 

Sorry, I can't see the calculation logic of PaletteNr, can you explain it?

vjaneygmsft_0-1646120201759.png

How to get the results?

 

Janey

The calculation logic is:

Bundle "Order_nr" and "Articles" based on the "hight" column. Assign an incremental number for each "PalletNo" group.
Conditions:
1. total value of "hight" per group "PalettNr" should not exceed 10.

2. create as less bundles ("PalettNr") per "Order_nr" as possible. 

 

Real world scenario:

"Order_Nr" are customer orders and "Articles" are items per order. "Hight" = height of all the boxes per item when boxes are stacked on top of each other. The challenge is to group the boxes of items, where all the boxes of same item stays to gether on singel pallet and total of height per pallet should not exceed 10 amd use lesser number of pallets as possible to save the space in the transport truck.  

Hi, @Priyange 

 

Sorry, I have no way to write a reasonable physical calculation logic based on your summary, DAX can't implement this kind of reasoning calculus. So your requirements are not suitable to be implemented in powerbi. 

 

Best Regards,

Community Support Team _Janey

Russell-PBI
Resolver II
Resolver II

Hi @Priyange, off the top of my head, I'd expect some sort of looping to be required, e.g., pick the tallest first, then find the next tallest that fits in the remainder and so on until filled, then start a new set.

 

It may be possible in Power BI and someone much cleverer than me may know how, but, just in case, do you have any other tools available to you to do the logic for this prior to pulling it into Power BI?

Hi, Actually this is done in warehouse picking logic (for which i don't have access to). But I want to create a simulation in Power Bi to visualize different scenarios based on stack height. I assume there is some kind of magic DAX form I could use. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.