Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot table / Additional row.

Hello all

I have the following PL data.  I wanted to create a new CAT value called Gross Margin. But this value does not exist in the Excel document. How can I create this row in Qlikview without tampering with the Excel Document? 

PL.JPG

I want to use a pivot table to display my results.

6 Replies
Not applicable
Author

You can go to the "Presentation" tab of your pivot table properties. From there Select your dimension (PL Item in this instance) and click 'Show Partial Sums'. This will give you a sum total of all the sales entries.

Not applicable
Author

Hi Jacob

That I agree, but its very cosmetic. As you can see in the example below, if I only have Sales and COS, I get the correct Gross Margin value. However, if I include Heads, the Gross Margin value is incorrect.

Isn't there a way of creating the calculations and physically having a line called 'Gross Margin' rather than having it as a Total?

PL.JPG

PL.JPG

saumyashah90
Specialist
Specialist

Hi Sabah,

Please check my demo qvw.

Not applicable
Author

Hi Saumya,

Thanks for that reply.

Ok - so i'm working off from your idea, the first table I have tried to create the calculation for the Gross Margin, which is as follows:

if( CAT = 'COS', Sum({<CAT={'COS'}>} Sales),

if( CAT = 'Sales', Sum({<CAT={'Sales'}>} Sales),

if( CAT = 'Gross Margin', (Sum({<CAT={'Sales'}>} Sales) + Sum({<CAT={'COS'}>} Sales)),'')))

test.JPG

But, the value for Gross Margin still appears as zero.

Can you guide me?

saumyashah90
Specialist
Specialist

If this is your final requirement ,you where going on wrong path

Check this qvw

Not applicable
Author

Hey again,

Again, this goes back to my previous query as you can see in the example below, if I only have Sales and COS, I get the correct Gross Margin value of 383977.

sales.JPG

However, if I select 'Heads' for example, I don't want this to be a part of my Gross Margin total. Thats a seperate value.

test.JPG

In effect, I am looking for a result like this in Qlikview