Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Multiple Header Cross table load

Hi Experts,

I have a source excel file :

Required format :

I want to load this source file into  Qlikview as :


I am trying to do this using Crosstable but no success.

Please help

Thanks

BKC

1 Solution

Accepted Solutions
Roop
Specialist
Specialist

MainSource:

LOAD A,

     B,

     C,

     D,

     E,

     F,

     G,

     H,

     I,

     J,

     K,

     L,

     M,

     N

FROM

Crosstable_Sample.xlsx

(ooxml, no labels, header is 4 lines, table is Sheet2);

CrossTable:

LOAD

  A as AppType,

  B as AppName,

  '01/01/2015' as AppDate,

  C as Sched,

  D as Avail,

  E as AvailPct

Resident

MainSource;

Concatenate LOAD

  A as AppType,

  B as AppName,

  '01/02/2015' as AppDate,

  F as Sched,

  G as Avail,

  H as AvailPct

Resident

MainSource;

Concatenate LOAD

  A as AppType,

  B as AppName,

  '01/03/2015' as AppDate,

  I as Sched,

  J as Avail,

  K as AvailPct

Resident

MainSource;

Concatenate LOAD

  A as AppType,

  B as AppName,

  '01/04/2015' as AppDate,

  L as Sched,

  M as Avail,

  N as AvailPct

Resident

MainSource;

drop table MainSource;

View solution in original post

5 Replies
awhitfield
Partner - Champion
Partner - Champion

Hi there,

check out this post!

http://community.qlik.com/thread/32556

Look like what you want!!

Andy

buzzy996
Master II
Master II

try this,

1. load ur excel data as it is.

2. use pivot table

3. drag ur month column as row,tht will bring ur expected result!

Anonymous
Not applicable
Author

Shiva ,

This will not solve my problem. If I want to sum(Down)  for all the month that can not be achieved without loading data in qlikview as given format .

buzzy996
Master II
Master II

find attached and change the lable accordingly in rows and columns

Roop
Specialist
Specialist

MainSource:

LOAD A,

     B,

     C,

     D,

     E,

     F,

     G,

     H,

     I,

     J,

     K,

     L,

     M,

     N

FROM

Crosstable_Sample.xlsx

(ooxml, no labels, header is 4 lines, table is Sheet2);

CrossTable:

LOAD

  A as AppType,

  B as AppName,

  '01/01/2015' as AppDate,

  C as Sched,

  D as Avail,

  E as AvailPct

Resident

MainSource;

Concatenate LOAD

  A as AppType,

  B as AppName,

  '01/02/2015' as AppDate,

  F as Sched,

  G as Avail,

  H as AvailPct

Resident

MainSource;

Concatenate LOAD

  A as AppType,

  B as AppName,

  '01/03/2015' as AppDate,

  I as Sched,

  J as Avail,

  K as AvailPct

Resident

MainSource;

Concatenate LOAD

  A as AppType,

  B as AppName,

  '01/04/2015' as AppDate,

  L as Sched,

  M as Avail,

  N as AvailPct

Resident

MainSource;

drop table MainSource;