Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
madhuqliklondon
Creator II
Creator II

Date format

Hi,

I have a column 'IdDate' - and date format like '20170714'. I want to change it to qlikview date. I have tried giving Date(IdDate) at dimension level but it is coming with completely different date ex: 22/8/56786 . How can i change it to 14/07.2017?? is there a way?

Thanks in advance

16 Replies
Anil_Babu_Samineni

I would you ask you to buy Cookbook by Raff. This book is available in Amazon.com

For your question, this should like below

Load

Date(Date#(IdDate,'YYYYMMDD'),'DD/MM/YYYY') as IdDate,

Year(IdDate) as Year,

Month(IdDate) as Month,

Week(IdDate) as Week .....

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
madhuqliklondon
Creator II
Creator II
Author

Hi Anil, I have tried that load already its not working . it is working for

Date(Date#(IdDate,'YYYYMMDD'),'DD/MM/YYYY') as IdDate, but not for Year() etc..


Pic: Year in multi box loaded as Year(IdDate) as Year

Untitled.png

Anil_Babu_Samineni

Could be you must do some play around

Load *,

Year(IdDate) as Year,

Month(IdDate) as Month,

Week(IdDate) as Week ..... ;

Load Date(Date#(IdDate,'YYYYMMDD'),'DD/MM/YYYY') as IdDate;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
madhuqliklondon
Creator II
Creator II
Author

Ok..will try that. Thank you

madhuqliklondon
Creator II
Creator II
Author

  Done by using below :

   Year(Date(Date#(idDate,'YYYYMMDD'),'DD/MM/YYYY')) as Year,

    Month(Date(Date#(idDate,'YYYYMMDD'),'DD/MM/YYYY')) as Month,

    Week(Date(Date#(idDate,'YYYYMMDD'),'DD/MM/YYYY')) as Week,

    Day(Date(Date#(idDate,'YYYYMMDD'),'DD/MM/YYYY')) as Day,

Anil_Babu_Samineni

Please close this thread

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
madhuqliklondon
Creator II
Creator II
Author

Thanks all.