Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Duckabush
Contributor II
Contributor II

Loading vertically stored data into columns, Tried a CrossTable, but it is not working.

The data warehouse we are connecting to has data in tables stored vertically and horizontally. All the ones that are horizontally stored I am having no issues with. However the vertical ones I am.

The load statement is the following (Simplified):

CROSSTABLE(item, TEXT_VALUE, 3)
LOAD
    [ID],
    [PREV_ID],
    [SUB_ID],
    [FIELD_NAME],
    [TEXT_VALUE]
    [NUMBER_VALUE];

Currently the data is in this format in the MySQL database.

IDPREV_IDSUB_IDFIELD_NAMETEXT_VALUENUMBER_VALUE
8849211AMT 551
8849211VALUE 125758
8849211HTS5556.55.1000 
8849211HTS DESCGOAT FUR 

 

I need to make AMT, VALUE, HTS, HTS DESC, have their own columns, with the data associated with them.

Such as

IDPREV_IDSUB_IDAMTVALUEHTSHTS DESC
88492115511257585556.55.1000GOAT FUR

 

I tried using a CrossTable, but not seeming to get results that would work. Any suggestions on what I should use or how to get this better setup better?

Note PREV_ID links to the KEY in the parent table, and SUB_ID links it to the Part Number associated with these. Some have 50-100 part numbers. So these get huge very quickly. I requested these be split out, but didn't resolve the issue as more empty lines were created which made it even harder as more columns and more blank rows of data with 1 value in AMT, VALUE, HTS, or HTS DESC.

Labels (3)
0 Replies