Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Change column headers to columns data

Hi How do i change my data to as such

Country|Year|GDP

Peru|2014|xxx

Peru|2015|xxx

It is currently like this:

Screen Shot 2018-07-06 at 5.19.48 PM.png

3 Replies
olivierrobin
Specialist III
Specialist III

hello

you can try to use crosstable()

see "Working with cross tables" in qlik documentation

olivierrobin
Specialist III
Specialist III

for example :

t:

load * inline [

country,2014,2015,2016

a,4,5,6

b,7,8,9

];

t2:

CrossTable(year,sales,1) load * resident t;

drop table t;

MK9885
Master II
Master II

Maybe

crosstable (Tables, GDP,5)

Load

[Country Name],

2014,

2015,

2016,

2017,

2014 as [Year 2014],

2015 as [Year 2014],

2016 as [Year 2014],

2017 as [Year 2014]

From....