Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Add Multiple Total Column at the end of Each Fiscal year

I have three Dimension: Country, State, Month-Year and two Measures Quantity, Price.

i have used Pivot Table in QlikView to Show Country & State, For Month i have dragged above expression so that each Month-Year gets added it shows as another Column, Below Month-Year i will be showing Quantity , Price. this what i have already achieved.

My Query is that now i want to add three More Columns (YTD Volume, YTD Value, YTD Contribution) at the end of each Fiscal Year.  which means Quantity & Price will keep repeating for each Month year. and the new three columns (YTD Volume, YTD Value, YTD Contribution) should be displayed at the end of each Fiscal year.

How is it possible?

i have attached sample of what i am expecting the table to look like

1 Solution

Accepted Solutions
veidlburkhard
Creator III
Creator III

Hi Viv,

In your script you add a data island table 'Dimension':

RawData:

CrossTable(Date, Data, 3)

LOAD Country,

     State,

     City,

     [42461],

     [42491],

     [42522],

     [42826],

     [42856],

     [42887]

FROM

TestPivot.xlsx

(ooxml, embedded labels, table is Tabelle1);

NoConcatenate

Final:

LOAD

Country,

State,

City,

Year(Num#(Date, '#####')) as Year,

Date(Num#(Date, '#####'), 'MMM YY') as MonthYear,

Data as Volume

Resident RawData

;

DROP Table RawData;

Dimension:

LOAD * INLINE [

    Dim

    1

    2

    3

];

After reload you can build your pivot table like this:

TestPivot.jpg

The trick is to use a calculated dimension with Pick and Dim and also the Expression (you can find it in the caption of

the pivot table)

Hope this helps

Burkhard

View solution in original post

3 Replies
veidlburkhard
Creator III
Creator III

Hi Viv,

In your script you add a data island table 'Dimension':

RawData:

CrossTable(Date, Data, 3)

LOAD Country,

     State,

     City,

     [42461],

     [42491],

     [42522],

     [42826],

     [42856],

     [42887]

FROM

TestPivot.xlsx

(ooxml, embedded labels, table is Tabelle1);

NoConcatenate

Final:

LOAD

Country,

State,

City,

Year(Num#(Date, '#####')) as Year,

Date(Num#(Date, '#####'), 'MMM YY') as MonthYear,

Data as Volume

Resident RawData

;

DROP Table RawData;

Dimension:

LOAD * INLINE [

    Dim

    1

    2

    3

];

After reload you can build your pivot table like this:

TestPivot.jpg

The trick is to use a calculated dimension with Pick and Dim and also the Expression (you can find it in the caption of

the pivot table)

Hope this helps

Burkhard

Anonymous
Not applicable
Author

You are simple aesome

Thank you

Anonymous
Not applicable
Author

i meant *awesome*