Dear all,
In hana studio, I build two input parameters:"Year" and "Month"
And I put the two parameters as filters in calculation view,
There are two cases,
one case, I want to view the data on date 2016-03, I just input year(2016) and month(03) in the filter, the result is ok
second case, I want to view the whole year data, such as year 2016, I just input year(2016) in the filter, do nothing in the filter month, there is nothing
How to solve the problem, if I input nothing in the filter, the database returns the all data
Many thanks
Hi,
Please use this Filter Expression for Month:
in("MONTH", '$$Month$$') OR match("MONTH", '*$$Month$$*')
In Input Parameter Prompt, Enter the value as "*"
It will retrieve all the months.
Regards,
Muthuram
Hi Wang,
Create two calculated columns based on Year and Month.
Use variables on top of these instead of input parameters.
Here , user can give year and can ignore month, or user can give any month and its year.
If no input is given then it will bring all data .
Thanks,
Ramesh
Hi, I think MATCH key wont work.
Please use this Filter Expression for Month:
(in("MONTH", $$Month$$) or in ( ($$Month$$,'*'))
In Input Parameter Prompt, Enter the default value as "*"
It will display all the data related months.
Regards,
Kamruz
Add a comment