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: 
sersal10
Creator
Creator

how to set yesterday

Hi all. I am trying to find how to set yesterday in a set analysis and it doesn´t work for me as I see from old posts:

Date(Today()-1,'MM/DD/YYYY') or without the format.

Also I need that to calculate the sum of the quantity that was sold yesterday. I tried this but it seems it gives me the accumulated sales till today:

Sum(${<date(sold_date)={'==Date(Today() -1)'}>}quantity)

 

Any help appreciated!!

Labels (3)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master
Partner - Master

Format in script

Date(sold_date,'DD/MM/YYYY') as sold_date

Then, use this expression

Sum({$<sold_date={"$(=Date(Today()-1,'DD/MM/YYYY'))"}>} quantity)

View solution in original post

1 Reply
BrunPierre
Partner - Master
Partner - Master

Format in script

Date(sold_date,'DD/MM/YYYY') as sold_date

Then, use this expression

Sum({$<sold_date={"$(=Date(Today()-1,'DD/MM/YYYY'))"}>} quantity)