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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date Set Analysis & Variables

Hi,

I'm simply trying to create a variable that counts the number of ID's for 'Yesterday' :

     count({<Date={'date(Today()-1)'}>}ID)

But this expression doesn't appear to be working....

The 'Date' field within my Dataset is in DD/MM/YYYY format if it helps.

Any help appreciated!

Tom

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try count({<Date={"$(=date(Today()-1,'DD/MM/YYYY'))"}>}ID)


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Hi!

Try this:

=count (distinct{<Your_date_field={"$(=date(Today()-1,'DD/MM/YYYY'))"}>} ID)

Hope it helps.

Gabriel

ecolomer
Master II
Master II

Try this:

COUNT({<Date={"$(=date(Today()-1))"}>}ID)