Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
rwb139
Creator
Creator

Tables Keep Overwriting

Hi all,

I am having trouble adding tables with the same name but different owners to my Qlik environment. For instance, I have owner1.accounts and owner2.accounts. When I load the first one, everything is fine, but then when I load the owner2.accounts it overwrites the ower1.accounts. I have tried changing the names of the tables before loading or adding the data to no avail. I  am also hesitant to move to the load editor and am using the data manager as I am new to coding and the like. Any suggestions would be greatly appreciated!

8 Replies
Tanalex
Creator II
Creator II

Do they have the same/similar structure?  If so, add NOCONCATENATE between the two LOAD commands and you will get two tables.  Qlik is likely combining them into one structure.

rwb139
Creator
Creator
Author

They do have the same structure. I thought that Qlik might be combining them too, but I actually used a KPI to count the number of values in one of the tables and then when I loaded the second table, the number changes to the count of the second one.

Tanalex
Creator II
Creator II

If you want to reply with your load script, that may help answer this more specifically.

rwb139
Creator
Creator
Author

@Tanalex 

Thanks for your help. Here is a zip of some screenshots that will hopefully provide more clarity.

rwb139
Creator
Creator
Author

Here are two pictures of my KPIs. You can see how the numbers are reduced after loading my second table when it obviously should be increased if they were concatenating. Thanks again, @Tanalex !

ArnadoSandoval
Specialist II
Specialist II

Hi @rwb139 

It is a bit tricky to 'split' tables in the Data Manager, I haven't done it myself, but I give a try based in your problem, what I did was adding an Excel file into the DM, I got this:

DM-01.png

The I added a second XL file (actually, I duplicated the first XL file, so I ended with two different objects with similar columns structure! here is the screenshot!

DM-02.png

Please, check your Data Manager for something similar! Now if you hover your mouse over the panel with the x2, your will get a "hover menu" with to vertical lines; it will allow you to split those two tables!

DM-03.png

the next screenshot shows the split tables !!!

DM-04.png

Let me know if your Data Manager presents you with the same feature, I am using QlikSense Desktop November 2020!

Hope this helps,

Arnaldo Sandoval
A journey of a thousand miles begins with a single step.
rwb139
Creator
Creator
Author

Hi @ArnadoSandoval 

That's very strange that yours is adding an not overwriting. I went back again and added both tables, and I don't have the "x2" next to my table. Here is a picture. Also I am a bit nervous to move to the data load editor as I am new to coding and the like and know that once I do, I can't go back to Data Manager. Would you suggest I make the move? And if so, do you have any suggestions for resources for me to learn it better? Thanks for everything! 

rwb139_1-1609165385159.png

 

ArnadoSandoval
Specialist II
Specialist II

Hi @rwb139 

Sorry for the delayed reply, I had to install PostgreSQL and a sample database (dvdrental) to replicate your issue; the Qlik DM does not automatically concatenate tables with the same name from different owners; I suggest you add a view at one of the owners databases, the view something like this:

CREATE VIEW accounts_userX As SELECT * from accounts

This will allow qlik to concatenate these tables! The suggested view implement a SELECT all from the offending table.

I found another alternative, if you create a second Data Connection to the same database with a different name, as shown below, the DM separate both tables (you do not need the view in this case)

DM_Concatenate_Postgress-01.png

Hope this helps,

Arnaldo Sandoval
A journey of a thousand miles begins with a single step.