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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
brucejensen
Contributor III
Contributor III

Set Analysis Syntax - DATE

I need to sum my Cost field for all values in the set where the date field is prior to the current date. I tried the following but am not getting any results (evaluates to 0). Can someone help me with the syntax?

=sum({1<Date={"<=$(=DATE(MAX(Date)))"}>Cost)

I had this working at one point then lost it and now I can't get it to work again.

Thanks!

1 Solution

Accepted Solutions
santharubban
Creator III
Creator III

try this

=sum({1<Date={'<=$(=DATE(MAX(Date)))'}>} Cost) }

View solution in original post

7 Replies
Not applicable

Hi Bruce,

You're missing the closing } before Cost.

MK_QSL
MVP
MVP

=sum(

{1<

Date={"<=$(=DATE(MAX(Date)))"

}>}

Cost)

Not applicable

Hi

see the below code and hopefully it will work out for your issue.

=sum(

{1<

Date={"<=$(=DATE(MAX(Date)))"

}>}

Cost) }

brucejensen
Contributor III
Contributor III
Author

Sorry - Still not working. Still evaluates to 0.

brucejensen
Contributor III
Contributor III
Author

Still comes up as zero for an answer.

santharubban
Creator III
Creator III

try this

=sum({1<Date={'<=$(=DATE(MAX(Date)))'}>} Cost) }

brucejensen
Contributor III
Contributor III
Author

Thanks!