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

Expression problem

My table A's mainid is associated with table B's mainid, resulting in the PharmaBatchNo column of table B. The result I want to display is B PharmaBatchNo,SUM(A.ContractAmount), How to write an expression based on the number of rows in Table B?SUM (a. ContractAmount) should be displayed on each line.

mingyu_0-1734581699429.png

mingyu_1-1734581746503.png

 

 

Labels (2)
1 Reply
Vegar
MVP
MVP

You could look into the concept of sum( TOTAL <FIELD> VALUE_FIELD).

 

I will not be able to tell you in detail how ro do it but try something like this.

sum( TOTAL <ProductAPIContractNo> ContractAmount).