cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a filter mandatory?

Will
7 - Data Storage
7 - Data Storage

Hi everyone,

I have a peculiar scenario where we want to make a filter 'mandatory'.

It is a single select filter with a pre-defined value but we don't the users to select none. Is it possible? 

5 REPLIES 5

Will
7 - Data Storage
7 - Data Storage

I was even considering the creation of a plugin where the user could mark the filter as mandatory (= that should contain at least 1 selected value), but I couldn't find a good event to link it to. I would need something similar to 'beforeFilterSelectionChange'... but again, I couldn't find any good event to attach it to.

Will
7 - Data Storage
7 - Data Storage

If the filter is expanded, it's harder for the users to do it. But if it's collapsed (image), it is easily done.

Will_0-1654123760667.png

 

harikm007
12 - Data Integration
12 - Data Integration

Hi @Will ,

Are you looking for something like this?

We can convert the dashboard filter to single select

harikm007_0-1654145803316.png

harikm007_1-1654145808772.png

-Hari

 

Will
7 - Data Storage
7 - Data Storage

Hi @harikm007, thanks for replying.

I thought that was the solution initially, but if you collapse the widget, you can "de-select" it by simply clicking on the value 😕 .

harikm007
12 - Data Integration
12 - Data Integration

Hi @Will ,

Try this solution - add dropdown filter to dashboard and hide corresponding dashboard filter from right side panel.

To add dropdown filter:

https://support.sisense.com/kb/en/article/blox-dropdown-list-as-a-dashboard-filter

https://community-old.sisense.com/hc/en-us/community/posts/360003331234-Wiser-Filter-Widget

 

To hide dashboard filter:

https://support.sisense.com/kb/en/article/hide-filters

 

-Hari