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: 
jacek2703
Contributor II
Contributor II

Combining tables with chosen columns

Hi there,

I have two tables: the first one contains many columns, the 2nd one the necessary columns only. I need to load only chosen columns from the first one and then combine the table with the 2nd one.

What is wrong with the code below? After loading data no error messages but nothing happens - no table loaded.

sub QVDload
LOAD
"%Product ID",
"Product ID",
%Date,
"%Customer ID",
"Customer ID",
"# Sales Out Quantity"
FROM [lib://bms3_emea_root_folder/qvd_facts/f_WESI_SO.qvd](qvd);

Concatenate
load * from [lib://PL_CONS_TRACKER (ad_jwozniak)/EuSO.qvd](qvd);
end sub;

jacek2703_0-1628843048767.png

Thank you for any help.

1 Solution

Accepted Solutions
Taoufiq_Zarra

if I understood correctly @jacek2703  why use Sub ... end sub;

 

to concatenate the 2 table you need to have the same names in both table

like :

QVDload:
LOAD
"%Product ID",
"Product ID",
%Date,
"%Customer ID",
"Customer ID",
"# Sales Out Quantity"
FROM [lib://bms3_emea_root_folder/qvd_facts/f_WESI_SO.qvd](qvd);

Concatenate
load 

"%Product ID",
"Product ID",
%Date,
"%Customer ID",
"Customer ID",
"# Sales Out Quantity"

from [lib://PL_CONS_TRACKER (ad_jwozniak)/EuSO.qvd](qvd);

if you dont have in EuSO the same name of field use .... as ...,

 

 

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

3 Replies
Taoufiq_Zarra

if I understood correctly @jacek2703  why use Sub ... end sub;

 

to concatenate the 2 table you need to have the same names in both table

like :

QVDload:
LOAD
"%Product ID",
"Product ID",
%Date,
"%Customer ID",
"Customer ID",
"# Sales Out Quantity"
FROM [lib://bms3_emea_root_folder/qvd_facts/f_WESI_SO.qvd](qvd);

Concatenate
load 

"%Product ID",
"Product ID",
%Date,
"%Customer ID",
"Customer ID",
"# Sales Out Quantity"

from [lib://PL_CONS_TRACKER (ad_jwozniak)/EuSO.qvd](qvd);

if you dont have in EuSO the same name of field use .... as ...,

 

 

 

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
jacek2703
Contributor II
Contributor II
Author

Many thanks!!!

jacek2703
Contributor II
Contributor II
Author

thanks again. And do you know how to solve this issue?

https://community.qlik.com/t5/New-to-Qlik-Sense/Dynamic-calculated-field-WOI/td-p/1828550

I have been struggling with it for several days and I have no idea how to handle it.