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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Applying more than one condirion in chart expression

I have a chart with following expression

sum({$<Year={$(vThisYear)}>}SalesValue)

It currently outputs a single line with total sales for this year. I want to show additional lines by breaking the total sales down by Region ie add a second condition to the other lines eg where Region = 'Asia'

Can someone please help out with the code

Thanks, Rainer



2 Replies
Not applicable
Author

Hi Rainer,

Plz see attachment for the solution.

Formula shall be like this:



Sum

({<Year = {"2001","2002","2003","2004","2005","2006"},Region = {"A"}>}Sales)

Sincere regards,

Happy Thoughts



Not applicable
Author

Thankyou very much. It did the trick.

I don't understand the positioning and grouping requirement of the '{}' and the '<>' but I guess it doesn't matter.

If I add a further parameter then I would the comma before the '>' and enclose the values for the field within the '{}' eg sum({$<Year={$(vThisYear)},Region={'Ade'},ProductGroup={'Fruit'},SalesMan={'Jackson'}>}SalesValue)

Thanks again.

/Rainer