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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Payman
Contributor
Contributor

Conditional count on date field

Hi,

We have a date field with this format '2019-04-28 04:45:01.000'. Want to count the IDs where the date is equal to today's date. I used the below one but it is not true:

=Count(If(Date(CreateDate,'YYYY/MM/DD')=Date(Today(),'YYYY/MM/DD'),ID))

Labels (2)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

Try this expression:
Count({<CreateDate={">=$(=daystart(today()))<=$(=dayend(today()))"}>} ID)

View solution in original post

1 Reply
Vegar
MVP
MVP

Try this expression:
Count({<CreateDate={">=$(=daystart(today()))<=$(=dayend(today()))"}>} ID)