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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pivot Table

Hi,

I have this entry data

MonthDataTypeValue1Value2
01R101
01O121
02R111
02O152

and I would like to obtain this result

MonthTotal0201
DataTypeRO%RO%RO%
Value1212777,78%111573,33%101283,33%
Value22366,67%1250,00%11100,00%

where the rows Value1 and Value2 are expresions and the colum % is an aditional value of the dimension DataType

Value1 = sum(Value1)                    in % column sum({<DataType={'R'}>} Value1) / sum({<DataType={'O'}>} Value1)

Value2 = sum(Value2)                    in % column sum({<DataType={'R'}>} Value2) / sum({<DataType={'O'}>} Value2)

but the result obtained is this

MonthTotal0201
DataType RORO
Value14811151012
Value251211

Any suggestions?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The partial sum will only show one sum. It can't split this per value of other dimensions. You can try creating an additional field that also contains Total as a value. See attached example.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

The partial sum will only show one sum. It can't split this per value of other dimensions. You can try creating an additional field that also contains Total as a value. See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Gysbert, thank you very much for your answer. This is a way to solve one of my problems.