Lisha
05-30-2022Cloud Apps
Edit Widget Script Sisense to display NA for specific condition
I want to add a custom script for my widget so that whenever user selects date range spanning more than 1 year, the widget (gauge indicator) should display NA for both value and secondary measure.
...
- 06-02-2022
Hi Lisha ,
Just trying to understand TOP 1 filter (date field converted to integer) - when your secondary measure was empty, you were using a measure to count unique number of fiscal years and added the a script, right? Does it still working if you replace your current secondary measure with previous one?
Also please try 'ALL' function with integer version of date field in the formula.
if(([# of unique Years in Date], ALL([Integer Date Field]))>1, NULL, SUM([Actual]))
Another solution would be to bring the TOP 1 filter (date field converted to integer) inside the formula and use CASE statement
-Hari