Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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!