Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Carlaf_93
Creator II
Creator II

Total value in table

Good morning, 

i'm using a table to calculate some percentages of values with if formula's.

But it doesn't give me the right total value.

This is the formula of 'MESE+1': if(Mese_ricevimento='1', sum(Importo)*$(%_mese_corrente),'')

Carlaf_93_1-1597137943818.png

 

 

5 Replies
martinpohl
Partner - Master
Partner - Master

your expression gives you a line based result. but what should Qlik do in total?

rangesum(aggr(

 if(Mese_ricevimento='1', sum(Importo)*$(%_mese_corrente),'')

,Mese_ricevimento))

Regards

Carlaf_93
Creator II
Creator II
Author

In the blue box i would like to get the sum of the three values = 4300.

 

If i write:

 if(Mese_ricevimento='1', sum(Importo)*$(%_mese_corrente),sum(Importo))

it doesn't give the right value

Kushal_Chawda
MVP
MVP

try below

 

 rangesum(if(Mese_ricevimento='1', sum(Importo)*$(%_mese_corrente),null()))

sunny_talwar
MVP
MVP

May be this

Sum(Aggr(
  If(Mese_ricevimento = 1, Sum(Importo) * $(%_mese_corrente))
, Mese_ricevimento))
Carlaf_93
Creator II
Creator II
Author

Thanks, 

but this doesn't work.

It gives 0 as total value instead of  4300