Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 16 Oracle Analytics Lounge
- 216 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 79 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Data Model Parameters in BI EE (11.1.1.9)

Hi,
New here. I'm trying to configure a Data Model to use a Parameter. I want a user to be able to select an Order By condition.
The SQL below works fine.
select
"ALL_TABLES"."TABLE_NAME" as "TABLE_NAME",
"ALL_TABLES"."TABLESPACE_NAME" as "TABLESPACE_NAME",
CAST("ALL_TABLES"."NUM_ROWS" AS INT) as "NUM_ROWS",
from "FUSION"."ALL_TABLES" "ALL_TABLES"
where "NUM_ROWS" >= 0
order by "NUM_ROWS" DESC
If I set a parameter p_order_by to be a String and then type NUM_ROWS into the resulting parameter box the Order By clause fails.
select
"ALL_TABLES"."TABLE_NAME" as "TABLE_NAME",
"ALL_TABLES"."TABLESPACE_NAME" as "TABLESPACE_NAME",
CAST("ALL_TABLES"."NUM_ROWS" AS INT) as "NUM_ROWS",
from "FUSION"."ALL_TABLES" "ALL_TABLES"
where "NUM_ROWS" >= 0
order by :p_order_by DESC
See attached images.
Appreciate any comments or suggestions to understand what needs to happen so that the SQL is parsed correctly where using parameters.
Thanks.