Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
cmano
Creator
Creator

Load data from excel (3 tables only see the 2)

Hello guys.

I have 3 tables at excel.

I load the data drag and drop.

When i open the Table Viewer i only see the 2 tables.

Fyi.

The 2/3 tables have the same headers etc.

Best regards.

Labels (1)
  • Other

1 Solution

Accepted Solutions
stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @cmano 

This is showing the tables not concatenating, because you have a different field in each table.

In each case change the fieldname to be consistent, i.e.

'S007' as [Source Table],

This should then get you back to having just two tables in the data model.

I believe that all three tables from the Excel spreadsheets were originally concatenating correctly. The other table, REDCARDS, is most likely coming from somewhere else.

Check your load script for additional bits of load that you are not expecting. In the load script editor you can have many tabs on the left hand side, so check each of those.

If the rogue table was created by the Data Manager you will need to unlock the script before you can edit it.

Hope that helps.

Steve

View solution in original post

3 Replies
stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @cmano 

Two of the tables have auto-concatenated, as the fields are exactly the same. The other table is slightly different, perhaps a column extra, missing or perhaps named differently.

Having identical tables concatenating is a good thing, as you don't get weird associations between data in different tables.

You want to ensure the columns in all tabs are the same.

You might also want to consider adding a new column with a fixed value for each sheet. This can be done simply in the load script editor, like this:

LOAD
  'Sheet 1' as [Sheet Name],
  *
FROM [lib://DataFiles/MySpreadsheet.xlsx] (ooxml);

You will then have a new field that tells you which data came from where. I'm sure you can do this in the drag drop environment also - but I tend to use the script editor...

Hope that helps.

Steve

cmano
Creator
Creator
Author

Hello @stevedark .

I tried as you mentioned and i have the below as you can see on attached images.BeforeBefore

That was the initial status.

Then i add this on script editor as you said on both tables (S007 & S008) ( i am not sure if i did this right.

Script addScript addAfterAfter

That was the result...is that we expected to see?

thank you for your time.

stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @cmano 

This is showing the tables not concatenating, because you have a different field in each table.

In each case change the fieldname to be consistent, i.e.

'S007' as [Source Table],

This should then get you back to having just two tables in the data model.

I believe that all three tables from the Excel spreadsheets were originally concatenating correctly. The other table, REDCARDS, is most likely coming from somewhere else.

Check your load script for additional bits of load that you are not expecting. In the load script editor you can have many tabs on the left hand side, so check each of those.

If the rogue table was created by the Data Manager you will need to unlock the script before you can edit it.

Hope that helps.

Steve