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: 
Not applicable

pivot table join...???

Sorry. i do not speak english..

tab1:
LOAD * INLINE [
a, b
11, 1
22, 2
33, 3
];

tab2:
LOAD * INLINE [
c, d
11, 99
22, 88
];

I want not join. I want to handle the pivot table.

So...

I written....

sum({<a={"$(=GetFieldSelections(c))"}>}d)

current result:

aSum (b)sum(d)
111187
222187
333187


i want results:

aSum (b)sum(d)
11199
22288
3330


plz......

2 Replies
Anonymous
Not applicable
Author

Here's an easy way to write the expression:

sum(if(a=c,d))

Not applicable
Author

Thank you very much.

but...

'if' is performance problem.(over 10000000 data)

ex>

SUM({<STD_DT={'20100501'}>} IF((a = b) AND (c = d) AND (e = f) AND (g = h) AND (i = j),kk)

It is take a long time....(10 minute.) ^^;;;;