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: 
LiquidSword
Partner - Contributor II
Partner - Contributor II

Date in the wrong order

After using AutoML to predict weather, I inputted the predicted results and actual temperature table into Qlik Sense. The two are connected by date. 

Formula of date for predicted weater:  

Date#('202303' & num([automl_row_index]+1,'00'), 'yyyymmdd'), 'yyyy/mm/dd')

Formula of date for actual weater:  

 

Date( Date#( Year & Num(Month(Date#(Month, 'MMM')),'00') & num(Day,'00') ,'yyyymmddd'), 'yyyy/mm/dd') 

 

Yet, the dates are sorted like this in the filter pane:

LiquidSword_0-1715121572864.png    

LiquidSword_1-1715121651805.png

it is orderd by day instead of month and then day

 

 

Labels (1)
2 Replies
Aasir
Creator III
Creator III

Just checking whether you have fixed the sort order in the sheet
Vegar
MVP
MVP

Your formating is wrong.

Please use upper case when formating dates (and lower case when formating time)

'm' = minutes 

'M' = month

I also notice that you are using 'ddd' when the correct seems to be 'dd' (or 'DD')

Try this adjustment:

Date( Date#( Year & Num(Month(Date#(Month, 'MMM')),'00') & num(Day,'00') ,'YYYYMMDD'), 'YYYY/MM/DD') 

You can also try this:

Date( MakeDate( Year , Month(Date#(Month, 'MMM')) , Day) , 'YYYY/MM/DD')