Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

CALENDAR TO MONTH ?

i have calender jan as 1st month & dec as 12th month

but i want to get the output as july as 1st month & oct as 12th month  how ?

1 Solution

Accepted Solutions
PrashantSangle

Hi,

Create Inline table

LOAD * INLINE[

MonthName,Month

July,1

Oct,12

...

...

..

];

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

5 Replies
PrashantSangle

Hi,

Create Inline table

LOAD * INLINE[

MonthName,Month

July,1

Oct,12

...

...

..

];

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
sagarkharpude
Creator III
Creator III

Try this in sort tab->Expression

=wildmatch(Monthfield,'Jul','Aug','Sep',              'May','Oct')

or create the inline table as follows in script:

load * inline

[

monthname,monthnumber

Jul,1

Aug,2

Oct,12

];

avinashelite

hi

you can try to set it  in the edit script by the setting the set statements

SET MonthNames='Jul;Aug;Sep;Okt;Nov;Dez;Jan;Feb;Mrz;Apr;Mai;Jun';

or

Create a calender of your own

Not applicable
Author

Hi,

If you are trying it in script.

load * inline

[

monthname,monthnumber

Jul,1

Aug,2

Oct,12

];

hic
Former Employee
Former Employee

You should create a master calendar of your own. See e.g. this blog post: Fiscal Year.

You should NOT change the environment variable in the script (The "SET MonthNames=" statement) since you then will rename the months, i.e. you will get the 'July' label for the month of January. No, you should use

   Mod(Month-$(vFM), 12)+1        as MonthNo

to calculate a fiscal month number in addition to the Gregorian (the real) month number. The vFM variable is the number for the first month of the fiscal year.

HIC