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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
israrkhan
Specialist II
Specialist II

Need help in Cross Table utilization

Hi Guys,

i am trying to use cross table in a complex excel file.(for me its complex )

my excel sheet format is like below table, WITH SAMPLE DATA..

for each year i have 12 column and two extra column as Actual and Budget for that year.

Country

(Dimension)


Dealer

(Dimension)

Jan-2011Feb-2011upto Dec-2011

Actual

2011

Target 2011Jan-2012Feb-2012upto Dec-2012Actuall 2012Target 2012Jan-2013Feb-1013Mar-2013

upto

Dec-2013

Actuall

2013

Target

2013

UKAAA5006635610002000355546
USABBB456354520030034354
CHINACCC86567633004005634

Questions.

1) i want to load Country, Dealer, and Jan-2011 up to Dec-2011, and Actual 2011 and Budget-2011 as a separate column, should not be in cross table. how to tell qlikview to stop cross table on Dec-2011 column.

2) How to read Country, Dealer and then ignore all column for 2011, and start from jan- 2012 upto dec-2012 and then Actuall and Budget 2012 as a separate column. is it possible without modifying the excel document.

Your comments will be highly appreciated.

THANKS IN ADVANCE..

Khan

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Not sure that I understand you completely. For this type of data I would use something like this to load:

Sales:

LOAD

     Num(SubField(Period, ' ', -1)) As Year,

     SubField(Period, ' ', 1)) As PeriodType

;

Crosstable (Period, Sales, 2)

LOAD * From mySourceExcel.xlsx (...);

This adds a year field to the crosstable loaded results. Now you can filter using Year, but I would probably do this in the front end and not in the script.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
israrkhan
Specialist II
Specialist II
Author

Thank you for your reply.

but how to handle a situation like,

let say i have 1st column as dimension and 2nd to 14 as data(cross table) and then again 15 to 18 dimensions

so how could i tell qlikview that load as cross table up to 14, and load agian 15 to 18 as dimension.

if it is not clear kindly ask me...