Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

average of Pivot partial sums

Hey!

I'm new in qlikview and my english is not really good - so, first of all: sorry!

My problem is the following:

I have different departments with different number of employees.

Now i want to have in the column "Total" the average of all month and not the total number.

I'm using a Pivot table in qlikview!

DepartmentJanFebMarAprMayTotal
A5238321
B2142312
C3181114
Total1041511747

Does anybody know what to do?

Thanks and best regards!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You can use the dimensionality() function in an if statement to calculate a different expression for the detail cells and the total cells. See attached example.


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar

You can use the dimensionality() function in an if statement to calculate a different expression for the detail cells and the total cells. See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi!

I use an if statement in the expression; "dimensionality()=0" for the "vertical" total,  "ColumnNo()=0" for "horizontal" totals.

example:

if(ColumnNo()<>0, MyExpression, TotalExpr)

Not applicable
Author

Hi G Wassenaar,

Your attachement is 92342 not 92318. I don't see the Dimensionality() function.

er_mohit
Master II
Master II

i think you drag the month column in pivot if yes then

in total column write this

sum(field)/sum(total field)in number tab fixed to 2 and check on show in %

Not applicable
Author

hi

firstly for find the average--

write syntax-

sum(fieldname)/sum(total fieldname)

***************************************

in presentation tab

select field and check show partial sum.