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
Anonymous
Not applicable

Warehouse inbound accumulative count

I am trying to work out how to show pallets coming into my warehouse vs the maximum capacity i can recieve by hour. 

 

Each hour of the day i can recieve 88 pallets, if in hour 1 i recieve 70, i have extra capacity for 18. In hour 2 i want to tip 104 i would have 16 left over. That 16 would then role into the 3rd hour and so on. 

 

How is the best way to calculate this. Below is the data i am working with. 

 

Time BinsPallets inboundMaximum tip per hourVariance
01:00:007088-18
02:00:001048816
03:00:001568868
04:00:002688-62
05:00:005288-36
06:00:001308842
07:00:005288-36
08:00:00088-88
09:00:001568868
10:00:005288-36
11:00:004488-44
12:00:002688-62
13:00:002688-62
14:00:005288-36
15:00:007888-10
16:00:001488860
17:00:00088-88
18:00:005288-36
19:00:002688-62
20:00:001828894
21:00:001568868
22:00:0023488146
23:00:001668878
2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try a new column like

 

sumx(filter(Table, [Time Bins] <= earlier(Table[Time Bins])), [Pallets inbound]-[Maximum tip per hour])

 

or a measure

 

sumx(filter(allselected(Table), [Time Bins] <= max(Table[Time Bins])), [Pallets inbound]-[Maximum tip per hour])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you for the suggestion, it doesnt quite give me the right numbers by adding a column or creating a measure. 

JAMWA97_0-1621871056372.png

I have managed to replicate it in excel and have got the below results which is correct as if the inbound is less than the 88 maximum tip then the remaining from the previous hour would role over. 

JAMWA97_1-1621871280870.png

 

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.