Create an Input Parameter in a Graphical View
Create an input parameter to prompt the user to enter a value for use in filtering or other calculations when the view is run. If the view is consumed in an SAP Analytics Cloud story the user will be prompted to enter a value for the input parameter in the Set Variables dialog.
Context
-
In the graphical view editor, you can use input parameters to require user input in any sql expression, including those used in filter, calculated columns, and aggregation nodes.
-
In the SQL view editor, you can use input parameters in your WHERE clause or anywhere else in your SQL code.
-
Previewing data - Accept the default value, if one is provided, or enter a value for each input parameter (see Viewing Object Data).
You cannot view data in an SQL view if any of its sources is shared from another space and has an input parameter.
-
Adding a view as a source for a graphical view - Map each input parameter in the source view to a value or an input parameter in the new view (see Add a Source to a Graphical View).
-
Adding a view as a source for a SQL view - Complete the syntax to map each input parameter in the source view to a value or an input parameter in the new view (see Process Source Input Parameters in an SQL View).
-
Adding a table as a source for an analytic model - Map each input parameter in the source table to a variable in the model (see Create a Variable in an Analytic Model).
-
Consuming view data via the OData API - Set a value for each input parameter using the (<param>='<val>'[,...])/Set syntax (see Consuming Data via the OData API).
-
Using a view as a data source in an SAP Analytics Cloud story - Enter a value for each input parameter in the Set Variables dialog (see Setting Story Variables in the SAP Analytics Cloud Help Library).