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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
muniyandi
Creator III
Creator III

Listbox value filtration

Hi All,

I have TestCase1,TestCase2 , 2 column have same value .  TestCase1 list box selected value, not include in the TestCase2 listed value. TestCase2 should filter the TestCase1 select value.

Kindly find the attachment file.

1 Solution

Accepted Solutions
perumal_41
Partner - Specialist II
Partner - Specialist II

12 Replies
simenkg
Specialist
Specialist

Your tables are not connected.

Test_Case:

LOAD * INLINE [

    TestCase1,TestCase2

    AAA, AAA

    BBB, BBB

    CCC, CCC

    DDD, DDD

    EE, EE

    F, F

    GGG, GGG

];

muniyandi
Creator III
Creator III
Author

Hi Simen,

Thanks for reply,

I am  using list box for enable disable condition purpose. you case filtered only matched values.

i expected result is not equal value.

Kindly refer my attached image file.

Thanks,

Muni

simenkg
Specialist
Specialist

In your second listbox do the following:

Select Expression as your field and enter the expression:

=Aggr(only({$<TestCase2=E(TestCase1)>}TestCase2),TestCase1)

muniyandi
Creator III
Creator III
Author

Hi Simen, i tried your expression in the listbox ,it's not working ,

can you post , QVW file.

Not applicable

Hi

Try like this

=Aggr(only({<Testcase2-={Testcase1}>}Testcase2),Testcase1)

simenkg
Specialist
Specialist

See attached file

The expression that I get to work:

=Aggr(only({1<TestCase2=E(TestCase1)>}TestCase2),TestCase1)

muniyandi
Creator III
Creator III
Author

HI simen,

Both are different filed. different table. i can select testcase1 ,  testcase2 at the time,or select testcase 1 only. or testcase 2 only

Ex: Sql have in condition. not In condition here possible .how to handle in the expression

muniyandi
Creator III
Creator III
Author

Hi Nimal,

Testcase 2 Not equal to testcase1 selected value. otherwise show full value in the list

perumal_41
Partner - Specialist II
Partner - Specialist II

Hi Muni,

Try this