Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Reading Dates

Experts ,

Many times I faced dates issues but none of old techniques worked. Could you please help me to read the dates here.

[Output]:

LOAD 

ALT(DATE#(Date,'D/M/YYYY'),DATE#(Date,'DD/M/YYYY'),DATE#(Date,'D/MM/YYYY'),DATE#(Date,'DD/MM/YYYY'))as Date,

Sales

RESIDENT [Dress Sales] ;

But My Output is:

My Source is:

1 Solution

Accepted Solutions
Not applicable
Author

Hi Renato,

You might be true sorry for not testing your option but what gave me satisfied solution is,

LOAD

(if ((isnum(Date) = -1),Date,Date(Num#(Date)))) as Date,

Sales

;

num#() helped me here

View solution in original post

26 Replies
mightyqlikers
Creator III
Creator III

Hi,

Please share sample data.

samwise

Not applicable
Author

Sample data is attached

avinashelite

Hi Guruprem,

Few of the data is store as numeric I guess that's why your facing the issues. Please post your  app so that we can help you out.

mightyqlikers
Creator III
Creator III


Please find the attached qvw

Regards

Samwise

Not applicable
Author

I am using PE, Could you post script?

fashid
Specialist
Specialist

Hi,

use this

Directory;

LOAD

  Date,

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

FROM

[Sample Dates.xlsx]

(ooxml, embedded labels, table is Sheet1);

regards

nadeem

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

I think its just a formatting issue. This works with your sample data:

Date(DATE#(Date,'DD/MM/YYYY'))as Date

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

I tried this, it output date is not showing some dates(Text dates as shown in first post )

Not applicable
Author

I tried this, it output date is not showing some dates(Text dates as shown in first post) . I mean there should be 24 dates in output but only 14 dates are showing