Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Dilie
Partner - Contributor II
Partner - Contributor II

Changing row column to value.

Capture.PNG

 

I load in my data from JIRA with the REST connector. Now in this way the values of this table are put as column names.

 

My data is now like this:

custom_field1 | custom_field2 | custom_field3

Rank                        Support              Help

 

I want it to change to this:

id                            | value

custom_field1  | Rank

custom_field2  | Support

custom_field3  | Help

 

Could anyone help me with this or put me in the right direction with documentation? English is not my first language so I don't know how to specify searching for this.

 

1 Solution

Accepted Solutions
Vegar
MVP
MVP

You can solve this by using Crosstable 

Crosstable(Entity, Value, 1)

Load '' as dummy, custom_field1, custom_field2, custom_field3

From Source ;

Drop field dummy;

I'm using dummy field as the funtion needs at least one qualifying (not pivot) field.

 

Read more on crosstable here: https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes...

View solution in original post

2 Replies
Vegar
MVP
MVP

You can solve this by using Crosstable 

Crosstable(Entity, Value, 1)

Load '' as dummy, custom_field1, custom_field2, custom_field3

From Source ;

Drop field dummy;

I'm using dummy field as the funtion needs at least one qualifying (not pivot) field.

 

Read more on crosstable here: https://help.qlik.com/en-US/sense/June2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes...

Dilie
Partner - Contributor II
Partner - Contributor II
Author

Thanks it worked I have a lot of those columns, is there any way to loop through these columns and do the same? I need to learn how this crosstable works but after testing it works. 

 

Thanks for your help!