Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

Redesign excel data

Hi Friends,

I need one help to redesign excel source data , attached in output for (sheet name : output in attached excel)

I have tried , cross table , generic load these option but not able to create , any one can help here.

12 Replies
micheledenardi
Specialist II
Specialist II

CrossTable(Period,Values,3)

BaseTab_tmp:

LOAD A,

     B,

     C,

     [2016 - Sales],

     [2017 - Sales],

     [2016 - Budget],

     [2017 - Budget]

FROM

[Sample Data.xlsx] (ooxml, embedded labels, table is Source);

BaseTab:

NoConcatenate

Load *,

  left(Period,4) as Year,

  mid(Period,index(Period,'-')+2,len(Period))as Type

resident BaseTab_tmp;

2017-05-29 17_41_56-QlikView x64 Personal Edition - [C__Users_Michele.Denardi_Desktop_test11.qvw_].png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
agni_gold
Specialist III
Specialist III
Author

type should be different columns, like sales and budget

micheledenardi
Specialist II
Specialist II

See attached qvw

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
agni_gold
Specialist III
Specialist III
Author

if u see my attched excel , output require Sales and budget as column

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Two possible solutions:

  • serialize the data and put them in a Pivot table - this is the simplest technique, script-wise
  • go-on and create straight table data in your script using a LOAD and a JOIN

See attachment.

BTW It would be better to load data from the same source as the Excel instead of trying to twist the Excel aggregation back into something that looked like a source table and then doing the exact same thing again in QlikView. Would save you a lot of headaches in the future...

agni_gold
Specialist III
Specialist III
Author

Thanks , but client data is specified in source format , i need this output format in script level , as per requirement from client .

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Don't bother. If you run the script to the end, you'll get your required internal table. See sheet 'Complex' for a straight table showing the target data set. If you want to get that one back into Excel, export it using the XLS icon at the right of the caption or open the menu.

micheledenardi
Specialist II
Specialist II

See attached qvw

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
agni_gold
Specialist III
Specialist III
Author

Sorry Peter , i just saw chart , not script.

Thanks for your great help.