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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
JuRoss
Contributor II
Contributor II

SUM with conditions

Hi, i want to calculate the SUM of #ANZ in wich the year of my date is bigger or equal to Today().

Can you help me with the Syntax?

This is my Try:

=sum({<(year(Today())-2) >= year(date)>} [#ANZ])

 

Labels (2)
1 Solution

Accepted Solutions
MeehyeOh
Partner - Creator
Partner - Creator

Hi @JuRoss 

 

Try this,

= Sum( {< date= {"=Year(date) >= Year(Today()-2)"}>} [#ANZ])

I think only values equal to or greater than today's year will be selected among the values in the [date] field.

cheer!

View solution in original post

1 Reply
MeehyeOh
Partner - Creator
Partner - Creator

Hi @JuRoss 

 

Try this,

= Sum( {< date= {"=Year(date) >= Year(Today()-2)"}>} [#ANZ])

I think only values equal to or greater than today's year will be selected among the values in the [date] field.

cheer!