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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
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?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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
MVP
MVP

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