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

Month Creation Using Two Fields

Hi ,

I have two fields FROM DATE & TO DATE. It is monthly data. I need to create month name field using these two dates

FROM DATETO DATE
2018-01-012018-01-01
2018-01-012018-03-01
2018-02-012018-02-28
2018-03-012018-03-31

I need month name

1 Solution

Accepted Solutions
jyothish8807
Master II
Master II

Hi Apoorva,

Try like this:

First create a master calendar using  min(From Date) and Max(To Date) and Name it "Date" field.

Then:

A:

Intervalmatch(Date)

Load distinct

[To Date],[From Date] resident <Yourtable>;

Br,

KC

Best Regards,
KC

View solution in original post

7 Replies
dapostolopoylos
Creator III
Creator III

Use Month(FROM DATE) and Month(TO DATE)

Father/Husband/BI Developer
wilsonwebb
Partner - Contributor III
Partner - Contributor III

HI Apoorva,

Use:

'TableName':

Load

Date(Month([FROM DATE]),'MMMM') as MonthFromName,

Date(Month([TO DATE]),'MMMM') as MonthToName

MarcoWedel

Can you post your expected result as well based on your sample data?

Anil_Babu_Samineni

I can think like this?

Table_Load:

Load [FROM DATE] as DateField From Table;

Join

Load [TO DATE] as DateField From Table;


Final:

NoConcatenate

Load DateField, Month(DateField) as Month Resident Table_Load:


Drop Table Table_Load;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

give example using interval match

avinashelite

could you give the same output required ?

jyothish8807
Master II
Master II

Hi Apoorva,

Try like this:

First create a master calendar using  min(From Date) and Max(To Date) and Name it "Date" field.

Then:

A:

Intervalmatch(Date)

Load distinct

[To Date],[From Date] resident <Yourtable>;

Br,

KC

Best Regards,
KC