Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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!