Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
kiansin
Contributor
Contributor

Solve the Date no sequence issue

Hello !!

I have a attached table as below :

kiansin_0-1658368096138.png

The column "NewDate" was not present by sequence.

I want to order by the New Date by sequence.

For example : The expected result should be like this :

[2021 Oct

2021 Nov

2021 Dec

2022 Jan

2022 Feb

2022 Mar

2022 Apr

2022 May

2022 Jun

2022 Jul

2022 Aug

2022 Sep]

Any possible way to fulfil my requirement ? 

Do you know how should I do this please? Thank you very much in advance. Cheers!

Labels (6)
3 Replies
Chandan_Nadve
Contributor II
Contributor II

Hi @kiansin ,

Your NewDate is not in the "Date"  data type. It is in the string data type. You need to convert this to Date data type using date function.

Use the below Dimension in NewDate.

DATE(NEWDATE,'YYYY MMM')

Regards

Chandan

kiansin
Contributor
Contributor
Author

hi @Chandan_Nadve 

kiansin_0-1658373270593.png

My NewDate was using Inline method,

how do I able to convert this yo date data type ?

Regards,

KianSin

sicilianif
Creator II
Creator II

You can use a preceding load to convert the date:

MyDates:
Load
           Date#(Date1,'YYYY MMM') as NewDate;
Load * Inline
[
Date1
2021 Oct
2021 Nov
2021 Dec
2022 Jan
2022 Feb
2022 Mar
2022 Apr
2022 May
2022 Jun
2022 Jul
2022 Aug
2022 Sep
]