Home Discussions Questions & Answers Troubleshooting Multiple Values feature availability

Troubleshooting Multiple Values feature availability

Avatar photoCustomer May 4, 2021 at 8:10 pm

I have created a new parameter, but the ‘Multiple Values’ checkbox is unavailable. What conditions must be met for Blitz Report to automatically replace the SQL restriction with an IN-clause?

Viewing 6 reply threads
  • Author
    Replies
    • Support May 5, 2021 at 7:42 pm  

      Automated IN-clause replacement is disabled if the parameter SQL text is too complex, or if it uses an unsupported operator (like `>=` or `<`). It requires a simple restriction using `=`, “, `!=`, `like`, or `not like` operators.

    • Avatar photoCustomer May 7, 2021 at 5:47 pm  

      Does the order matter within the SQL restriction?

    • Support May 8, 2021 at 3:05 pm  

      Yes, the order is critical. For the feature to work, it is required to have the table column on the left and the :bind variable on the right side of the comparison operator. A SQL text such as `:bind_variable=column_name` will not work.

    • Avatar photoCustomer May 8, 2021 at 9:03 pm  

      And what about the type of anchor used?

    • Support May 9, 2021 at 6:17 am  

      The multiple values functionality is only available for parameters with anchor styles 1=1 or &lexical. It is not available for parameters using :bind anchors.

    • Avatar photoCustomer May 9, 2021 at 1:09 pm  

      If I use a function like `upper(column_name) like upper(:bind_variable)`, will that prevent the IN-clause replacement?

    • Support May 9, 2021 at 9:23 pm  

      No, you can successfully use functions like `upper(column_name) like upper(:bind_variable)` and the replacement will still work, provided the other conditions are met.

Viewing 6 reply threads
  • You must be logged in to reply to this post.

Login with: