Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
surajap123
Creator II
Creator II

Total column in pivot table

Hi Experts,

I have pivot table with a dimension set to horizontal.

I want the TOTAL column by counting all the YES values for both dimensions. I did this by enabling show partial sum on the 2nd dimension, how how can i count(BranchNo) ?

Also, i want this TOTAL column to sit vertically beside the Location dimension. I am not sure how to achieve this.

Please help.

6 Replies
CarlosAMonroy
Creator III
Creator III

Hi Suraj,

Maybe you can try the following expression, it will sum the Y and N.

Yes:

if(Qty = 'Y',count( Qty))

No:

if(Qty = 'Y',count( Qty))

Hope that helps.

Carlos

surajap123
Creator II
Creator II
Author

Hi Carlos,

Thanks for your reply.

I want only Y and N for the chart expressions.

I only want the count in the TOTAL column.

krishnacbe
Partner - Specialist III
Partner - Specialist III

Hi,

Please find the attached. hope that helps

surajap123
Creator II
Creator II
Author

I think i didn't explain my requirement properly.

I don't want to change my existing expressions in the chart.

I only wan to have a new column that tells the total count of 'Y' values, beside the location column.

!yes.PNG

Thanks.

vishsaggi
Champion III
Champion III

something like this?

Capture.PNG

sunny_talwar

May be like this?

=Location & ' Count: ' & Aggr(Count(DISTINCT{<Qty = {'Y'}>}[Branch No]), Product, Location)

Capture.PNG