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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Ankit1988
Contributor III
Contributor III

Calander script

I have data in Excel file. In this dataset there is  field like "Month of code" in this field data is look like (oct'21)

So how to create calander script using mention field "Month of code"

Plz suggest idea.

Thanks in advance.

 

 

Labels (1)
4 Replies
brunobertels
Master
Master

hi 

May be this 

replace this part '(octchr(39)21)' by the name of your field :

makedate('2023', // to create year 2023

month( // to get the number oh month here 10
date#( // to interpret text to date

subfield( // to take only month part here Oct parameter is 1
replace( // to supress character "(" and ")" and "'""
replace(
replace('(octchr(39)21)','chr(39)',' '),'(',''),')','')
,' ',1),'MMM'))

,

subfield( // to take only day part here 21 parameter is 2
replace( // to supress character "(" and ")" and "'""
replace(
replace('(octchr(39)21)','chr(39)',' '),'(',''),')','')
,' ',2)
)

 

brunobertels_0-1681482297656.png

 

 

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

How about this to read the month. And then build a calendar off the Month field.

Date(Date#([Month of Code] '(MMM''YY)')) as Month

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

Ankit1988
Contributor III
Contributor III
Author

Thanks 

Ankit1988
Contributor III
Contributor III
Author

Thanks understand