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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Expression

SUM( IF(I_DAY > 25, and  max(I_MONTH),  [Amount]))

I have above expression in my pivot table which is not working. My expected result is to sum amount where I_DAY should be more than  25 th and I_MONTH should be I_Month selected by the user. Pls help me

1 Solution

Accepted Solutions
swuehl
MVP
MVP

If you want the expression to reflect selections by the user, you don't need to do anything, that's QV default behaviour.

So remove the part ', and max(I_MONTH)' [it's not correct anyway].

=SUM( IF( I_DAY >25 , [Amount]))

or maybe

=SUM({<I_DAY = {">25"}>} [Amount])

View solution in original post

1 Reply
swuehl
MVP
MVP

If you want the expression to reflect selections by the user, you don't need to do anything, that's QV default behaviour.

So remove the part ', and max(I_MONTH)' [it's not correct anyway].

=SUM( IF( I_DAY >25 , [Amount]))

or maybe

=SUM({<I_DAY = {">25"}>} [Amount])