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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to add columns from two tables

Hi Friends

I have two tables A and B like

A                B

pvalueA        pvalueB

qvalueA         qvalueB

rvalueA         rvalueB

Now I need to write script to add pvalueA+pvalueB as say Z. I want to do at the script level not at the front end.

Thanks


1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Pawan,

Find below example which adding the values of two columns.

Let me know if you are looking for the same or anything else.

View solution in original post

3 Replies
ali_hijazi
Partner - Master II
Partner - Master II

A:

Load A

B:

load B

join(A)

load * resident B;

drop table B;

tempA:

load A,B, A&B as Z

Resident A;

drop table A;

rename table tempA to A;

I can walk on water when it freezes
Not applicable
Author

A:

load A
B:

load B

noconcatenate

C:

load

pvalueA

resident a;

concatenate

load

pvalueB

resident b;

LOAD

PVALUEA+PVALUEB AS Z

RESIDENT C;

Anonymous
Not applicable
Author

Hi Pawan,

Find below example which adding the values of two columns.

Let me know if you are looking for the same or anything else.