cancel
Showing results for 
Search instead for 
Did you mean: 

Input Parameter with no Value

former_member193552
Participant
0 Kudos

Input Parameter with No Value

Issue:

I have input parameter IP_Div. If I input division value? I get out put in HANA data preview. If I decide to leave input parameter blank and expect retrun results for all divisions, I don’t get any record. It seems it does not like me leaving input parameter blank.


Please see attached screen to see how input parameter filled returns value but leaving it blank does no return any value.

But When I Want to leave it blank to see data for all divisions? I don't get any records.

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor

Hello Faisal,

I think you have "just" a simple filter expression which compares your parameter IP_Div against your Division column. In case of an empty division parameter that filter expression is not ignored and all values are filtered out, cause no one is blank.

To get your values you have to adjust your filter expression, to consider that case. For instance like following:

if('$$IP_Div$$' = '',match("Division",'*'),match("Division",'$$IP_Div$$'))

I used "Division" as your column name (if you renamed it for the output please adjust it to the name you have available in the data source).

Regards,
Florian

Answers (2)

Answers (2)

0 Kudos

Hello, you can use a variable type parameter, this will comply with all cases, whether it has value or not. But it is only applicable in the semantic layer, that is, you will not be able to make filters in the projections, this can affect the performance.

former_member193552
Participant
0 Kudos

Hi Florian, if we have input parameter with multiple input values? then will we need to change else condition with "In" instead of Match?

pfefferf
Active Contributor
0 Kudos

Yes. Match handles only one argument.

0 Kudos

Could you make it work with input parameter with multiple entries? Thanks!