OBIEE 11g:  Use presentation variable in Column Heading

Hi everyone,
I was playing around with sample app dashboards and I saw a dashboard prompt that they converted into a column selector. I liked it and reproduced it in my own sandbox.
I like the results, however, I would also like to change the column heading to clearly reflect which measure was selected. It's pretty clear when you are looking in the dashboard, but once you export the data, it can be confusing which measure was selected.
That is why I would like to use a presentation variable in the column heading section. I tried to do this but it interpreted it as a literal instead of evaluating the statement.
Is there anyway to get a variable in the column heading?
Thanks!
-Joe

Hi,
Have a look at the following links:
http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
show the presentation variable on table column header
Define presentation variable in column header
hope it helps.
Regards,
Kalyan Chukkapalli
http://123obi.com

Similar Messages

  • Presentation Variable in column heading

    Hi All,
    i have to use presentation variable in column heading. I can use it like @{presentation_variable} . I need to use @{presentation_variable}+15 in column header. what can i do for such a requirement. for example i have to display between 20 to 30 days in column header... 20 will be passed through presentation variable and i need to add 10 for displayng 30.
    thanks in advance for any help and any help will be appreciated..

    Hi,
    Have a look at the following links:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    show the presentation variable on table column header
    Define presentation variable in column header
    Thanks
    Deva
    Edited by: Devarasu on Nov 17, 2011 3:03 PM

  • Define presentation variable in column header

    I want to display presentation variable in column header.
    I tried both:
    @{p_mycategory}{'My category'} Sales
    @{p_mycategory}{My category} Sales
    but failed to display neither p_mycategory value nor the default 'My category'.
    Any ideas?

    I know to add presentation variable in title or narrative text.
    The issue is in chart series name.
    Assuming I want user to select category, which entered to p_categ.
    The lines graph chart should display one line for the selected category and the second line should display the other\total categories.
    In the legend I want to mention the name of the selected cetegory and not saying 'the selected category' or something like that.

  • How to pass the values to stored proc using presentation variable in OBIEE

    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
    The reports are being configured with prompts using either the repository/presentation variables.
    One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
    After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
    Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
    Appreciate your earliest advise as this is a prod issue.

    Hi Prasad,
    I got your note, you should not use Session variable syntax to call presentation variable.
    you should use like @{AIC_PROJ_PLAT_SEQ_NO}
    One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
    Hope this helps

  • Sorting columns dynamically using Presentation Variables

    Hi,
    I have 4 measures say A,B,C,D , a period dimension and branch name dimension. I would like to select the measure in the prompt and the result should display rank for the selected measure using presentation variables. For eg: If measure-A is selected, the result should be arranged in order by based on "A".
    Is it possible to sort the columns dynamically?
    Kindly help me.
    Regards,
    RB

    Hi RB,
    You can do that, though it's a bit more complicated than a simple SQL statement. For example:
    WITH BASEDATA AS (
    SELECT
      EMPNO,
      ENAME,
      MGR,
      SAL,
      COMM,
      CASE WHEN :P4_SORT_ORDER = 1 THEN
        ROW_NUMBER() OVER (ORDER BY UPPER(ENAME))
      WHEN :P4_SORT_ORDER = 2 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR))
      WHEN :P4_SORT_ORDER = 3 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR), UPPER(ENAME))
      WHEN :P4_SORT_ORDER = 4 THEN
        ROW_NUMBER() OVER (ORDER BY UPPER(ENAME) DESC)
      WHEN :P4_SORT_ORDER = 5 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR) DESC)
      WHEN :P4_SORT_ORDER = 6 THEN
        ROW_NUMBER() OVER (ORDER BY (SELECT NVL(MIN(UPPER(E2.ENAME)),'-Select-') FROM EMP E2 WHERE E2.EMPNO = EMP.MGR) DESC, UPPER(ENAME) DESC)
      END SORTITEM,
      'O' STATUS
    FROM
      EMP
    SELECT
      EMPNO, 
      ENAME,
      MGR,
      SAL,
      COMM
    FROM
      BASEDATA
    ORDER BY
      SORTITEMUsing a CASE statement this assigns a ROW_NUMBER to every record based on its ordering within the selected ORDER BY clause. The output is then sorted by this value.
    Andy

  • Issue in using presentation variable as filter condition in the reports

    Hi,
    I have an issue in using presentation variable as filter condition in my reports the details are as follows:
    Details :
    We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
    We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
    Please suggest how can I overcome this issue.
    Thanks in Advance.
    Regards,
    Praveen

    i think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
    Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report.

  • Unable to pass the values to stored proc using presentation variable in OBI

    Hi All,
    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There is an OBIEE requirement whereby two prompts need to be defined.
    1.     Textbox prompt
    2.     Drop-down prompt
    The dropdown values should be populated using textbox prompt. So, we have used presentation variable in textbox prompt and passing the same to select query of drop-down.
    Until this step, the report works just fine.
    Now, the value in both textbox and drop-down needs to be passed to stored proc.
    While trying to pass the values by using the presentation variable, the following error comes-up saying
    Session variable has no value definition.
    Note:Although the corresponding session variable has been set to default value,still the error appears.
    Please advise.
    Regards,
    Prasad

    "Session variable has no value definition" I'm assuming typo error and it should be presentation variable.
    Set default value for presentation variable that may work

  • Presentation variable in column formula errors out

    Hi
    I have a date column which should have 2 presentation variables. From date and To date. I created a dashboard prompt on the date column twice with case statements like CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE TIMESTAMP '1900-01-01 00:00:00' END . Now i have 2 presentation variables FromDate and Todate for the user to select. I have referenced this in the report using a filter with the condition " date between @{FromDate}{1900-01-01 00:00:00 AM} and @{ToDate}{1900-01-01 00:00:00 AM}
    Now i have a column in the report which has a case statement with the following conditions
    CASE WHEN "Dim - Pay Info"."Status Cd" = 'ROC' AND TIMESTAMPADD(SQL_TSI_DAY, -1, @{FromDate}{1900-01-01 00:00:00 AM}) THEN 'Outstanding' --- the condition here is take off a date from the FromDate selected
    WHEN "Dim - Pay Info"."Status Cd" = 'ROC' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Current Month'
    WHEN "Dim - Pay Info"."Status Cd" = 'RCK' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Purged'
    WHEN "Dim - Pay Info"."Status Cd" = 'CLR' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Reconciled'
    WHEN "Dim - Pay Info"."Status Cd" in ('VOID', 'CNCL') AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Void or Cancel'
    END
    When i use this i always get a syntax error. Could you please pont me where i am going wrong?
    Thanks

    user9126483 wrote:
    Hi
    I have a date column which should have 2 presentation variables. From date and To date. I created a dashboard prompt on the date column twice with case statements like CASE WHEN 1=0 THEN CALENDAR.D_DATE ELSE TIMESTAMP '1900-01-01 00:00:00' END . Now i have 2 presentation variables FromDate and Todate for the user to select. I have referenced this in the report using a filter with the condition " date between @{FromDate}{1900-01-01 00:00:00 AM} and @{ToDate}{1900-01-01 00:00:00 AM}
    Now i have a column in the report which has a case statement with the following conditions
    CASE WHEN "Dim - Pay Info"."Status Cd" = 'ROC' AND TIMESTAMPADD(SQL_TSI_DAY, -1, @{FromDate}{1900-01-01 00:00:00 AM}) THEN 'Outstanding' --- the condition here is take off a date from the FromDate selected
    WHEN "Dim - Pay Info"."Status Cd" = 'ROC' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Current Month'
    WHEN "Dim - Pay Info"."Status Cd" = 'RCK' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Purged'
    WHEN "Dim - Pay Info"."Status Cd" = 'CLR' AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Reconciled'
    WHEN "Dim - Pay Info"."Status Cd" in ('VOID', 'CNCL') AND "Dim - Pay Warrant Date"."CAL_DT" IS BETWEEN @{FromDate}{1900-01-01 00:00:00 AM}, @{FromDate}{1900-01-01 00:00:00 AM} THEN 'Void or Cancel'
    END
    When i use this i always get a syntax error. Could you please pont me where i am going wrong?
    What is the syntax error? If you make people have to guess or to examine intensely what you wrote, many will pass on your question, which I don't doubt people did.
    Rather than dive into your syntax, read this blog entry by Venkat which perfectly describes how to build and use date prompts with BETWEEN, including the syntax of wrapping your date prompts with single quotes.
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • Help to use presentation variables in title view

    Hi,
    I am trying to use presentation variables in title view and the presntation variable that I have created is for current month date range (04/01/2012-04/30/2012)
    When I am using this variable in the title view in the report it is showing me as (04/01/2012,04/30/2012)
    IS there any way to get the date range as 04/01/2012-04/30/2012 instead of comma

    863997 wrote:
    Hi,
    I can not create two presenation variables and use becasue I have dashboard prompts setted up and I am using that prompt in my dashboard and report to..So if I create two presentation variables seaperately and use then whenever we change the dates in the prompts the dates in the reprot title will not changeYou absolutely can use two presentation variables and they will change in the Title View if you use them there. Click on this link for the details on how to create the two prompts and use them in your report.
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • How to set MULTIPLE repository variables using presentation variables

    Hi,
    I need to pass multiple values from presentation variable to repository.
    A brief about report design :
    I have two repository variables - from_dt and to_dt which are defaulted to some values from a database table and are editable by the user.
    I display these default date values on the dashboard. Plus there are two dashboard date prompts allowing user to enter a date range different from what is displayed by the from_dt and to_dt. The dates entered by user are assigned to presentation variables pv_from_dt and pv_to_dt.
    If user specifies a different date range then these date values are to be passed to a stored procedure which is called from the Connection Pool --> Connection Script Tab --> Execute before query. This procedure will do some calculations and populate a global temporary table before running the report.
    Problem :
    Now in the presentation server, in the Advanced tab, in the Prefix section, when i try to write something like this:
    SET VARIABLE from_dt = '@{pv_from_dt}';
    SET VARIABLE to_dt = '@{pv_to_dt}';
    I get the foll error :-
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SET>: Syntax error [nQSError: 26012] . (HY000)
    I tried all possible permutations and combinations
    SET VARIABLE from_dt = '@{pv_from_dt}',SET VARIABLE to_dt = '@{pv_to_dt}'; --- gave same error
    SET VARIABLE from_dt = '@{pv_from_dt}' SET VARIABLE to_dt = '@{pv_to_dt}'; -- gave same error
    How do we assign values to multiple reporsitory variables... ???
    Thanks
    Nusrat

    Hi,
    I wrongly referred to the variables as "repository" variables. Both variables are Session variables. For testing i added a column field in the report with source as the session variable - VALUEOF(NQ_SESSION.from_dt). In the Prefix section i assigned a literal value - SET VARIABLE from_dt='01-JAN-2012';
    When report is run, the literal value gets displayed.
    The idea to update a session variable, from dashboard using presentation variable, i got from the following URL.
    Go to http://oraclebizint.wordpress.com/category/obi-ee-plus/page/11/
    and see the section "Oracle BI EE 10.1.3.3/2 – Updating Session Variables from Dashboards using Presentation Variables"
    Thanks
    Nusrat
    Edited by: user10309945 on Jan 16, 2011 9:30 PM
    Edited by: user10309945 on Jan 16, 2011 9:59 PM

  • Using Presentation variables..along with case statements..

    Hi All.
    I have a issue using presentation variable along with CASE statements. My approach is
    1) I have a dashboard prompt, which is being set as Presentation variable.
    Based on the value selected in prompt, for ex the values of prompt can be 'ABC' and 'DEF'.
    I have a calculated column, the calculation goes this way...
    The forumal is
    CASE WHEN @{Presentation Variable Name} = 'ABC' THEN xxxxxxxxxx ELSE IF @{Presentation Variable Name} = 'DEF' END. It gives error of "no table being referenced"..
    Is this is the right approach??
    Can i get the values of variable in a column formula, so that a column can have values selected in prompt?
    Can anybody pls help me here..
    Thanks in advance...

    Hi
    Thanks for the quick response..
    I agree to ur point..
    But the requirement is
    Based on the value of the prompt I need to switch the calculation in one of the formula area of one column..
    If Prompt value is ABC then one kind of calculation in Fx and If the prompt value is DEF then one kind of calculation in the same Fx..
    How can I acheive this?
    Thanks in advance..

  • Presentation variable in column name

    Is there any way to add in column name presentation variable?
    Example
    *2007* =tmp_2ybefore
    *2008* =tmp_ybefore
    This variables are defined in prompt
    Sale *2007* -- Sale *2008*
    1,22------------2,86
    4,44------------3,29
    Edited by: Micek on 2009.04.10 09:15

    hi
    check this...
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    but it has its own disadvantages.... see

  • Unresolved column when using presentation variable in Answers filter

    Hi all,
    I'm using a dashboard prompt that sets a presentation variable - pres_year. I'm using the presentation variable in a request's filter.
    In the 'Criteria' tab, in the filter for the request, I set a year column (YEAR) to the presentation variable via Variable Expr and enter the presentation variable name only. End up with:
    YEAR is equal to / is in @{pres_year}
    When using the dashboard, the prompt and request all work fine. The problem is when I'm in the request in Answers and I click on 'Display Results' button. I get the following error:
    'NQSError: 27005 unresolved column pres_year'
    Any suggestions?
    Thanks.

    I got same error, if i'm using SQL Expression, instead of variable expression in filter section.
    make sure that you followed this:
    filter on year > Add > Variable > Presentation. Then, give the presentation variable name (which you defined in dashboard prompt) in Variable Expr field , click OK
    getting same error when using:
    Filter on year column > Add > SQL Expression > presentation variable. This is not right place to give presentation variable.
    and, error i got:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005]* Unresolved column: "var_Year". (HY000)
    so, make sure that you are suing the right one..

  • How to create Presentation variable for columns and to use it in Narrative?

    Hi All,
    Anybody know how to create presentation variable for a column (i.e., i need to create it in edit formula section itself). And then, I should use it in Narrative section to display that column value. Is it possible? Or do i need to use any other variable for this requirement? If so please let me know, how to create it? This is very urgent requirement.
    Thanks in Advance
    Thenmozhi

    Hi Satya,
    I just want to create a table that should horizontally display the values like below:
         SUID Tag # :123456               Year Mfg: 2007                                                                                     
         Description: computer corporation FA ID#: 4576
         Model Number: 4569 hESC: #ert
         Serial Number: 78945 Flags: c
    Department: Hematology
    User: thenmozhi
    Database: OLAP
    I think we can create this type of report using either Narrative or Static Text. But I am not sure whether it is possible or not? And also another thing is that sectioning is applied for SUID Tag # column. So, depending on the dashboard prompt if the SUID Tag # retrieves two or more values.
    Then the first value for example 123456     and the values for the other columns related to this SUID Tag # value should display in the first page (i.e., page 1). And if the next value of the SUID Tag # for example say 678901 then the values should move to second page that is like this:
         SUID Tag # :678901               Year Mfg: 2008                                                                                     
         Description: Computer Manufacturing FA ID#: 4577
         Model Number: 4570 hESC: #eth
         Serial Number: 78946 Flags: G
    Department: Hematology
    User: Rehman
    Database: OLAP
    Thanks
    Thenmozhi

  • How to pass presentation variable in column Fx using GO URL

    Hi All,
    I want to show a download link directly using go url .
    In my dashboard prompt i am using some presentation variable .
    those variables i am using in the report's column formula .
    When i am applyning the prompt that it is not applying in the column Fx. so when i download the excell it shows same data for all the option choosen.
    If anybody knows the syntax please help.
    Thanks ...

    Hi,
    Like this you can pass presentation variables to the columns using Go URL
    '<a href=saw.dll?Dashboard&PortalPath=/shared/Test/_portal/Test%20KPIs&Page=Page1&Action=Navigate&col1="Dim%20Country"."Country%20Name"&val1='||'@{PV_Contry'||'>'||'Country'||'<\a>'
    Please use backslash in anchor tag end. Since here it is not accepting I am using forward slash.
    Thanks
    Vino

Maybe you are looking for

  • How can I use a different Apple ID withthe App Store?

    When I access the App Store from my iPhone 3G it asks me to enter the password for an Apple ID. How can I use a different Apple ID with the App Store?

  • How can i backup my ipod touch's data to another drive safely?

    Ok here is my current situation. I have on my C: drive about 20% of space remaining, it was almost 10% yesterday.. The biggest item I know of its the back-up data for my Ipod touch 32 gig 4th gen. Now i know there is a method of sort of linking so it

  • Mail notification

    i want to develop following report...... mail notification Report which displays the vendor    consignment details of various vendors and the mails are sent to the relevant vendors. for mail notification what i should do in my abap program. sap versi

  • Add to favorites button

    I would like to have an add to favorites button on my flash website but it just won't work. I have copied the code from this website http://www.actionscript.org/resources/articles/24/1/Bookmark-to-IE/Page1.html into a new flash movie but when I put i

  • Can't install photoshop elements 12 or premiere elements 12

    just downloaded the above. when installing photoshop elements (64 bit) it gets as far as trying to install the organiser BUT then get error 1401 see below. when trying to install premiere elements 12 (64 bit) get so far then error 1406 - see below. h