QlikView Layout & Visualizations

Discussion Board for collaboration on QlikView Layout & Visualizations.

Contributor II

Pivot Table Totals?

I'm having trouble getting my totals to display in my pivot table. The expressions Total Mode options are grayed out and Partial Sums doesn't seem to add up correctly.

I need a sum of the Avg Duration and a Sum of the count of requests.

Any idea how to solve it? Do I need an AGGR statement?

Thanks!

Tags (2)
1 Solution

Accepted Solutions

Re: Pivot Table Totals?

Quite often you need an aggr-function to get the right totals within a pivot, something like this:

sum(aggr(avg(Duration), Dimension1, Dimension2))

AGGR...

When should the Aggr() function NOT be used?

- Marcus

3 Replies

Re: Pivot Table Totals?

Quite often you need an aggr-function to get the right totals within a pivot, something like this:

sum(aggr(avg(Duration), Dimension1, Dimension2))

AGGR...

When should the Aggr() function NOT be used?

- Marcus

Contributor II

Re: Pivot Table Totals?

That works for the total but it seems I can't have the Programs across the top with the totals.

Re: Pivot Table Totals?

I don't know what you mean with "Programs across the top with the totals" (with the PE I couldn't look in your app) - but a pivot is very flexible. You could drag the dimensions and expressions vertically and horizontally and if the calculations are bit more complex as normal aggr() you could wrap them in some additionally conditions like:

if(condition, aggr1, aggr2)

pick(condition, aggr1, aggr2, aggr3)

if(dimensionality() = X and/or secondarydimensionality() = Y, aggr1, aggr2)

- Marcus