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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

date format

hello comunity,

I have an excel file and which consists a date column(YRMON) with too many records.

In excel initially it is in text format(As i attached snapshot).Here my question is once i load the data into qlikview then I want to change the other format to date format(ex:'YYYY-DD') instead of change the format in excel(manually it may take much time).

Please help me out in this.

Labels (1)
10 Replies
robert_mika
MVP
MVP

All of Your YRMON data are in Number format but some of them has been written as so look like text(left adjustment)

I have used formula in Excel ISTEXT() to check for format

This will work:

LOAD

if(YRMON>100000,date(makedate(left(YRMON,4), right(YRMON,2)),'YYYY-MM'),date(YRMON,'YYYY-MM')) as YRMON,

     Projections,

     Amount

The >100000 is more than enough to make sure that the return value is correct.

I would advise to see the data source to check why this has been formated/coming this way