on 05-06-2016 11:29 AM
Hi Everyone,
We are building some reports on a HANA calculation view with parameters. As per the norm I created a derived table with the syntax
SELECT *
FROM "_SYS_BIC"."calculation_view"
(
'PLACEHOLDER'=('$$Z_IP_TARGET_P1$$',@prompt(P1)),
'PLACEHOLDER'=('$$Z_IP_TARGET_P2$$',@prompt(P2))
)
However, I recently read that from BO4.1, there is no need to create a derived table and the prompt can be directly assigned to the parameter. Could anyone please confirm if this is the case or do we need to still need to create a derived table?
Also is there a way to refresh the derived table instead of re creating it each time?
Also, when the query is created, it comes up like
select table1.col1,
table1.col2
from
(
SELECT *
FROM "_SYS_BIC"."calculation_view"
(
'PLACEHOLDER'=('$$Z_IP_TARGET_P1$$',@prompt(P1)),
'PLACEHOLDER'=('$$Z_IP_TARGET_P2$$',@prompt(P2))
) table1
Due to this data from the whole calculation view is processed and then filtered by the select statement. Is there a more efficient way to achieve the same?
Thanks in advance
Vinayak
Hi Vinyak
Please check this link how you can do it :
Best Regards
Ines
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Everyone,
The JDBC connection now works however, the report shows the complete path of the input parameter in the prompt. Is there a way this can be changed to custom prompts?
Thanks
Vinayak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ines,
I tried with a JDBC connection as well. However, it does not ask me for the input parameter. If i create a query in the universe, I get an error message as cannot display script.
Please let me know if this approach works for an input parameter or is it just for variables?
Thanks and best regards,
Vinayak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.