Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to pivot the data of rows into columns

Hi All,

I have a table where data will be like

2014-06-16_1337.png

But i want my data to be like

Location Num      Week       Sales

3013                  week1         2448

3013                  week2         2513

3020                  week1         3957

3020                  week2          3673         

And so, on .I have attached my QVW. Can someone help me with any suggestions ?

Thanks         

12 Replies
gmoraleswit
Partner - Creator II
Partner - Creator II

Please see attached file

gmoraleswit
Partner - Creator II
Partner - Creator II

You deleted the 'key' field on the calendar table

calkey.JPG.jpg

gmoraleswit
Partner - Creator II
Partner - Creator II

Store the calendar table in a qvd:

store Calendar into Calendar.qvd;

DROP Table Calendar;

Calendar:

LOAD *,

  num(FiscalYearId & num(FiscalMonthOfYearId,'00') & num(FiscalWeekOfMonthId,'00')) as key

FROM

Calendar.qvd

(qvd);

qvd.JPG.jpg