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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Manipulating a table

I am new to Qlikview 9:

I have a excel spreadsheet that looks like:

275276277279280282284286288289290Website
7/1/2006200,000.00850,000.00400,000.00550,000.00700,000.00700,000.001,500,000.00
10/1/2006190,000.00808,000.00380,000.00525,000.00665,000.00665,000.001,425,000.00
1/1/2007190,000.00808,000.00380,000.00525,000.00665,000.00665,000.001,425,000.00
4/1/2007220,000.00935,000.00440,000.00605,000.00770,000.00770,000.001,650,000.00
7/1/2007580,000.001,600,000.00775,000.00630,000.00805,000.00450,000.001,250,000.00350,000.001,500,000.00
10/1/2007550,000.001,520,000.00735,000.00600,000.00765,000.00425,000.00665,000.001,175,000.00330,000.001,425,000.00
1/1/2008550,000.001,520,000.00735,000.00600,000.00425,000.00665,000.001,175,000.00330,000.001,425,000.00
4/1/2008638,000.001,750,000.00853,000.00693,000.00495,000.00770,000.001,375,000.00385,000.001,650,000.00
7/1/2008667,000.001,850,000.00850,000.00725,000.00660,000.001,400,000.00450,000.00450,000.001,400,000.00725,000.002,750,000.00
10/1/2008635,000.001,750,000.00800,000.00680,000.00627,000.001,330,000.00425,000.00425,000.001,330,000.00685,000.003,450,000.00
1/1/2009635,000.001,750,000.00800,000.00680,000.00627,000.001,330,000.00425,000.00425,000.001,330,000.00685,000.004,300,000.00
4/1/2009735,000.002,035,000.00935,000.00795,000.00726,000.001,540,000.00495,000.00495,000.001,540,000.00795,000.005,375,000.00
7/1/2009700,000.001,940,000.00890,000.00725,000.00693,000.001,470,000.00470,000.00470,000.001,470,000.00760,000.005,900,000.00


I am seeing all these options like Transpose and Rotate in version9, I am not sure how to use them to get the data I need. I need 3 dimensions

SalesPersonID (which is the numbers up top), Date, and SalesQuota…. i.e. (275, 7/1/2006, $200,000 as one record)

I am unsure how to manipulate this data to get this set up, any help?

2 Replies
Not applicable
Author

Hello !

I think you need to use CROSSTABLE on your LOAD.

The first row of your data would be transformed into 6 records.

Take a look at the CROSSTABLE docs (related to LOAD) and if you are unuble to use it, let us know.

It would be HELPFUL if you provided a SIMPLE data base or QVW here, with INLINE data, where we could help you, OK ?

Here's how I use the CROSSTABLE on a particular situation of ours :


CROSSTABLE (CODIGO_PRE_FPMOV,VALOR_FPMOV,7) LOAD
YEAR(MAKEDATE(LEFT(AAAAMM_FPMVA,4),RIGHT(AAAAMM_FPMVA,2))) AS ANO_DER_FPMOV
,MONTH(MAKEDATE(LEFT(AAAAMM_FPMVA,4),RIGHT(AAAAMM_FPMVA,2))) AS MES_DER_FPMOV
,AAAAMM_FPMVA AS AAAAMM_FPMOV
,PRONTU_FPMVA AS PRONTU_FPMOV
,DEPART_FPMVA AS DEPART_FPMOV
,'ADM' AS FOLHA_FPMOV
,'PIRACICABA/SBO' AS CAMPUS_FPMOV
,VENDES_1_FPMVA
,VENDES_2_FPMVA
,VENDES_3_FPMVA
VENDES_4_FPMVA


See ya !

Not applicable
Author

Hey !

Guess what ? I have a sample here, based on your data.

Try the attached file. Study it.

Key point is this line :

CROSSTABLE (CODE_NO,CODE_VALUE,1) LOAD *

Hope you will understand !

By the way, it is ALWAYS a good idea to provide those simple QVWs as I did here, when you post. It helps other fellows to help you.

I also keep a bunch of those tiny QVWs , each one with a specific situation. Then I test the issue OUTSIDE the original problem. When I have the solution, I take it to the REAL world, wich generally is more complex. Got it ?

See ya !