Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

Combine of flags

Hi Folks,

i am facing with issue, where i have the following Problem:

i created 2 flags within my scriptarea, for instance:

 

if(flagtest = 1, 'active', 

if(flagtest = 2, 'not active','')) as MyFlag.

and it does work great, but Question is, how to Combine These 2 flags into one like: All, my expected Output is:

MyFlag consists of 1, 2 and ALL (where ALL = 1 + 2)

Does anybody have any idea how to resolve this issue?

 

thanks a lot in Advance for any responses

Beck

 

Labels (1)
1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

You mean you want the users to have the ability to select ALL and have both Active and Not Active?

Isnt that same as not selecting?

 

But if its mandatory. maybe create a supplementary table like below and use that for selection

 

MyFlagSelectionColumn
ActiveActive
Not ActiveNot Active
ActiveAll
Not ActiveAll

View solution in original post

3 Replies
dplr-rn
Partner - Master III
Partner - Master III

You mean you want the users to have the ability to select ALL and have both Active and Not Active?

Isnt that same as not selecting?

 

But if its mandatory. maybe create a supplementary table like below and use that for selection

 

MyFlagSelectionColumn
ActiveActive
Not ActiveNot Active
ActiveAll
Not ActiveAll
beck_bakytbek
Master
Master
Author

Hi Dilipranjith

 

thanks  a lot for your responce and help

dplr-rn
Partner - Master III
Partner - Master III

no problem. mark as answered and close the thread please