Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
gembreda
Contributor II
Contributor II

(Sub)Totals for column of only the values >0

Hi all,

I would like to get some help on the following issue:

In one of our reports I used a formula to get the difference between column A and B (If( - > 0.019, - , null() ) ). In our report I want the total sum of each column. Qlikview gives us result 1 but we want result...

Could someone please help me solve our problem? We want totals for every Department and every Company as well.

CompanyDepartmentPositionABA-B (if >0)B-A (if >0)
QTEastManager

1

1
Advisor422
Consultant321
Assistant242
Result 1Total of East1091
Result 2Total of East I would like to see10932

10 Replies
gembreda
Contributor II
Contributor II
Author

Thanks to your answers I was able to get the desired result. I used the expressions below:

Column A:          = SUM(num(round(Formatieplaats.Formatiegrootte/36,0.01),'#0,000'))

Column B:          = sum(num(round(aggr(num($(xBezetting)

Column - : =sum(if((num(round(num((Formatieplaats.Formatiegrootte)/36,'#0,00'),0.01)- (round(aggr(num($(xB...

Column - : =sum(if((num(round(num((Formatieplaats.Formatiegrootte)/36,'#0,00'),0.01)-(round(aggr(num($(xBezet...

-(num(round(num((Formatieplaats.Formatiegrootte)/36,'#0,00'),0.01)-(round(aggr(num($(xBezetting)/36,'#0,00'),[Formatieplaats]),0.01)),'#0,00')),null()))