Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
berryandcherry6
Creator III
Creator III

Get counts for each unique fieldvalues from multiple tables.

Hi,

Table1:

Batch_idInvitation_idComm_type_id
213222
313422
313523
213623
313723
313824

Table 2:

Batch_idInvitation_idComm_type_idUser_signed
2132221
3135231
3137231
4222220
2136231
3138240
3134221

From above tables, i want to get all  Comm_type_id  from Table1, and match invitation_id, Batch_id in Table2 where User_signed = 1 for each comm_type_id, find sum and append it to Table1

I want to create table like this

Batch_idInvitation_idComm_type_idsum(user_signed)
2132221
3134221
3135232
2136231
3137232
3138240

How could i do this? Let me know if you need more info on this.

13 Replies
berryandcherry6
Creator III
Creator III
Author

Hi,

i have not yet got any solution, for my question

berryandcherry6
Creator III
Creator III
Author

I am using qliksense, can you attach qvf file?

balar025
Creator III
Creator III

You can use script directly.

LOAD Batch_id&Comm_type_id as KEY

,Batch_id

    ,Invitation_id

,Comm_type_id

FROM

[https://community.qlik.com/thread/270561]

(html, codepage is 1252, embedded labels, table is @1);

LOAD Batch_id&Comm_type_id as KEY

    ,sum( User_signed) as User_signed

FROM

[https://community.qlik.com/thread/270561]

(html, codepage is 1252, embedded labels, table is @2)

group by Batch_id,Comm_type_id;

berryandcherry6
Creator III
Creator III
Author

In given code there is no join between two tables, can you explain how this works for my query?