Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Not applicable

Creating a custom dynamic with buttons - select multiple fields

Hello,

I've:


3 buttons;
1 Field;
 

  • The Button 1 defines the Field to Value 1
  • The Button 2 defines the Field to Value 2
  • The Button 3 defines the Field to Value 3

    What I’m trying to do is:

    If I press Button 1 and next press Button 2 and next press Button 3 I will have
    Field = (Value 1 | Value 2 | Value 3)
    If I press Button 1 again I will have
    Field = (Value 2 | Value 3)
    If I press Button 3 again I will have
    Field = (Value 2)

Are you seeing the logic?

I’ve something like this for the Action in first button:

=IF(GetSelectedCount
(Field)=0,
Field=1,
if(GetSelectedCount(Field)>0,
Week='('& 1 & GetFieldSelections(Field) & ')'))


Thanks!

1 Solution

Accepted Solutions
MVP & Luminary
MVP & Luminary

Re: Creating a custom dynamic with buttons - select multiple fields

Add a Toggle Select action to each button instead to toggle on and off the selection of the values.


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Chanty4u
Esteemed Contributor III

Re: Creating a custom dynamic with buttons - select multiple fields

=IF(GetSelectedCount

(Field)=0,
Field=2,
if(GetSelectedCount(Field)>0,
Week='('& 1 & GetFieldSelections(Field) & ')'))

Not applicable

Re: Creating a custom dynamic with buttons - select multiple fields

Hello,
Thanks for your response, but

Can't getting what I want

MVP & Luminary
MVP & Luminary

Re: Creating a custom dynamic with buttons - select multiple fields

Add a Toggle Select action to each button instead to toggle on and off the selection of the values.


talk is cheap, supply exceeds demand

View solution in original post

Highlighted
Chanty4u
Esteemed Contributor III

Re: Creating a custom dynamic with buttons - select multiple fields

Hi Gysbert ,

can u explain how toggle works?  what it exctly?

Not applicable

Re: Creating a custom dynamic with buttons - select multiple fields

Hello Gysbert,

Thank for your response. I never use Toggle Select. What I'm reading, this allows me to unselect the value. But I'm getting confuse about how I can use them to select the values...

Thanks for your help

Not applicable

Re: Creating a custom dynamic with buttons - select multiple fields

I already got It

I create a Trigger that select all possible values to the field, then on each button I add the following action which deselect each value.

Capture.PNG