Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
justin_morley
Creator
Creator

Depivot data (aka turn dimension names into data)

Hi all,

Is there any native function in QlikView that allows depivoting, by which I mean take multiple different dimension names and express them as data. Here is an example of what I mean. I want to transform my data from this:

Categorydimension1dimension2dimension3
A123412323
B4231264
C5342321

to this:

CategoryThingTypeThingValue
Adimension112
Adimension234123
Adimension323
Bdimension1423
Bdimension212
Bdimension364
Cdimension1534
Cdimension223
Cdimension321

You can see here that the dimension names dimension1-3 become data and two new dimensions are created, changing the data from "short and fat" to "long and skinny".

Ideally I'd like to do this in script.

Thanks in advance,

Justin

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Justin,

     Look for the function named "CrossTab".

     Here are some useful links.

     http://community.qlik.com/message/183117#183117

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

3 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi Justin,

     Look for the function named "CrossTab".

     Here are some useful links.

     http://community.qlik.com/message/183117#183117

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
justin_morley
Creator
Creator
Author

Yep, that worked a treat, thanks!

This problem is slightly more complicated, as I don't want to depivot *all* the dimensions, but I've enough to get going now.

Thanks for your help.

Justin

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Sure,

     Keep going, if you get stuck, community is der.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!