Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
marcel_olmo
Partner Ambassador
Partner Ambassador

Transpose challenge

Hi guys, I'm trying to do a particular transpose with no exit.

Here I attach an image of my previous result, what I'm trying right now, and my desired result :

Example.png

As you can see, I have two fields, the first one has the headers of the columns (the dimensions), and the second one has their values.

Do you know how can I get my desired result? I bet it's easier than I think but I'm really stuck with that stuff.

If you want to try it, here I attach the document.

Regards, Marcel.

1 Solution

Accepted Solutions
MarcoWedel

like this?

QlikCommunity_Thread_145084_Pic2.JPG.jpg

Previous:

Generic LOAD

    RecNo() as ID,

    SubField([Table Header], ', ', IterNo()) as Header,

    SubField([Table Line], ', ', IterNo()) as Line

FROM Example.qvd (qvd)

While IterNo()<=RangeMax(SubStringCount([Table Header],', '),SubStringCount([Table Line],', '))+1;

hope this helps also

regards

Marco

View solution in original post

5 Replies
afurtado
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi.

I hope this can help you.

2014-12-08 21_44_48-.png

Best,

Alessandro Furtado

furtado@farolbi.com.br
MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_145084_Pic1.JPG.jpg

Generic LOAD

    RecNo() as ID,

    SubField([Table Header], ', ', IterNo()) as Header,

    SubField([Table Line], ', ', IterNo()) as Line

INLINE [

    Table Header, Table Line

    "Field1, Field2, Field3", "1, 2, 3"

]

While IterNo()<=RangeMax(SubStringCount([Table Header],', '),SubStringCount([Table Line],', '))+1;

hope this helps

regards

Marco

marcel_olmo
Partner Ambassador
Partner Ambassador
Author

Thanks Marco! It's almost what I need, could you do it using my example.qvd instead of the inline sentence? Imagine that there are more rows than 1.

I mean :

Field1,Field2,Field3    1,2,3

Field1,Field2,Field3    4,5,6

...

Field1,Field2,Field3    X,X,X

Regards, Marcel.

MarcoWedel

like this?

QlikCommunity_Thread_145084_Pic2.JPG.jpg

Previous:

Generic LOAD

    RecNo() as ID,

    SubField([Table Header], ', ', IterNo()) as Header,

    SubField([Table Line], ', ', IterNo()) as Line

FROM Example.qvd (qvd)

While IterNo()<=RangeMax(SubStringCount([Table Header],', '),SubStringCount([Table Line],', '))+1;

hope this helps also

regards

Marco

marcel_olmo
Partner Ambassador
Partner Ambassador
Author

Thanks Marco, Here I attack my final result joining the general load table :

Desired.png

Regards, Marcel.