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

transformation of rows into column

hi all i want transform my table in excel file

the table is like this

as follows

Header 1Header 2Header 3Header 4Header 5Header 6
EMP id 20082009201020112012
10001110053432
1001110145245

i have 100 employee

i want transform it into  as follows by using qlikview

Header 1Header 2Header 3
empidyearrating
10001110020085
10001110120084
10001110220083
an so on as follows
10001110020093
10001110120095

am attaching excel files 

1 Solution

Accepted Solutions
Sokkorn
Master
Master

Hi,

CrossTable can do this job. Let try this script:

[Data]:

CrossTable(Years, Rate,1)

LOAD [Employee Id],

    [2012],

    [2011],

    [2010],

    [2009],

    [2008]

FROM E_Rating_old.xlsx

(ooxml, embedded labels, table is Sheet1);

See sample attached file.

Regards,

Sokkorn

View solution in original post

4 Replies
Sokkorn
Master
Master

Hi,

CrossTable can do this job. Let try this script:

[Data]:

CrossTable(Years, Rate,1)

LOAD [Employee Id],

    [2012],

    [2011],

    [2010],

    [2009],

    [2008]

FROM E_Rating_old.xlsx

(ooxml, embedded labels, table is Sheet1);

See sample attached file.

Regards,

Sokkorn

Not applicable
Author

You can use crosstable () in your script on year & Rating

Might be something like :

Rating:

Crosstable (Year, Raing,1)

Load [Employee Id],

2008,

2009,

......

From (Your source excel);

Once done, you can create a table box listing all the 3 fields i.e. Employee Id, Year, Rating which will give you the desired result.

Hope this helps!


Not applicable
Author

yes exactly

please tell me how to do that step by step i tried can't completed 

Sokkorn
Master
Master

Hi,

Follow this:

1.png

2.png

3.png

4.png

5.png

6-7.png

8.png