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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Charts - two conditions in if-statement

Hi,

I have to build many charts using different conditions, displayed side by side.
It works as long as I can use only one.

Data: 2014-2017

Dimension =if(match([Year], '2017'), Country)
Formula =sum(if(match([Year], '2017'), Duration))

I want to display only Year '2017' AND Color 'Red'

Cheers,

Chris

2 Replies
sunny_talwar

May be try this

Dimension

Country

Exp:

Sum({<Year = {2017}, Color = {'Red'}>}Duration)

Anonymous
Not applicable
Author

In addition - If you want to untie the selected criteria: you need to do

SUM({1<Year = {2017}, Color = {'Red'}>} Duration)