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

ValueList with conditional values

Hi everybody,

I'm trying to use a Valuelist to fill a Listbox, but I need to add a conditional value to my list.

My formula is something like:

=ValueList('Alpha', 'Beta', If(GetSelectedCount(myField)>0,'Gamma','Delta') )

Does the ValueList allow such an expression? How can I write it?

Tks

A

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

Create a variable with the expression

vTest = If(GetSelectedCount(F1)>0,'Gamma','Delta')

Now use this variable in

=ValueList('Alpha', 'Beta', vTest )

Check attached file.

Regards,

Jagan.

View solution in original post

3 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi,

Create a variable with the expression

vTest = If(GetSelectedCount(F1)>0,'Gamma','Delta')

Now use this variable in

=ValueList('Alpha', 'Beta', vTest )

Check attached file.

Regards,

Jagan.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Yes you can use like that.

Celambarasan

Not applicable
Author

Creating a variable is always the easyest shortcut...

thanks jagan

bye

A