Business Reporter -Using wildcard in a report parrameter
Has anyone come across a way of using a wildcard (‘%’ OR ‘*’) in the report Parameters so the user can select all without having to type the individual values?
They may need to run the report with one value in the parameter or with no filter so it gets everything pulling through.
Any advice is appreciated.
Cheers
Page 1 / 1
Hi,
I normally select ‘%’ as default value in the parameter defintion and then apply condition 'LIKE &Parameter’.
Best regards, Paul
-- Same answer already given
Hi,
I normally select ‘%’ as default value in the parameter definition and then apply condition 'LIKE &Parameter’.
Best regards, Paul
Cheers Paul, twice you have helped me! Does the like statement still allow for multi values if I enable it in the Parameter area ?
I had for got to say there could be 3 scenarios
single value
Multi selected values
everything
As state above I'd imagine it will work.
Thanks for all your help!
Hi,
No, you cannot use multiple values in combination with the like statement. If you use multiple values, you can use the IN condition instead. Combining both conditions (LIKE and IN) would be very useful but isn’t possible as far as I know.
Cheers, Paul
Hi,
No, you cannot use multiple values in combination with the like statement. If you use multiple values, you can use the IN condition instead. Combining both conditions (LIKE and IN) would be very useful but isn’t possible as far as I know.
Cheers, Paul
Ah that’s a shame, Maybe a future feature. Thanks for your help!
Hi!
I think you should be careful with LIKE ‘%’ since LIKE can be very bad from a performance perspective.
BETWEEN can also be bad from a performance perspective. You shoud try to stick with = and IN.
Instead of LIKE ¶meter and default value beeing ‘%’ I would use the “ALL” functionality.
The filter would be IN ¶meter and the default value for the parameter would be ALL.
When using the “ALL” functionality and value the WHERE statement would not be added to the final SQL -statement. There could be a big difference in the performance when leaving out the WHERE statement for the filter instead of having a WHERE statement with LIKE ‘%’.