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: 
My_Rebecca
Creator
Creator

Associate issue

The matching columns are "Material Document" and "GR Number" in two worksheets.

Now I want to create the new column E in first sheet to add "Truck Arrival Time" as following. 

I tried the "Associate" in Data Manager without success.

How to realize it in Data Manager? or Data Load Editor? Better 2 solutions are expected, thanksMy_Rebecca_0-1676116662195.png

 

My_Rebecca_1-1676116678874.png

 

Labels (1)
23 Replies
sidhiq91
Specialist II
Specialist II

@My_Rebecca  Please see the code that can be used in the script editor.

Noconcatenate

Temp:

load [Material Document] as [GR Number],

        Items,

      Material,

     [Material Description]

From Table1;

Left join (Temp)

Load [GR Number],

          [Truck Arrival Time]

From table2;

Exit Script;

If this resolves your issue, please like and accept it as a solution

My_Rebecca
Creator
Creator
Author

@sidhiq91 

Dear @sidhiq91 ,

please refer to following error, could you please help to correct it? thanks.

My_Rebecca_0-1676162177773.png

LOAD
Plant,
"Storage Location",
"Movement Type",
"Material Document" as "GR Number",
"Material Doc.Item",
"Posting Date",
"Time of Entry",
"Special Stock",
Supplier,
Material,
"Material Description",
Quantity,
"Unit of Entry",
"Amount in LC",
"Purchase Order",
Item,
"Sales Order",
"Sales order item"
FROM [lib://FLD_DI_LOG_Reporting/Control Tower DC Report/DC TJ/GR/SAP/DC TJ GR*.XLSX]
(ooxml, embedded labels, table is Sheet1);
left Join
Load
"GR Number",
"Truck arrival"
FROM [lib://FLD_DI_LOG_Reporting/Control Tower DC Report/DC TJ/GR/3PL/inbound report*.XLSX]
(ooxml, embedded labels, table is PTO);

sidhiq91
Specialist II
Specialist II

@My_Rebecca  Could you please share the sample file from both excel sheet. As far I see only if the field is missing or if the field is misspelled then we get such error.

My_Rebecca
Creator
Creator
Author

dear @sidhiq91 ,

please refer to enclosed file, thanks.

My_Rebecca
Creator
Creator
Author

Is there any other solution? thanks.

MayilVahanan

Hi

May be, one of the file doesn't contain the "Material Document" field.

 

 [lib://FLD_DI_LOG_Reporting/Control Tower DC Report/DC TJ/GR/SAP/DC TJ GR*.XLSX]

And also, while joining, use distinct

Load Distinct
"GR Number",
"Truck arrival"
FROM [lib://FLD_DI_LOG_Reporting/Control Tower DC Report/DC TJ/GR/3PL/inbound report*.XLSX]
(ooxml, embedded labels, table is PTO);

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
My_Rebecca
Creator
Creator
Author

@MayilVahanan 

Dear,

The column "Material Document" does exist in the data source. If I load the 1st sheet separately, it works.

My_Rebecca_0-1676261921260.png

 

MayilVahanan

Yes,

However, you're loading many files at a time by using "*"

inbound report*.XLSX

Please verify the files.. Hope one or 2 files doesn't have "Material Document"..

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
My_Rebecca
Creator
Creator
Author

dear,

I try to load with half success. The GR number is loaded and created in the first sheet, however the Truck arrival time is null.  

"inbound report*" has duplicated GR number, each GR number has different Truck arrival time. I suppose the error occurs due to this.

So I think if unduplicated GR number & corresponding first Truck arrival line could be selected, the association job could be run successfully. Could you help to realize it? thanks.