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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
codyt97
Contributor
Contributor

Count all tickets past 6 months

Hello. I'm new to Qlik and I need some help.

I have 2 fields 'CREATEDATE' and 'CaseNumber'. I would like to count  CaseNumbers for past 6 months form today based on Createdate. Createdate field have this format YYYY-MM-DD

Labels (1)
1 Reply
Almen
Creator II
Creator II

You can try in script:

 

12*Year(Today())+Month(Today())-12*Year(CREATEDATE)-Month(CREATEDATE) AS MonthsAgo 

 

 

it gives you a full coverage of all months ago. Select 6 to get 6 months ago, based on today().