Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor

Count distinct dates greater than a given date

Say I want to count the number of distinct dates that have been within the last 365 days. I wrote the following meassure

count({<[orderdate.autoCalendar.Date]={">Date([orderdate.autoCalendar.Date]-365)"}>},  distinct [orderdate.autoCalendar.Date])

but that just returns "0"

1 Solution

Accepted Solutions
Highlighted
MVP
MVP

Try like:

count({<[orderdate.autoCalendar.Date]={">$(=Date([orderdate.autoCalendar.Date]-365))"}>}  distinct [orderdate.autoCalendar.Date])

View solution in original post

1 Reply
Highlighted
MVP
MVP

Try like:

count({<[orderdate.autoCalendar.Date]={">$(=Date([orderdate.autoCalendar.Date]-365))"}>}  distinct [orderdate.autoCalendar.Date])

View solution in original post