Skip to main content
Question

How to create a "clear filters" button using set variables?

  • April 3, 2024
  • 3 replies
  • 24 views

I would like to create a component button within view that clears all filters that are currently applied. I see within the button component you can set a variable based on existing filters but what would I write in the set value to reset the filter?

 

image

3 replies

  • Author
  • Level 1
  • April 3, 2024

Note: This is within Analysis, not View


manuel.wetze
Level 9
Forum|alt.badge.img+8

Hi Jack,

it depends on which filters you are talking.

 

Let's say you are using "behind the scenes" filters by utilizing a variable in e.g. the Sheet filter. You then can manipulate this variable with the Button to set its value to NULL.

Then this "variable-filter" is being disabled.

 

However this does not get rid of any selections that where made by the user.


dennis.pflug
Level 10

Hi Jack,

 

when you want to remove / undo filters someone has set within his session there is the possibility to make use of a "Button" and select Button Action "Delete selections".

 

By clicking on this button all set filters on header line will be removed.

 

If filtering is done by using variables you can try it the way Manuel has described.

 

BR

Dennis