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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculation between two Resident Tables

I have the following script and I want to do the calculations over fields loaded from two resident tables

(example : B*Y/C*Z  as 'W') and keep in Level1 table. How it could be possible ?

Level1:

Load   A, B , C
Resident  P

left join (Level1)

Load C, Y, Z
Resident Q;

1 Solution

Accepted Solutions
maxgro
MVP
MVP

Level1:

Load   A, B , C
Resident  P
left join (Level1)
Load C, Y, Z
Resident Q;

Final:

noconcatenate load

A, B, C, Y, Z,

B*Y/C*Z  as W

resident

Level1;


drop  tableLevel1;



or I'm missing something?

View solution in original post

4 Replies
maxgro
MVP
MVP

Level1:

Load   A, B , C
Resident  P
left join (Level1)
Load C, Y, Z
Resident Q;

Final:

noconcatenate load

A, B, C, Y, Z,

B*Y/C*Z  as W

resident

Level1;


drop  tableLevel1;



or I'm missing something?

MK_QSL
MVP
MVP

may be like this...

M1:

Mapping Load * Inline

[

  C, Y,

  30, 40

];

M2:

Mapping Load * Inline

[

  C, Z,

  30, 50

];

T1:

Load

  *,

  B*ApplyMap('M1',C)/C*ApplyMap('M2',C) as W

Inline

[

  A, B, C

  10, 20, 30

];

MK_QSL
MVP
MVP

Or

M1:

Mapping Load * Inline

[

  C, Y,

  30, 40

];

M2:

Mapping Load * Inline

[

  C, Z,

  30, 50

];

T1:

Load * Inline

[

  A, B, C

  10, 20, 30

];

NoConcatenate

Final:

Load

  *,

  B*ApplyMap('M1',C)/C*ApplyMap('M2',C) as W

Resident T1;

Drop Table T1;

Not applicable
Author

Thank you very much ! It helped !