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

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Joining two tables and getting the right data

Hi Fellow users,

I have two tables I would like two join. Material table and Labor table. Here is an example what goes wrong.

Table Material

jobMaterialAmountPeriod
08w3000paint10.251
08w3000steel5.331
08w3000steel13.661


Table Labor

jobNameHoursPeriod
08w3000John271


When I join the Material table with the Labor table I get the following result:

jobMaterialAmountPeriodNameHours
08w3000paint10.251John27
08w3000steel5.331John27
08w3000steel13.661John27


So when I a make a graph table I get the correct amount but the hours are (3*27)= 81hours.

Could someone help me with this problem, how can I create the following table

jobMaterialAmountPeriodNameHours
08w3000paint10.251
08w3000steel5.331
08w3000steel13.661
08w30001John27


Regards,

Aissam

3 Replies
Not applicable
Author

Hi Aissam,

concatenate will do the job.

Hope it´s the right way so you get the requested results.

Rainer

Not applicable
Author

yes Rainer

Here is the attached sample.

-Raghu

Not applicable
Author

Thanks guys,

It works. I will have a good night sleep :-).

Regards,

Aissam