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

Announcements
Qlik Unveils New Agentic Capabilities Across Analytics, Data Engineering, and Trust: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

month separation from total dates

Hi

My data is like this

1/1/2015,

1/2/2015,

1/3/2015,

4/6/2015,

12/7/2015

from this data i want to separate month as a column data like

1,

2,

3,

6,

7

is it possible?

1 Solution

Accepted Solutions
sunny_talwar

Try doing this:

Num(Month(DateField)) as MonthNum

Script:

Table:

LOAD Date,

  Month(Date) as Month,

  Num(Month(Date)) as MonthNum;

LOAD * Inline [

Date

1/1/2015

1/2/2015

1/3/2015

4/6/2015

12/7/2015

];

Capture.PNG

View solution in original post

1 Reply
sunny_talwar

Try doing this:

Num(Month(DateField)) as MonthNum

Script:

Table:

LOAD Date,

  Month(Date) as Month,

  Num(Month(Date)) as MonthNum;

LOAD * Inline [

Date

1/1/2015

1/2/2015

1/3/2015

4/6/2015

12/7/2015

];

Capture.PNG