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

Double Counting

I am having an issue and i am not sure the best way to deal with it. The solution should be easy but i am just having a brain freeze.

So when a Tap Number is created it has a ALLOW_AMOUNT and is stored in one table. Once the TAP_EVENT is approved that ALLOW_AMOUNT becomes and AUTHORIZED AMOUNT and the record is removed and stored in a separate table. Unless of course there is a bug in the system that every once in a while doesn't do what it is supposed to do (as in record 21003500) where it copies to the new table but doesn't delete out of the old one [:@]. So when I concatentate and try to get a total "Amount" of both ALLOW_AMOUNT and AUTHORIZED AMOUNT 21003500 is approx double what it should be. If there is an Autorized Amount i just want that and the ALLOW_AMOUNT should be deleted.

They are two separate table that are just being concatenated nothing else. I have tried WHERE NOT EXISTS(TAP_EVENT_NUMBER) but the problem is that sometimes a TAP_EVENT can be divided into approved and none approved PACK_GROUP_IDs.

ANy suggestions?

TAP_EVENT_NBR PACK_GROUP_ID ALLOW_AMOUNT AUTHORIZED_AMOUNT
210000241424254.24
210000241216583.68
210000241687689.6
2100002417220339.2
2100002816832249.4
21000028AC45867.6
2100002814250398.02
21000028200120018.48
21000028169120295.76
21000028172248411.52
21000028107312750.48
21000028TQ315563.88
21003500TR45810.52
21003500LI166989.5
21003500TR45810.52
21003500LI119700


0 Replies