Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
JustinDallas
Specialist III
Specialist III

Date={"<=$(=today()-1)" fails, Date={"<=$(=today())" works

Hello Everyone,

So I've got a Set Analysis that seems to have randomly broken yesterday.  I am trying to say "any date in the past, not including today".  For that, I have

Date={"<=$(=today()-1)"

The SetAnalysis containing this gives me the infamous Dash of Doom "-" when put into a Text Object.  However, if I remove the "-1" and just have ,Date={"<=$(=today())", it works like a charm.  What is going on here?   I got my how to manipulate a date information from this response in this post by Arya v

subtract 120 days from date

Any help is greatly appreciated.

1 Solution

Accepted Solutions
marcus_sommer

Try it with: Date={"<=$(=date(today()-1, 'YourFormat'))"}


- Marcus
 

View solution in original post

4 Replies
Miguel_Angel_Baeyens

Justin,

Try

Date = {'$(=Date(Today()-1))'}

Miguel

marcus_sommer

Try it with: Date={"<=$(=date(today()-1, 'YourFormat'))"}


- Marcus
 

patroser
Partner - Creator
Partner - Creator

Hi,

you could also try this one, built with set analysis wizard

=Sum( {$<Date={"<$(=Today())"}>} Value)

Best regards,

Patrick

Edited: had an error in it, corrected it

JustinDallas
Specialist III
Specialist III
Author

Thanks.  I'm still upset that it worked up till recently, and then it decided to kick the bucket.