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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

Labels (1)
15 Replies
PrashantSangle

Hi,

Try like

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

Date(F2,'DD MMM'),

Date#(F2,'MMMD'),

Date(F2,'MMMD')

) as Date

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
tamilarasu
Champion
Champion

Hi Prashantbi,

Jan3 is not a valid format. Just give space between date and month. i.e jan 3.

Below solution works for your data.. Just try this.

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

agni_gold
Specialist III
Specialist III

Date#

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

Date_123

you can also try this

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You have 3 different date formats, so you need 3 parts to your Alt():

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

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
agni_gold
Specialist III
Specialist III

Capture.JPG

prma7799
Master III
Master III
Author

Hi Greeshma,

No need to write above full expression I used only

alt(date#( F2 , 'MMM DD' ),date#( F2 , 'MMMDD' )), 'MM/DD/')  function