Skip to main content
Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Goncalo
Contributor III
Contributor III

Use a button to select and deselect values in a filter

Hi Everyone,

I am trying to create a button to more easily select and deselect a group of values within a Field.

- Field I need to filter: 'Procurement Area'

- Values within the field 'Procurement Area' I want to select: 'Corporate', 'Operations', 'R&D'

  • If the button is clicked, the label should change to 'Manageable Spend' and the 3 areas above should be selected,
  • If it is clicked again, the filter should be cleaned and the label of the button should change to 'All Areas'.

Thanks in advance for your support.

 

Labels (3)
1 Solution

Accepted Solutions
Goncalo
Contributor III
Contributor III
Author

Thank you both for your suggestions.

I ended up using a button with the following details:

  • Action "Toggle Field Selection"
  • Field "Procurement Area"
  • Value ='("Corporate"|"Operations"|"R&D")'

This toggles between selecting and deselecting the desired options.

View solution in original post

3 Replies
vinieme12
Champion III
Champion III

Refer this video

https://www.youtube.com/watch?v=5Ws7ws2aSWk

https://help.qlik.com/en-US/sense/February2022/Subsystems/Hub/Content/Sense_Hub/Visualizations/Butto...

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Aditya_Chitale
Specialist
Specialist

@Goncalo , I guess you will have to use 2 separate buttons. one for field selection and one for clearing field values. 

Goncalo
Contributor III
Contributor III
Author

Thank you both for your suggestions.

I ended up using a button with the following details:

  • Action "Toggle Field Selection"
  • Field "Procurement Area"
  • Value ='("Corporate"|"Operations"|"R&D")'

This toggles between selecting and deselecting the desired options.