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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Transform Excel

Hi,

I must have blown a couple of fuses and my brain has gone into hybernation - so some help please...

Client have a LARGE Excel-file - part of it is attached, that I read into a QV app without problem. They have now added a Yearly total (Column Q, Total) that they want to use as data under Version (Column D) - so Version will contain Goal, Result and Total.

Is there a way to do this without rebuilding the Excel-file?

Best regards

Torbjörn Ungvall (@Ungvall)

Senior Business Discovery Manager @ Advectas AB

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

Then this should work.

DataTmp:

LOAD År,

     Segment,

     Product,

     Version,

     Jan,

     Feb,

     Mar,

     Apr,

     Maj,

     Jun,

     Jul,

     Aug,

     Sep,

     Okt,

     Nov,

     Dec

FROM

[Uppföljning VD-brev indata.xlsx]

(ooxml, embedded labels, table is [Att fylla i]);

JOIN (DataTmp) LOAD DISTINCT År,

     Segment,

     Product,

     'Total' AS Version,

     Total AS Dec

FROM

[Uppföljning VD-brev indata.xlsx]

(ooxml, embedded labels, table is [Att fylla i]);

Hope that helps.

Miguel

View solution in original post

7 Replies
Miguel_Angel_Baeyens

Hi Torbjörn,

Do you mean something like this? I'm not sure, though, because I guess you are doing some CROSSTABLE load at some point:

DataTmp:

LOAD År,

     Segment,

     Product,

     Version,

     Jan,

     Feb,

     Mar,

     Apr,

     Maj,

     Jun,

     Jul,

     Aug,

     Sep,

     Okt,

     Nov,

     Dec

FROM

[Uppföljning VD-brev indata.xlsx]

(ooxml, embedded labels, table is [Att fylla i]);

CONCATENATE (DataTmp) LOAD År,

           Segment,

           Product,

           Total AS Version

FROM

[Uppföljning VD-brev indata.xlsx]

(ooxml, embedded labels, table is [Att fylla i]);

Hope that helps someway.

Miguel

Not applicable
Author

Hi,

If do like that I get Version with Goal, Result and all data from Total. They need to use Version as legend in a bar chart...

2012-06-18_10-35-12.png

[Note - last two is Goal and Result]

Best regards

Torbjörn Ungvall (@Ungvall)

Senior Business Discovery Manager @ Advectas AB

Miguel_Angel_Baeyens

Hi,

How is this Total divided? I mean, once you have, according to the excel file you uploaded, Total label below Goal and Result, where does its value have to go? Under January? Or in a new row?

Regards.

Miguel

Not applicable
Author

Hi,

As the value for Version (Goal) is aggregated, Total is the same value as December (Month) - so it's either that or a new row...

Best regards

Torbjörn Ungvall (@Ungvall)

Senior Business Discovery Manager @ Advectas AB

Miguel_Angel_Baeyens

Hi,

Then this should work.

DataTmp:

LOAD År,

     Segment,

     Product,

     Version,

     Jan,

     Feb,

     Mar,

     Apr,

     Maj,

     Jun,

     Jul,

     Aug,

     Sep,

     Okt,

     Nov,

     Dec

FROM

[Uppföljning VD-brev indata.xlsx]

(ooxml, embedded labels, table is [Att fylla i]);

JOIN (DataTmp) LOAD DISTINCT År,

     Segment,

     Product,

     'Total' AS Version,

     Total AS Dec

FROM

[Uppföljning VD-brev indata.xlsx]

(ooxml, embedded labels, table is [Att fylla i]);

Hope that helps.

Miguel

Not applicable
Author

Thank you so much - you're a tresure!

Best regards

Torbjörn Ungvall (@Ungvall)

Senior Business Discovery Manager @ Advectas AB

Not applicable
Author

Hi again,

I didn't get the result I wanted with the original Excel-file, so I'm starting a new thread here: http://community.qlik.com/thread/55651

(With part of original file and script attached...)

Best regards

Torbjörn Ungvall (@Ungvall)

Senior Business Discovery Manager @ Advectas AB