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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
michaeldburt
Partner - Contributor III
Partner - Contributor III

aggregating a column

Hello everyone-

I'm trying to create a text object that will aggregate a column in a table.  The column is an expression that is creating totals for certain items.  I want to only the show the total for ALL items in the text object.  I've tried using the aggr function with little success.

I am trying to calculate the following:

((Standard * Actual) / Frozen) * Actual Cost

The calculation would be for each item (which has a specific value for each field), which is what I used in my aggr, but it wouldn't return any results.  Any ideas?

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

sum(((Standard * Actual) / Frozen) * [Actual Cost])


or


((sum(Standard * Actual)) / sum(Frozen)) * sum([Actual Cost])


or



sum((Standard * Actual) / Frozen)) * sum([Actual Cost])


or


((sum(Standard) * sum(Actual)) / sum(Frozen)) * sum([Actual Cost])


talk is cheap, supply exceeds demand