Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add calculated dimesion in a existed dimension field

In a pivot tabel,  I want to add a calculated item like in a pivot table in excel.

   

MonthAreaProductQttyAmount
ian.15AX12
feb.15AY12
ian.15BX12
apr.15BY12
mai.15AX12
iun.15BY12
iul.15CX12

   

calculated:  B vs A %

 

   

Month
ProductDataAreaian.15feb.15apr.15mai.15
XSum of QttyA1 1
B1
C
= B/ A %1#DIV/0!#DIV/0!0

 

1 Reply
Anonymous
Not applicable
Author

Maybe you can use partial sum instead, and expression will be

if(dimensionality()=2, sum(Qtty),
sum({<Area={B}>}Qtty)/sum({<Area={B}>}Qtty))

See attached