Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I just learned the capability of using the cross-table function which is very effective when needed. I am looking for something that will do that opposite and instead take the values from a field and transpose/pivot those are my new column header.
I'd like to take that table above and transform is so that the SPORTS column will transpose and will become my headers as below.
Does anyone have guidance on how to achieve this output in qlik sense?
Awesome this is what I was looking for (the generic load concept) thanks!
Again, thanks for the link as I have a better understanding on what a generic load is. One thing that is a bit confusing for me is on the qlik website it states that a generic load:
** The generic prefix unpacks a tall table, creating one field per attribute value. This is similar to pivoting a table, except that it results in a separate table per field created.
I actually do not want the create separate tables. Is there a way to bypass this and instead use the attributes to simply transpose into new header fields?
Thanks.
no. you will have to packit all back into 1 table. see the end part of the blog about a for loop and below comments from hic
The result is one big table that contains all attributes; a table that often is sparse (containing many NULL values) and much larger than the initial tables. And no performance has been gained… So I can only say: You should not do this - unless you have a specific reason to. The Generic prefix creates a set of tables that store the data in an optimal way. In most cases you should not change this.
I realize, however, that there are cases where you want to transform the data further and need the data in one, unified table. Then the above scriptlet can be used.