Astroraf
08-09-2024Data Pipeline
Can I remove a predefined filter in Sisense
Am I able to remove a predefined filter within Sisense that would disallow my viewers from choosing this option? I am using a date filter and the options in the date filter are Last, This, and Next. ...
- 08-12-2024
Hi Astroraf ,
Can you try the following?
prism.on('dashboardloaded', (args, dash) => { const elem = document.createElement('style') elem.innerText = `.gsoNqAmwurDnBIjywenH:nth-child(1) { display: none; }` document.head.appendChild(elem) })This removes the 'Last' item by hiding the associated container in CSS.
It works on my side L2024.1 - but would be mindful to check if any changes to the class name in future (should include in any future version upgrade regression testing in case you need to change the reference).
Result:
Thanks,
Daniel
RAPID BI
daniel.ranisavljevic@rapidbi.com.au
RAPID BI - Sisense Professional Services | Implementations | Custom Add-ons