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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
spividori
Specialist
Specialist

Data from two tables

Hi.

I have two tables and I need to get to the Ventas table the value of the Price field in the table Costos, as shown in the image.

img.bmp

I need to do it in the script and with the following result

Captura.PNG

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Not applicable

Hi Sandro,

Try this script:


Directory;
Ventas:
LOAD Item,
      Codigo as VentasCodigo,
      Fecha as VentasFecha
FROM
Ventas.xlsx
(ooxml, embedded labels, table is Hoja1);


Directory;
Costos:
left keep (Ventas)
LOAD Item,
      Codigo as CostosCodigo,
      Precio,
      Fecha as CostosFecha
FROM
Costos.xlsx
(ooxml, embedded labels, table is Hoja1);

 

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached qvw


talk is cheap, supply exceeds demand
spividori
Specialist
Specialist
Author

HI.

Thanks, it's what I needed!

Regards.