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

DATE How to convert the data to "November" and the Quarter

DATE data has become a form of 2015/11/14.

From this data, or there is no way to be converted to a notation such as November? In the Excel functions and it can be in such as TEXT, but it could not be applied in QllikSense.

In addition, Quarter also I want to put together in such as Q1, Q2, but please tell me also to this method.

12 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Data:

LOAD

*,

Date(Date#(DateFieldName, 'YYYY/MM/DD'))  AS Date,

Date(MonthEnd(Date#(DateFieldName, 'YYYY/MM/DD')), 'MMMM') AS Month,

'Q' & Ceil(Month(Date#(DateFieldName, 'YYYY/MM/DD'))/3) AS Quarter

FROM DataSource;


OR


The better way using Precedent load


Data:

Load *,

Date(MonthEnd(Date), 'MMMM') AS Month,

'Q' & Ceil(Month(Date)/3) AS Quarter

LOAD

*,

Date(Date#(DateFieldName, 'YYYY/MM/DD'))  AS Date

FROM DataSource;

Hope this helps you.

Regards,

Jagan.

jonathandienst
Partner - Champion III
Partner - Champion III

For the month:

=Date(MonthStart(DATE), 'MMMM')

For the Quarter:

='Q' & Ceil(Month(DATE) / 3)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks for your reply.

However QlikSense responses from January, February,,,December and repeating from January, Februay,,,.

Regards,

Minoru Sakurai

Anonymous
Not applicable
Author

Even simpler for the month:

month(DATE)

How to create a Calendar

jagan
Luminary Alumni
Luminary Alumni

HI,

I am not getting you, can you explain your requirement with some sample data and expected output.

Regards,

Jagan.

Not applicable
Author

Thanks for your support.

Attached screen-shot as below.

I'm writing to "Date(MonthStart([DEP DATE]), 'MMMM')".

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try this

Date(MonthStart(Date#([DEP DATE], 'YYYYMMDD')), 'MMMM')


OR


Date(Floor(MonthStart(Date#([DEP DATE], 'YYYYMMDD'))), 'MMMM')


Regards,

Jagan.

Not applicable
Author

The both function didn't work well.

Now "Month" fields are nothing any word.

jagan
Luminary Alumni
Luminary Alumni

Hi,

What is your date format?  Where are you reading the data from?  What is the format you are getting in Qlikview?

Regards,

Jagan.