Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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.