
Specialist
2020-04-21
04:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Count Records as of a Date
I am trying to count the number of records as of a certain date. Field I am trying to Count is 'ContactID' and the date field is 'CreatedDate'.
What would the structure of an expression be to count as of Today minus 7 days for example
668 Views
1 Solution
Accepted Solutions

Partner - Master III
2020-04-23
01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try somethign like below
count({< Date={"<=$(=today()-7)"}>}Measure)
does count for dates less than or equal to 7 days back from today
2 Replies

Partner - Master III
2020-04-23
01:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
try somethign like below
count({< Date={"<=$(=today()-7)"}>}Measure)
does count for dates less than or equal to 7 days back from today

MVP
2020-04-23
03:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try to create a expression like this. It wil count the ContactID associated with CreateDate in the 7 days interval ( today and 6 days before)
=Count({<CreateDate = {">$(=today()-7) <=$(=today())"}>}ContactID)
Vegar
Qlik Community MVP
Qlik Community MVP
620 Views
