on 2022 Aug 25 12:14 PM
Dear HANA Experts,
I am using the input parameter in my calculation view. My requirement is, if we pass blank value to input parameter, the system is bringing zero records. I want to show all records, when the input parameter field is Blank. To achieve this, i tried the below filter expression in projection. It is working as expected. But it takes 10 minutes to bring less records.
Step 1 : I have created the input parameter (IP_DIST_CHAN) with constant and given the VALUE as BLANK.
Step 2 : Written the below if condition in Filter of the projection.
if('$$IP_DIST_CHAN$$' = '',match("0DISTR_CHAN",'*'),match("0DISTR_CHAN",'$$IP_DIST_CHAN$$'))
Please suggest, how to achieve this in different way to improve the performance.
Thanks.
You can use LIKE Operator Instead of = in your where clause.
Then always contatenate your input parameter with wild card * or %
Regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.