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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Aggr and Total Function

I have the following pivot in qlikview.

JSQtyUnit costAmount
JS-001101001000
JS-001151101650
JS-001201653300
JS-002253308250
JS-002153304950
JS-0022020400
JS-0022020400
JS-0032514350
JS-00326561456
JS-00367231541
JS-00389988722

Column Amount is Output or calculated field (i.e unit cost * Qty)

I want another table as follows:

JS-0015950
JS-00214000
JS-00312069

5950 is the sum total of amounts of JS-001. because it is a calculated field, i am not able to prepare another table with the output from the previous table. Can anyone help me. it will be great if i get the answer in qlikview file.

2 Replies
jerem1234
Specialist II
Specialist II

Use only the field JS as a dimension in the straight table. Then use something like sum(Amount) or whatever you have for the expression.

Maybe the expression can be:

sum(aggr(Qty*[Unit cost], JS, Qty, [Unit cost]))

Hope this helps!

Edit: You can also move the calculation of Amount in the script, so it does not need to be calculated in the dashboard. Maybe a field like: Qty*[Unit cost] as Amount

alexandros17
Partner - Champion III
Partner - Champion III

this is your changed document:

let me know