cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IgorM
Regular Visitor

Identify Grand Total row

Hi,

 

I have the following data for which I need to calculate Pallets Count (calculated as CartonCount devided by Units Per Pallet) but:

  • if for a given OrderID there is only one ItemCode the Pallets Count should be round up to the nearest intiger,
  • if there are different ItemCodes for any given OrderID the Pallets Count should be rounded to two decimal places
  • the Grand Total line should show a sum of Pallets Count as visible in the pivot table (with the above rounding rules taken into account) and it should be rounded up to the nearest intiger.

I managed to get the first and second item right but I'm unable to correctly calculate the Grand Total Pallets Count for orders containing multiple line with the same ItemCodes for a given OrderID - in the below screenshot the Grand Total row in the pivot table on the right should show 1 instead of 0,24.

 

The sample data can be downloaded from here: https://1drv.ms/x/s!AsndWCnO9mGupo4clejyLPORQfILEA?e=xasZ0e 

2021-05-10_22h27_24.png

1 REPLY 1
lbendlin
Super User III
Super User III

Please explain this part

 

3886835503 MY1W2AM/A 84 850
3886835503 MY1W2AM/A 18 132

 

How can the unitsperpallet be different?

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Top Kudoed Authors