Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
salto
Specialist II
Specialist II

Pivot Table question

Hello,

I have a pivot table in which I would like to add the '%' line:

ItemValueHeader 3
Item Asum(Amount) = 375
Item Bsum(Amount) = 125
Item Csum(Amount) = 100
%(Item C) / (Item A)
Item Dsum(Amount) = 250

Is it possible, in the pivot table, to get the value of items A and C to perform the calculation?

Thanks in advance for your help.

4 Replies
Anil_Babu_Samineni

How many Items you have?? Will you able to provide some data set to check?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
arvind_patil
Partner - Specialist III
Partner - Specialist III

Agree with you require sample data.

Thanks,

Arvind Patil

rahulpawarb
Specialist III
Specialist III

May be this:

Data:

LOAD * INLINE [

Item, Value

Item A, 375

Item B, 125

Item C, 100

Item D, 250

];

Concatenate

LOAD '%' AS Item,

     Num(Sum(If(Item='Item C', Value, 0)) / Sum(If(Item='Item A', Value, 0)), '#,##0.##%') AS Value

Resident Data;

Regards!

Rahul Pawar

qv_testing
Specialist II
Specialist II

PFA,