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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to insert new field as Months Name based on Date?

I want to insert another field as Month and it should contain only month names based on dates given in Date of Sales field. And this [Date of Sales] filed in MM/DD/YYYY format.

How to insert this field. Please any one help me.

[Case Study 3]:

LOAD Customer_id as [Customer ID],

     Customer_name as [Customer Name],

     Subsegment,

     City,

     Division,

     Category,

     Version,

     Sales_amount as [Sales],

     No_of_Licences as [Licenses],

    Sales_Date as [Date of Sales]

  

  FROM

Sales1.csv

(txt, codepage is 1252, embedded labels, delimiter is ',', msq);

12 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

LOAD

*,

Month(Date#(Sales_Date, 'M/D/YYYY')) AS Month

FROM SourceData;

Regards,

Jagan.

Not applicable
Author

Finally got it. Thank You so much Anand, Sundarkumar and kushal.. I really appreciate ur help

Untitled.jpg

its_anandrjs
Champion III
Champion III

If you got correct answer so mark the thread as Correct / helpful for other reference.

Regards