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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
mhmmd_srf
Creator II
Creator II

Double Counting in Concatenation

Hi All,

I have two QVD files. Sales and Sales_New.

Sales:

  

DateSales
1/1/2016100
1/2/2016200
1/3/2016300

Sales_New:

  

DateSales
1/4/2016400
1/5/2016500

When I am trying to concatenate using below script, the records from Sales table is double counting.

Sales:

LOAD Date,

     Sales

FROM

Sales.qvd

(qvd);

Concatenate

LOAD Date,

     Sales

FROM

Sales_New.qvd

(qvd);

If I am using not exists (date). then it is fine. Why the above script showing double counting data? As per my understanding it should not.

Please advise.

Thanks,

Sarif

1 Solution

Accepted Solutions
sunny_talwar

Like Ruben mentioned above, your Sales_New doesn't just include the new data, it also includes the data from Sales.qvd

Capture.PNG

This is screenshot while I load data from Sales_New.qvd. Since the first three dates are available in both the qvds, you see them getting loaded twice. When you use Where Not Exists... the first three values don't get added and only the dates which are not in Sales.qvd gets loaded in.

View solution in original post

15 Replies
rbecher
MVP
MVP

Can you attach a sample app?

Astrato.io Head of R&D
mhmmd_srf
Creator II
Creator II
Author

Hi,

Ralf.. I am attaching the qvw file.

Thanks,

Sarif

tresesco
MVP
MVP

I see all dates are having frequency as 1. Where do you see it doubled? Am I missing something?

mhmmd_srf
Creator II
Creator II
Author

Hi Tresecco and Ralf,

This is updated one. Please check this.

Thanks,

Sarif

rbecher
MVP
MVP

Can you attach the QVD files?

Astrato.io Head of R&D
rubenmarin

Seems that the Sales_New.qvd has data for the same dates previously loaded in Sales.qvd. Can you load only the sales_new.qvd and check the data it contains?

jayaseelan
Creator III
Creator III

Hi,

I have saw your qvw file is fine. there is no double entries.

Thanks,

mhmmd_srf
Creator II
Creator II
Author

no it has double counting. Check frequency..

mhmmd_srf
Creator II
Creator II
Author

no diff dates.. see the screen shot..