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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression for Yesterday

Hi,

How can i write the expression for yesterday. I want to get the sum of sales for yesterday using expression. Please help me..

Thanks

Renjith Kumaran

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try sum({<MyDate={'$(=date(today()-1))'}>} sales). Change MyDate to the name of your date field and sales to the name of your sales field.


talk is cheap, supply exceeds demand
Not applicable
Author

No, It gives me off values..

rustyfishbones
Master II
Master II

You can try it with Double Quotes maybe

SUM({<Date = {"$(=DATE(TODAY()-1))"}>} Sales)


Not applicable
Author

That too gave me off values..

My situation is that i have two dimension named process center and Driver. i want to write a expresssion for the graded quantity and want that without selecting the date.

That is its 6/11 today. on loading the chart i want to fill the pivot tabke with yesterday's sum(gradedqty).

Thanks

Renjith Kumarannew.png

sujeetsingh
Master III
Master III

Ren ,

Try to calculate the yesterday as Date -1 in script.