Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

above(total(expression)) not prodcuing desired result.

Hi,

PFA - I have a dimension called department. I need to find various analysis using salary in the expression. When I try to find out total salary, irrespective of the department (means for whole organization), I was left with choice to use Set Analyis. Can we also use above(total()) as an alternative?

I need to correct my understanding on how above(total()) works. From help file it says: " if the expression is preceded by the total qualifier, the current column segment is always equal to the entire column". So, my understanding is using above(total(sum(salary))) gives the total salary of the organization a whole. I am sorry I am failed to interpret the help file's line.

But, neither sum({1} salary) nor above(total(sum(salary))) expression gives me the correct result. Additionally, I would be highly thankful if you please explain how above(total()) works.

Thanks!

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

even for 2nd answer... you don't need RangeSum...

You can simply write...

SUM(TOTAL <department> salary)

View solution in original post

3 Replies
MK_QSL
MVP
MVP

1) If you want TOTAL Salary irrespective of Department, you can use....

SUM(ALL salary)

or

SUM(TOTAL salary)

2) If you want TOTAL Salary Department wise... use below

RangeSum(Above(SUM(TOTAL <department> salary),0,RowNo(TOTAL)))

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I think you just need:

     Sum(TOTAL salary)

The total qualifier in the sum means ignore the dimension.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MK_QSL
MVP
MVP

even for 2nd answer... you don't need RangeSum...

You can simply write...

SUM(TOTAL <department> salary)