Hi!
On my dashboard there is the dropdown list. I want to exlude its token criteria from search query if default value "notdef" is selected. i.e.:
if("$dropdown_token$" == "notdef")
| WHERE param1 = $param1_token$ AND param2 = $param2_token$
else
| WHERE param1 = $param1_token$ AND param2 = $param2_token$ AND dropdown_param = $dropdown_token$
I tried to use match replaceing "notdef" by empty sting while "notdef" is selected:
| eval dropdown_req = if("$dropdown_token$" == "notdef", "", "$dropdown_token$")
| WHERE param1 = $param1_token$ AND param2 = $param2_token$ AND match(dropdown_param, dropdown_req)
, but values of $dropdown_token$ include the sign "*" (e.g. "*A") and it doesn't work in regex in match().
Thank you!
... View more