Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
gireesh1216
Creator II
Creator II

Please Find My Sample Data......I Want Script....

Hello....My Sample Data Is...

EmpidDate
121601/01/2011
121705/02/2011

1218

10/05/2012
121915/08/2012
122022/02/2016

I Want Output Like This....

EmpidHeader 2
1216Jan-2011
1217Jan-2011
1218May-2012
1219Aug-2012
1220Feb-2016
5 Replies
oknotsen
Master III
Master III

Use a date() function:

date(fieldname, 'MMM-YYYY')

May you live in interesting times!
sunny_talwar

May be try this:

LOAD Empid,

          Date(Date#(Date, 'DD/MM/YYYY'), 'MMM-YYYY') as Date

FROM Source;

Sample Script:

SET DateFormat='DD/MM/YYYY';

SET MonthNames='Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec';

Table:

LOAD Empid,

     Date(Date, 'MMM-YYYY') as DateOption1,

     MonthName(Date) as DateOption2

FROM

[https://community.qlik.com/thread/206460]

(html, codepage is 1252, embedded labels, table is @1);


Capture.PNG

Clever_Anjos
Employee
Employee

LOAD

     EmpId,

     Date,

     Date(MonthStart(Date#(Date,'DD/MM/YYYY')),'MMM/YYYY') as Month

FROM yourdata;

gireesh1216
Creator II
Creator II
Author

Tq All

oknotsen
Master III
Master III

Please flag the Correct Answer and optional Helpful Answers. Thank you.

May you live in interesting times!