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

SUM Column in text field

Hi all,

Short question, I'm trying to calculate the total of an expression. The expression is positioned in an pivot table. How can i create a SUM of the expession in a textfield outside the pivottable?

Inside the table i use the following: =sum(Amount)*[UnitValue]

The goal is to sum the total hours in the data show in the table in a text field next to the table. look at the example below

NameProjectnumberUnitUnitvalue
AmountTotal in hours
David126456345612Hour11212
Mark312413534634Day8432

How can i Sum the Total in hours column?

Kind regards,

Marco

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

=Sum(Aggr(sum(Amount)*[UnitValue], Name, ProjectNumber, Unit))

Hope this helps you.

Regards,

Jagan.

View solution in original post

2 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

=Sum(Aggr(sum(Amount)*[UnitValue], Name, ProjectNumber, Unit))

Hope this helps you.

Regards,

Jagan.

Not applicable
Author

Thanks alot for your help!