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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Doubling field count

I have a qlikview document that's doubling my claculations on certaint items. When I do an item count it shows the number of items doubling. This only happen on some items which is hard for me to comprehend. Example of problem item is PTR-400TCBL or WPL-22PB. Working items is wpl-1000a or wpl-1000

6 Replies
Not applicable
Author

Somewhere along the line an inner join has the secondary table generating 2 rows for 1 row in the primary.

Do you really need to do all those inner joins to create one table? Why not keep the tables seperate and let Qlikview manage the relationships on the key fields?

Regards,

Gordon

Not applicable
Author

That was how I originally had it but per suggestion from another thread it was chnged inorder to do calculations of sql fields.

Not applicable
Author

But I dont see any calculations anyway? The 'preceding load' runs after the SQL Select so removing the inner joins (which are using the resident table on which you could perform calculations) would just create seperate tables.

Not applicable
Author

The calculated field is in the load statement and joins drive subassemblies based on selections.

johnw
Champion III
Champion III

You may be able to just look at the log file to see when the duplicate rows appear. You can also try commenting out parts of the script to see which load is causing the problem. There's nothing wrong with joining a bunch of tables together, but if you have two rows for a single ID in one of the tables, it will duplicate all of the other data from all the other tables as well. If that's not what you want, you'll need to either not join that table, or perhaps do a group by, or a distinct, or some other way of getting only the one row you want.

Not applicable
Author

It seems the problem is duplicate rows from one of my tables. Thanks for the help guys.