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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
coloful_architect
Creator II
Creator II

created a flag / panel filter

HI guys

I want to create a flag based on a existing flag, either at load script or UI. 

see the example below.

already have a flag A to mark yes or no. Now I want to have a enhanced flag to filter out all category with yes but without Bad Beverage and Fruit. do not care Meat

to put another way, I want to have a flag to filter out : Category with flag A  - Bad Fruit - Bad Beverage

not sure if we can do at UI, but at load script, I tried 

if (Match(Flag,'Yes') and Match ('Category', Fruit , Beverage) and Not Match (Quality, 'No') as "new Flag"

but does not return me good result. any idea?

CategoryFlag AQuality Units
FruitYesGoodxxx
FruitYesBadxxx
BeverageYesGoodxxx
BeverageYesBadxxx
MeatYesBadxxx
MeatYesBadxxx
MeatYesGoodxxx
2 Solutions

Accepted Solutions
rubenmarin

Hi for that data table it could be:

If(Match([Flag A],'Yes') and Match (Category, 'Fruit', 'Beverage') and Match (Quality, 'Bad'), 1, 0) as "new Flag"

View solution in original post

Sweta_Sharma
Former Employee
Former Employee

Hi @coloful_architect ,

You can achieve this by using below expression in 'Flag A' dimension -
if ((Category='Fruit' OR Category='Beverage') AND Quality='Bad','Yes','No')
PFA app for your reference.

Cheers!

If the issue is solved please mark the answer with Accept as Solution

View solution in original post

2 Replies
rubenmarin

Hi for that data table it could be:

If(Match([Flag A],'Yes') and Match (Category, 'Fruit', 'Beverage') and Match (Quality, 'Bad'), 1, 0) as "new Flag"

Sweta_Sharma
Former Employee
Former Employee

Hi @coloful_architect ,

You can achieve this by using below expression in 'Flag A' dimension -
if ((Category='Fruit' OR Category='Beverage') AND Quality='Bad','Yes','No')
PFA app for your reference.

Cheers!

If the issue is solved please mark the answer with Accept as Solution