Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

Date is missing

Hi All,

When i am using (alt(Date#(F2,'MMM DD'),Date(F2,'DD MMM')) as Date)

then my one date is missing.

Can anybody tell me where i was wrong in ALT function

Thanks
PM

1 Solution

Accepted Solutions
Anonymous
Not applicable

Try this

alt(date#( F2 , 'MMM DD' ),date#( F2 , 'MMMDD' ),date#( F2 , 'DD/MMM' ),date#( F2 , 'DD/MMM' ) ) as 1

View solution in original post

15 Replies
prma7799
Master III
Master III
Author

PFA

Untitled.png

its_anandrjs

Hi,

Use properly date functions in the Alt, If convert it into proper date num date format by using Date# then use Date to convert it into date format. See the example below from QV Help.

Ex:-

alt(

date#( dat , 'YYYY/MM/DD' ),

date#( dat , 'MM/DD/YYYY' ),

date#( dat , 'MM/DD/YY' ),

'No valid date' )

Or may be your date is not in proper date format check it.

Regards

Anand

prma7799
Master III
Master III
Author

Hi Anand,

When I am using below my alt function then output is coming accept jan3 date.

Thanks

PM

its_anandrjs

Hi,

Try this

(alt(Date#(F2,'MMM DD'), Date(Date#(F2,'DD MMM'),'DD MMM') ) as Date)



Regards,

Anand

prma7799
Master III
Master III
Author

Hi ,

in this jan3 is missing and when I am using

alt(date#( F2 , 'MMM DD' ),date#( F2 , 'DD/MMM' ),date#( F2 , 'DD/MMM' ) ) as 1 ,

then jan3 is coming but it is showing me left side in list box.

Untitled.png

Thanks

PM

prma7799
Master III
Master III
Author

Anonymous
Not applicable

Try this

alt(date#( F2 , 'MMM DD' ),date#( F2 , 'MMMDD' ),date#( F2 , 'DD/MMM' ),date#( F2 , 'DD/MMM' ) ) as 1

agni_gold
Specialist III
Specialist III

Try this , this will help you ....

alt(Date#(trim(Left(F2,3))&' '& trim(Mid(F2,4,3)),'MMM DD'), Date(Date#(trim(Left(F2,3))&' '& trim(Mid(F2,4,3)),'DD MMM'),'DD MMM') ) as  Date

Not applicable

Hi prashantbi                  

   The Jan3 reading as text see carefully all filed having some space Month and Date but only jan3 there is no space

do one  thing give some space in source file for jan3 or else by using some qlikview function to give space

thanks

Manju