Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
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

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

May be this:

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

MayilVahanan
MVP
MVP

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.