I am trying to create a button that only appears when a filter has been applied by the end user. This is to ensure the user is aware they are not seeing all the data.
My object set always has a value but my filter output value is either ‘no filters’ or the values of my filters that I have applied.
I see there is a conditional visibility on the button widget but I am struggling on how to setup the boolean variables to do this and/or other variables that might be needed to accomplish this. I am most probably looking at this at the wrong angle. So any help would be much appreciated.
If your filter always return a string value like you said, it’s quite simple. You could create a new boolean variable set as a variable transformation with the “is not” string comparison.
You could also workaround by comparing the object count of the unfiltered and filtered object set. The unfiltered object set is the one you use as input on the filter widget
If the count is equal, no filter at all is applied (or rather: no filter selection materialized in a change of data)
For this:
create a new bool variable from variable transformation
Create two object set aggregations, both count just with the two different object sets
Create a is equal comparison and compare both count aggregations
Unfortunately, I can’t seem to get it to work. The current value: No filters is from a pivot table - filter output (selection and interaction) section. If this generates a string value what name is applied, it doesn’t appear on the list of values available. It may just me not applying this correctly so any further help would be much appreciated as this seems a quick way of generating an Boolean value.