Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
madhuqliklondon
Creator II
Creator II

Create FirstOrderMonth and OrderMonth

Hi all,

I have datefield "Orderdate" from this I would like to create two columns "customerfirstordermonth" and "customerordermonth" .What I am trying to do is see how customers are buying behavior over the time from their first order. Could you please guide me .

Example:

Customer noOrdernumberOrderdate
112301/01/2017
212405/01/2017
312510/01/2017
412615/01/2017
132010/02/2017
232515/02/2017
333020/02/2017
433525/02/2017

In the above example customer no 1 shopped in 1st Jan so I would to track it as his"customerfirstordermonth" - Jan2017  and order again in Feb track it as "customerordermonth" - Feb2017.

Thanks in advance.

12 Replies
madhuqliklondon
Creator II
Creator II
Author

I have to do this for tabs : J ,uk, Mir,Uk_arch,ems and FR.

sunny_talwar

You are doing concatenate, but to do this, you will have to first create a temptable and then left join to the temptable and then concatenate

TempTable:

LOAD....

FROM ...;

Left Join (TempTable)

LOAD ...

Resident TempTable;

Concatenate (...)

LOAD *

Resident TempTable;

DROP Table TempTable;

madhuqliklondon
Creator II
Creator II
Author

I will try that Sunny.