Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

my 2 table each have date , how to link them to master calendar date ?

Hi All

if you notice that i have already link both date to master calendar. i wanted the inquiry date and quotation date both link to master calendar. but i am not able get it link . Any advise will be appreciated.

13 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi Paul,

Concatenate both Inquiry and Quotation tables and include a flag in the table to differentiate the record type, check this below script

Data:

LOAD

     *,

     'Quotation' as TableName

FROM QuotationData;

Concatenate(Data)

LOAD

     *,

     'Inquiry' as TableName,

     Inq.Date_Inquiry to Q.Date

FROM Inquiry;

Now there is a single date field connecting to Master calendar.

Regards,

Jagan.

Not applicable
Author

Hi Jagan

Since the Quotation date and Inquiry date both of them are different date. for example same Ref.No can have 2 seperate date. So am i still able to make both the date same ? i guess it will be wrong right ?

Not applicable
Author

Hi Paul,

if your three fields are as cal_date,

inquiry_date and quotation _date,

when u load data, you can add two aliases as well:

inquiry tbl:

load inquiry_date,

inquiry_date as cal_date;

quotation_tbl:

load quotation_date,

quotation_date as cal_date;

Regards,

Anju

senpradip007
Specialist III
Specialist III

Hi Paul,

Create a Link Table with Inquiry and Quotation tables and then link the Master Calender with that Link Table.

By this way you can reach your goal.

Regards,

Pradip

Not applicable
Author

Hi Sir,

I must have miss out some thing ,  as i try below , but it still not work :-

load * from Inquiry.qvd (qvd);

Inquiry:

load Date,

Date as cal_date;

Inquiry:

load Inq.Qty_Inq,

Inq.Qty_Inq as Qty;

Not applicable
Author

try writing it together,

Inquiry:

load *,Date,Date as cal_date,Inq.Qty Inq,Inq.Qty_Ing as Qty from Inquiry.qvd (qvd);

Also, please rename cal_date to the correct name .... as you have named it in the master calendar.


Regards,

Anju

Not applicable
Author

Hi Sir

I try to put the code inside the load QVD code like below ( only try to rename the Date)  :-

load *,

Date,

Date as cal_date

//Inq.Qty_Inq,

//Inq.Qty_Inq as Qty

from

Inquiry.qvd (qvd);

I get error :-

Field names must be unique within table

load *,

Date,

Date as cal_date

from

Inquiry.qvd (qvd)

jagan
Luminary Alumni
Luminary Alumni

Hi Paul,

Please find attached file for solution, hope it helps you.

Regards,

Jagan.


Not applicable
Author

try this,

load *,

Date as cal_date

//Inq.Qty_Inq,

//Inq.Qty_Inq as Qty

from

Inquiry.qvd (qvd);