Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Transpose of column to Row

Current data format is below and   Ende_date_Seiten_Data column wise is a combination of Ende_Data and  Seiten_Data column.

We are getting data in the column format.

Stage_TypeStageTypeEnde_DataSeiten_DataEnde_date_Seiten_Data
Re-Import 1 EndeRe-Import 1Ende9/13/20179/13/2017
Re-Import 1 SeitenRe-Import 1Seiten1616
Übermittlung Bild-PDF EndeÜbermittlung Bild-PDFEnde9/21/20179/21/2017
Übermittlung Bild-PDF SeitenÜbermittlung Bild-PDFSeiten1818
Upload auf OMN EndeUpload auf OMNEnde9/8/20179/8/2017
Upload auf OMN SeitenUpload auf OMNSeiten3030

We need to transpose to Row.,IWe need output in single row for each stage instead of 2 columns

  

StageEndeSeiten
Re-Import 19/13/201716
Übermittlung Bild-PDF9/21/201718
Upload auf OMN9/8/2017

30

Could you please help us to transpose from the above last  column to row

1 Solution

Accepted Solutions
2 Replies
sunny_talwar

Check here:

The Generic Load

Anonymous
Not applicable
Author

You can use the below code in script level to create separate tables if you have limited number of types in the db.

tabe1:

LOAD

     Stage,

     if(Type = 'Ende',Ende_date_Seiten_Data) as 'ende'

FROM

D:\Users\knataru\Downloads\Book1.xlsx

(ooxml, embedded labels, table is Sheet1) where Type = 'Ende';

tabe2:

LOAD

     Stage,

   if(Type = 'Seiten',Ende_date_Seiten_Data) as 'seit'

FROM

D:\Users\knataru\Downloads\Book1.xlsx

(ooxml, embedded labels, table is Sheet1) where Type = 'Seiten';