Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
nickmarlborough
Contributor III
Contributor III

Order by Month

I have a column called Date flowing in from an Excel File in the Format ‘August, 2023’. I also have a column titled Week in the format ‘31’

 

i am trying to get the date into date format so I can sort it by date in QlikSense. In the load editor how would I do this? 

Labels (3)
2 Replies
vamshi2i
Contributor II
Contributor II

Hi Nickmarlborough,

try this:

LOAD
Date,
Week,
Date#(Date, 'MMMM, YYYY') as FormattedDate, // Convert Date to a date format
Num(Week) as FormattedWeek // Convert Week to numeric format
FROM [your_excel_file.xlsx]
(ooxml, embedded labels, table is YourTable);

After reloading the data, you should have a new column "FormattedDate" with the dates in the correct date format, and the "Week" column should now be in numeric format. Both of these columns will allow you to sort the data correctly.

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

 

You can create a Date based on your year and week like :

MakeWeekDate(Right(Date, 4), Week) as Date

 

Help users find answers! Don't forget to mark a solution that worked for you!