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: 
umartareen
Creator II
Creator II

Expression for Total in Set Analysis

Hi,

I want to find the total value of the expression (Quantity * Price) and display it in the Gauge-LED chart. What would be the expression to do so ? Please find attached.

Thanks in advance

Regards

Umar

3 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

sum(Total Quantity * Price)

Regards

ASHFAQ

umartareen
Creator II
Creator II
Author

Thank You Ashfaq, but it still didn't produce the output.

Not applicable

Have you tried something like:

=SUM(AGGR(SUM(SUM([Quantity]) * [Price]),[ProdName]))

This will work if your product is always sold at the same price. If the price can vary you want to add in a dimension with appropriate granularity, something like:

=SUM(AGGR(SUM([Quantity] * [Price]),[ProdName],[Order#]))