Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
quriouss
Creator III
Creator III

Why is my simple table data showing multple rows (orthogonal join)?

Update: My fault completely - I had a LOOSEN() statement in the load script - I thought this acted at the table-level (disconnected each table) but having re-read the documentation it acts at the FIELD level (removes the associations between each field).

I removed the LOOSEN() and re-wrote the script using NoConcatenate() and it seems to be working.  Thanks, all.

I have a large-ish table of clients (2.3 million records) which are coming from Oracle.

In the Data Model Viewer the data seems correct. One table, with 2.3 million rows, with one row per client.

However, if I put that data into a table in Qlik Sense, I get what looks like an orthogonal join on my data, so I get repeated rows (and then the app runs out of resources.

See here for an example; New York is mapped to every country in the world.

ManyCities.png

However, if I add a measure (any measure, in this case it's just an integer, the number '1') the repeated rows disappear.

ManyCities2.png

So, two questions;

1.  Why is it happening (is it a scripting issue)? and

2.  How can I stop it happening?

15 Replies
quriouss
Creator III
Creator III
Author

No, I can't post the SQL, but the fact that it's happening from a simple QVD load is slightly worrying.  I'm going to keep investigating.

quriouss
Creator III
Creator III
Author

Some dimensions work correctly together, and some don't.

For example, adding City & Country to a table gives the "all-to-all" behaviour, but if I add the client's address to the table that mapping disappears and I see only the correct behaviour.

Clever_Anjos
Employee
Employee

I´m guessing that you have problem with your SQL that is storing wrong data to you qvd.

quriouss
Creator III
Creator III
Author

No, there is no loop.

I am doing an incremental load - load the SQL, then load the missing records from a QVD, but I'm ending up with one simple table.

I thought that might be the problem, which is why I thought I'd try loading just the QVD (with no SQL and no transformations) and I see the same behaviour.

quriouss
Creator III
Creator III
Author

I suspect you might be right, but the row count is correct.  The SQL is long and horrible (it's a copy from our production Oracle system so it s the correct business logic) taking data from about 10 different tables, so I think it's time to get the DBAs involved.

Clever_Anjos
Employee
Employee

Please ask the DBA team if that issue happens when you execute the SQL query using a client