Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
sohb2015
Contributor III
Contributor III

Sum(Total ) with condition

Hello All,

I am trying to create an expression:

sum(total{<product={A}>}sales) and it's working.

But I want to put another dimension in the table i.e. country. For example, I want to display my sales data for each country for product A.

So, the expression will be like below:

sum(total{<country,product={A}>}sales) but this does not work.


Can you anyone help me with this.


Thanks

2 Replies
sunny_talwar

May be this:

Sum(TOTAL <country> {<product = {'A'}>} sales)

MayilVahanan

Hi

You can simply use like this

Dim: Country, Product
Exp: sum({<country=,product={A}>}sales) or sum(total{<product={A}>}sales)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.