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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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

Labels (1)
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)