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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get Month

Hi,

I would like to get the Month. I have attached an exemple file it ends in April but it would go on.

So I have sheets with the month and in each sheet all Dates (like 01.02.2013) and no I would like to have a Listbox where I can mark January. Has someone an solution?

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Use the Month() function:

LOAD Datum,

     Value,

     Month(Datum) as Monat

FROM

(biff, embedded labels, table is [$(vSheet)]);

edit: Or if you want to use your variable:

LOAD Datum,

     Value,

     '$(vSheet)' as Monat

FROM

(biff, embedded labels, table is [$(vSheet)]);

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Use the Month() function:

LOAD Datum,

     Value,

     Month(Datum) as Monat

FROM

(biff, embedded labels, table is [$(vSheet)]);

edit: Or if you want to use your variable:

LOAD Datum,

     Value,

     '$(vSheet)' as Monat

FROM

(biff, embedded labels, table is [$(vSheet)]);

Not applicable
Author

Just create a new field in the script this way:

Month(Date(Datum)) as Month