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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
madmax88
Creator II
Creator II

Sum Value if Distinct ID

Hi,

I have 2 tables:

T_1:

IDend_dateValue
119.09.2019500
220.09.2019100
321.09.2019200

 

T_2:

IDValue dateValue
119.09.2019500
220.09.2019100
521.09.2019700

 

I need to sum by Value date from Table 2 and the sum from table 1 by end date if the ID of Table 1 is not already in table 2. Is this possible?

In this Case it would me give following sums

IDValue dateValue
119.09.2019500
220.09.2019100
321.09.2019200
521.09.2019700

 

1 Solution

Accepted Solutions
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

 

try to load Table 2 first, then load Table 1 but add a "where not exists(id)" as condition of load

View solution in original post

3 Replies
madmax88
Creator II
Creator II
Author

May it be the best by merging the tables already in the script? The End Date, Value date are the same

StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

 

try to load Table 2 first, then load Table 1 but add a "where not exists(id)" as condition of load

madmax88
Creator II
Creator II
Author

Thanks, yes it works!