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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
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
Champion III
Champion III

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
Champion III
Champion III

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])