0

I have have setup a parameter of type dropdown to be able to select the log level like this: Query parameter

Then I try to use it in my query like this: enter image description here

But I have the following error because he is not able to cast it as int apparently. Error

After that they are probably some easier option to filter on severtityLevel.

Regards,

Kapoue
  • 847
  • 2
  • 11
  • 15

1 Answers1

0

if the values truly area numbers in the content, in the parameter settings you can change the "quote with" section above in your screenshot to not quote the values when generating the query:

quote with

you can set "quote with" to be blank, and you'd get

in (1, 2, 3) instead of in ('1', '2', '3')

the other option is to change your query to do something like where tostring(severityLevel) in ({level}) so that your column is converted to a string before the in comparison takes place.

John Gardner
  • 24,225
  • 5
  • 58
  • 76