Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
shruthibk
Creator
Creator

how to add rows?

Hi all,

i got requirement to find the total.where the total will be sum(product b and product C)  but i have product a also ,how can i achieve this in pivot table?here the fields value a,b,c coming from different qvd's which i taken into same field.plz help me to achieve this asap.

i have to build the same chart as showing in excel,

plz find the sample data

1 Reply
Gysbert_Wassenaar

You can't add rows to a table in a pivot table. You could abuse the partial sums to use the total line to show two values. Enable the Partial Sums option of the Product dimension and use an expression like:

If(Dimensionality()=0, sum({<Product={'b','c'}>}Value) & chr(10) & num(sum({<Product={'a'}>}Value)/sum({<Product={'b','c'}>}Value),'0.0%'),sum(Value))


talk is cheap, supply exceeds demand