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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

date range not working

Hi

I've been using the following in set analysis to give me the last 12 months so May 2012 to April 2013, but for some reason records for May 2013 are being included???

Can anyone help?

Thanks

 

count

({$<DateRaised={">=$(=addmonths(monthstart(today()),-12)) 00:00:00 <=$(=Monthname)today(),-1) 00:00:00"

}

2 Replies
m_woolf
Master II
Master II

You need addmonths for the second date expression as well.

Not applicable
Author

I've done that but unfortuately it hasnt worked!

 

count

({$<DateRaised={">=$(=addmonths(monthstart(today()),-12)) 00:00:00 <=$(=addmonths(Monthname)today()),-1) 00:00:00"

}