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

Date to month-quarter-year

Hello guys.
I am new at this so i need a detailed description.

I have and excel file with dates likes these: 01-01-2020  - 28-02-2021.

How i convert these dates in quarter-month-year?

I want to make make some filters (pic below) at qlik as month and quarters and years.

Thanks in advance.

Attached image

Screenshot 2021-10-22 153208.png

1 Solution

Accepted Solutions
sergio0592
Specialist III
Specialist III

Hi,

In your load statement, use month and year function:

LOAD 
Year(Date) as Year,
Month(Date) as Month, 
ceil(Month(Date)/3) as Quarter, 
Ventes
FROM
[C:\Users\xxxx\Desktop\Test.xlsx]
(ooxml, embedded labels, table is Feuil1);

View solution in original post

1 Reply
sergio0592
Specialist III
Specialist III

Hi,

In your load statement, use month and year function:

LOAD 
Year(Date) as Year,
Month(Date) as Month, 
ceil(Month(Date)/3) as Quarter, 
Ventes
FROM
[C:\Users\xxxx\Desktop\Test.xlsx]
(ooxml, embedded labels, table is Feuil1);