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: 
marakud971
Contributor III
Contributor III

How to calculate total amout of sales in a textbox ?

Hi all !

I hope you are well.

I want to display the amount of my sales in a textbox object.

Please look at the picutre in attachment.

I would like  to calculate for each ID : col nb *  col €
and obtain the sum of these calculations in a textbox

Thanks !

1 Solution

Accepted Solutions
rubenmarin

Hi, one option is having a field in script that multiplies both fields when loading so you only need a sum of this new field.

 

Other option without script modification:

sum(aggr(nb_expression*€_expression), ID)

View solution in original post

1 Reply
rubenmarin

Hi, one option is having a field in script that multiplies both fields when loading so you only need a sum of this new field.

 

Other option without script modification:

sum(aggr(nb_expression*€_expression), ID)