Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

Not applicable

Aggregate ceiled rows

I have a table with the following dimensions:

* Article

* Receipt date

* # pcs

* # pcs per pallet

And the following calculated expression

* (ceil(sum(# pcs/ # pcs per pallet) to calculate the rounded # pallets to be received.

This works fine, but in another table I want to calculate the same, but summed per date:

Dimension:

* Receipt date

And the same following calculated expression, but then aggregated as in the first table. Otherwise the total # pallets is calculated over the (total #pcs/total #pcs per pallet) - here you will get a lower number of pallets.

How can I use the agg and the ceil?

1 Solution

Accepted Solutions
MVP & Luminary
MVP & Luminary

Re: Aggregate ceiled rows

You need to put the ceil inside the sum:

sum(ceil(pcs/[pcs per pallet]))


talk is cheap, supply exceeds demand
2 Replies
Not applicable

Re: Aggregate ceiled rows

See example

MVP & Luminary
MVP & Luminary

Re: Aggregate ceiled rows

You need to put the ceil inside the sum:

sum(ceil(pcs/[pcs per pallet]))


talk is cheap, supply exceeds demand