Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Flipflop
Contributor III
Contributor III

Apply a filter on two charts with 2 different state

Hi,

I'm trying to apply a filter on two charts and each of my chart is in an alternative state (let say DATA1 and DATA2). I have some other filters, and these filters are either in state DATA1 or DATA2.

My two charts are the same, the only difference is the alternative state (one with DATA1 and the other with DATA2).

I want a filter which is able to filter the two charts at the same time. I try to apply GetFieldSlections in the chart expression, but it doesn't seem to work.

How can i do that please ?

Labels (3)
3 Replies
panosalexand
Creator
Creator

Hi,
Try this

if(index(GetFieldSelections(DATA1),'XXX')>0
 and  index(GetFieldSelections(DATA2),'XXX')>0 ,yourexpression

Flipflop
Contributor III
Contributor III
Author

In the chart ? I don't understand theGetFieldSlections(DATA1), because DATA1 is an alternative state, not a field.

panosalexand
Creator
Creator

I'd say to share your app or just upload some screenshots to understand what you are trying to achieve.