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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Newbie_To_Qlik
Contributor II
Contributor II

Converting Date in Load Editor

Hello

I had the following date format and would like to add consumeMonth (Mar, Feb, Jan etc) and ConsumeYear (2021, 2020) in load editor. How can I do it

I had tried using the following but there is no data for consumeMonth and ConsumeYear.

Year ("Consume Date") as ConsumeYear,
Month("Consume Date") as ConsumeMonth,

Anyone can help

Consume DateConsume MonthConsume Year
27 Mar 2021  
27 Mar 2021  
26 Mar 2021  
26-Feb-21  
25-Feb-21  
25-Feb-21  
24-Jan-21  
24-Jan-21  
24-Jan-21  
24-Dec-20  
24-Dec-20  
24-Dec-20  
 
 
 
 
 
 
 
 
 
 
 
 
 
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

try this

Alt(Date(floor([ConsumeDate]),'DD-MMM-YYYY'),Date(Date#([ConsumeDate],'DD MMM YYYY'),'DD-MMM-YYYY'))  as new date. 

 

year(consumedate) as Year

month(consumedate) as month

View solution in original post

1 Reply
Chanty4u
MVP
MVP

try this

Alt(Date(floor([ConsumeDate]),'DD-MMM-YYYY'),Date(Date#([ConsumeDate],'DD MMM YYYY'),'DD-MMM-YYYY'))  as new date. 

 

year(consumedate) as Year

month(consumedate) as month