Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sub totals not working when using IF statements in chart expression

I can not get a chart expression to subtotal in the attached example.

Am I doing something wrong?

See attached simple example.

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Adrian,

You have two options, adding condition within aggregation function:

=SUM(IF(B>'01/09/2010', C))
or using set analysis (preferably):
Sum({< B = {">$(=Date('01/10/2010'))"} >} C)
Hope that helps.

View solution in original post

1 Reply
Miguel_Angel_Baeyens

Hello Adrian,

You have two options, adding condition within aggregation function:

=SUM(IF(B>'01/09/2010', C))
or using set analysis (preferably):
Sum({< B = {">$(=Date('01/10/2010'))"} >} C)
Hope that helps.