Click New > Dashboard Prompt and select Sample Sales as the subject area.
1. | Create an analysis by selecting the following columns: |
---|---|
2 . | Add ascending column sorts in this sequence: C50 Region, C52 Country Name, and E1 Sales Rep Nameas shown below: |
3 . | Select the Results tabbed page. |
4 . | Select New View > Other Views > Static Text. |
5 . | Move the Static Text view above the Table view. icon on the Static Text view. The Static Text editor appears. |
6 . | In the Static Text editor, reference the VarSalesRep variable. Enter the following syntax in the Static Text pane: This analysis is for the Sales Rep @{VarSalesRep}. The syntax for referencing a Presentation variable is as follows: is the name of the presentation or request variable format (optional) is a format mask dependent upon the data type of the variable, for example #, ##0, MM/DD/YY hh:mm:ss. (Note that the format is not applied to the default value.) default value (optional) is a constant or variable reference, indicating a value to be used if the variable referenced by variablename is not populated scope identifies the qualifiers for the variable. You need to specify the scope when a variable is used at multiple levels (analyses, dashboard pages, and dashboards) and you want to access a specific value. (If you do not specify the scope, then the order of precedence is analyses, dashboard pages, and dashboards. Examples: @{variables.MyFavoriteRegion}{EASTERN REGION} or @{dashboard.variables['MyFavoriteRegion']} . |
7 . | Save your analysis as Sales Reps by Region and Country. |
8 . | Select the tabbed page. In the Filters pane, click the icon and select . |
9 . | In the New Filter dialog box, click and select . In the Variable Expr field, enter the variable name, . Notice that you can also specify a default for the variable, but in this case the default is driven by the variable prompt, which is set to default to "Angela Richards". Click . The filter should look like this: |
10 . | Select the Results tabbed page. Because the variable dashboard prompt has not been run, the VarSalesRep presentation variable has not been populated with a value. Because of this, no results from the analysis meet the filter requirement. |
11 . | Add the analysis and the newly created variable prompt to the dashboard. |
12 . | Open the dashboard from the folder, then click . |
13 . | Add a new column next to Column 1, and then navigate to the Sales Reps by Region and Country analysis and drag it to the new column. |
14 . | Navigate to SalesRep Variable Prompt in the catalog pane, and drag the prompt above the Sales Reps by Region and Country analysis. Save the dashboard and run it. The Dashboard view looks like this: |
15 . | Click the icon for the first column to minimize it. , which in turn appears in the Static Text view as expected and is used to filter the embedded analysis results. The value of a presentation variable is populated by the variable prompt. That is, each time you select a value in the variable prompt, the value of the presentation variable is set to that value. |
Click the drop-down list for the dashboard prompt, and select Chris Jones. . The dashboard displays the presentation variable as Chris Jones. |
Post a comment, popular posts.
Using variables in obiee.
']} | ||
is the name of the session variable, for example DISPLAYNAME. | ||
. | ||
} | ||
']} | ||
is the name of the repository variable, for example, prime_begin. | ||
}[ ]{ } | ||
.variables[' ']} | ||
is the name of the presentation or request variable, for example, MyFavoriteRegion. | ||
is a format mask dependent on the data type of the variable, for example #,##0, MM/DD/YY hh:mm:ss. (Note that the format is not applied to the default value.) | ||
is a constant or variable reference indicating a value to be used if the variable referenced by is not populated. | ||
identifies the qualifiers for the variable. You must specify the scope when a variable is used at multiple levels (analyses, dashboard pages, and dashboards) and you want to access a specific value. (If you do not specify the scope, then the order of precedence is analyses, dashboard pages, and dashboards.) | ||
When using a dashboard prompt with a presentation variable that can have multiple values, the syntax differs depending on the column type. Multiple values are formatted into comma-separated values and therefore, any format clause is applied to each value before being joined by commas. | ||
} | ||
Include the session variable as an argument of the VALUEOF function. | ||
Enclose the variable name in double quotes. | ||
Precede the session variable by NQ_SESSION and a period. | ||
Enclose both the NQ_SESSION portion and the session variable name in parentheses. | ||
Include the repository variable as an argument of the VALUEOF function. | ||
Enclose the variable name in double quotes. | ||
Refer to a static repository variable by name. | ||
Refer to a dynamic repository variable by its fully qualified name. | ||
. | ||
Use this syntax: @{variablename}{defaultvalue} where variablename is the name of the presentation variable and defaultvalue (optional) is a constant or variable reference indicating a value to be used if the variable referenced by variablename is not populated. ■To type-cast (that is, convert) the variable to a string, enclose the entire syntax in single quotes, for example: '@{user.displayName}' Note: If the @ sign is not followed by a {, then it is treated as an @ sign. When using a presentation variable that can have multiple values, the syntax differs depending on the column type. Use the following syntax in SQL for the specified column type in order to generate valid SQL statements: ■Text — (@{variablename}['@']{'defaultvalue'}) ■Numeric — (@{variablename}{defaultvalue}) ■Date-time — (@{variablename}{timestamp 'defaultvalue'}) ■Date (only the date) — (@{variablename}{date 'defaultvalue'}) ■Time (only the time) — (@{variablename}{time 'defaultvalue'}) |
Each variable in an application have a scope and a data type .
When you set a presentation variable with a dashboard prompt, the presentation variable takes the data type of the value in the column field.
Column Value | Example | Datatype |
---|---|---|
A Presentation Column | Calendar.“Time Id” | The |
A string | 'My String' | String |
A date | date '2012-12-03' | |
A number | 1 | Number |
Find centralized, trusted content and collaborate around the technologies you use most.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Get early access and see previews of new features.
I make a dashboardprompt and I want to make a default selection starting from an logical sql. In th options I choose as default selection "SQL Results". In my query I want to put a filter with a presentation variable. I thought to use this query:
But I don't know how to put the presentation variable. Like this code, it does not work.
Your answer.
Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more
Post as a guest.
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy .
COMMENTS
The syntax for referencing presentation variables is as follows: @{variables.<variableName>}{<default>}[format] variables - (optional) variableName - a reference to an object available in the current evaluation context that is not a reserved variable name. default - (optional) - a constant or variable reference in Obiee logical sql indicating a ...
How to Use Presentation Variable in OBIEE - Building Dashboards Part 3What you'll learn: -----...
Dashboard prompts. iBot Headlines and text. Some examples are given below with a presentation variable "Year" and as default value the max of the year : @{Year}{max(Calendar."Calendar Year" by) } A prompt has been first created to set the presentation variable : OBIEE 10G/11G - How to set a presentation variable ?
Presentation Variables Presentation Variables are created by, and exist only in the context of, a Dashboard Prompt. The values of Presentation variables may be used as filtering conditions for any analyses on the dashboard(s) on which the dashboard prompt is present. The use of a dashboard prompt is the only way to create a presentation variable.
1. I have a question concerning the use of presentation variables: 1) What's the correct syntax for filtering on a presentation variable is used? You allow a user to select multiple values in a filter eg. A and B. If you use the syntax = '@ {PV} {%}' it will result in this sql: = 'A, B' which of course won't exist in the data.
When defining a presentation variable using the presentation variable option in a filter or in a prompt, you only have to define the name. Once I click ok, OBIEE will insert the proper syntax for me. The default value is optional but, when defining a Presentation Variable within a filter, you have to specify a default value in order to get any ...
• Presentation -defined in OBIEE Syntax: • @{VariableName}{<default>}[format] for repository & presentation variables • NQ_Session prefix for session variables. Variable Examples Repository Session Presentation. Presentation Variables A Perfect Pair: • Set in the Prompt
Presentation Variables. The only way you can create variables within the presentation side of OBIEE is with the use of presentation variables. They can only be defined by a report prompt. Any value selected by the prompt will then be sent to any references of that filter throughout the dashboard page. In the prompt:
Note: If you are unsure about the functionality of Presentation Variables, see part one of this blog series. To add Presentation Variables to the filter expression, click Add More Options and select Presentation Variable from the dropdown. When a Presentation Variable is added to the filter, two new text boxes appear.
Presentation Variables. When referencing a presentation variable, use this syntax: @{variablename}{defaultvalue} where variablename is the name of the presentation variable and defaultvalue (optional) is a constant or variable reference indicating a value to be used if the variable referenced by variablename is not populated.
About. The presentation service has some presentation variables that are reserved to give specific information. You can use them in your answer such as @ {system.currentTime} to filter depending of the current time . Be careful, the difference between upper and lowercase letter is important.
To create a presentation variable as part of a variable prompt, in the New Prompt dialog or Edit Prompt dialog → Select Presentation Variable in the Prompt for field → Enter the name for the variable. The value of a presentation variable is populated by the column or variable prompt with which it is created. Each time a user selects a value ...
In the Presentation layer, double-click a subject area. In the Subject Area dialog, click the Presentation Tables tab. In the Name list, select the table and use drag-and-drop to reposition the table, or click the Up and Down buttons to move a table. Click the Name column heading to sort all tables in alphanumeric order.
These changes document Community specific rules and Oracle's content moderation practices including use of automated tools, appeals process, and Oracle's contact details. If you object to any changes, you may request that your account be closed by contacting [email protected]. Your continued use of Oracle Communities ...
To create a presentation variable as part of a variable prompt, in the New Prompt dialog, you must select Presentation Variable in the Prompt for field. Enter a name for the variable in the Variable Name field. The value of a presentation variable is populated by the column or variable prompt with which it was created.
a OBIEE - Request variable. The request variable is a variable that you can add to the obiee logical sql (the request) to set a repository session variable. Select in the Set Variable Column, the value "Presentation variable". Enter a name for your presentation variable. 10G.
Where: variablename is the name of the presentation or request variable format (optional) is a format mask dependent upon the data type of the variable, for example #, ##0, MM/DD/YY hh:mm:ss. (Note that the format is not applied to the default value.) default value (optional) is a constant or variable reference, indicating a value to be used if the variable referenced by variablename is not ...
Here is the code for my Presentation Variable in my Direct Database Request. AND ( gl_period_name IN ('@{P_Period}') OR 'All' IN ('@{P_Period}{All}')) I am able to use the following code to add ' ' to each value - This is for the Presentation Variable P_Period
Using Variables in OBIEE. You can reference variables in several areas of Oracle BI Enterprise Edition, including in analyses, dashboards, KPIs, actions, agents, and conditions. For example, suppose that you wanted to create an analysis whose title displays the current user's name. You can do this by referencing a variable.
This article talk the manipulation of a presentation variable with a date datatype. Starting with OBIEE 10.1.3.4.1 and higher versions, Dashboard Prompt input formats and presentation variable values for DATE & DATETIME columns are standardized to YYYY-MM-DD & YYYY-MM-DD HH24:MI:SS One big mistake that is made with the date, is that people may confuse between NLS_DATE_FORMAlocalizatioOBIEE ...
In this Document. Goal. Solution. My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts. Business Intelligence Suite Enterprise Edition - Version 11.1.1.7.0 and later: OBIEE 11g | 12c: What Is the Syntax for Referencing Presentation Variables with Multip.
When you set a presentation variable with a dashboard prompt, the presentation variable takes the data type of the value in the column field. ... OBIEE - Presentation Variables. The presentation variable is the only variable offer by the presentation service. You can use direct some system presentation variable (pre-populate or system ...
1. I make a dashboardprompt and I want to make a default selection starting from an logical sql. In th options I choose as default selection "SQL Results". In my query I want to put a filter with a presentation variable. I thought to use this query: SELECT "Human Resources - Talent Profile Management"."Basic Information"."Person Number". FROM ...