Adding presentation variable in Timestamp function

Hi experts,
Formula: CASE WHEN 1=0 THEN CURRENT_DATE ELSE TimestampAdd (SQL_TSI_WEEK, -1,(CAST(@{Specific_Date} AS TIMESTAMP)))
i getting error when i try to run it

Hi,
Try this.....
case when 1=0 then current_date else TIMESTAMPADD(SQL_TSI_WEEK, -1, cast(Specific_Date as timestamp)) end

Similar Messages

  • Date format is changing in presentation variable

    Hello,
    I have a problem with date stored in presentation variable.
    I have simple prompt with calendar field (default date value is setted from repository or session variable to current date). Selected date is stored in PP_DATE presentation variable.
    I have simple report with title to show the content of variable PP_DATE.
    And now the problem.
    When I navigate to dashboard page with this report I will get date from PP_DATE variable in some format (there is difference when I use repository or session variable). After I will push the start button I will get another date format from PP_DATE variable.
    Screenshots are stored and described in this PDF: [PDF with screenshots|https://docs.google.com/uc?export=download&id=0B2LOPOBteIShMDRmYTJlYTItNmYyZC00ODdkLWE5NjktNzI1N2RlNWMwZjBk]
    There is difference between session and repository variable. When I use repository variable I will get 'TIMESTAMP .......' from PP_DATE variable, which is the default initializer in repository variable manager. I tried to delete default initializer, but I is automatically added after saving changes.
    When is the default value of prompt setted from session variable I will get another format of date from PP_DATE variable which refers to DATE_TIME_DISPLAY_FORMAT = "yyyy-mm-dd hh:mi:ss.mss" (from NQSConfig.ini). I have changed DATE_TIME_DISPLAY_FORMAT from standard value "yyyy/mm/dd hh:mi:ss" to "yyyy-mm-dd hh:mi:ss.mss" because I am reading some data from excel, where are dates stored in MSSQL format. But this is not the reason of my problem. I have the same problem also with standard DATE_TIME_DISPLAY_FORMAT.
    The result of this strange behaviour is that I am getting errors when I am doing some calculations (for example TimeStampDiff) with PP_DATE variable. I am getting error when I am navigating to dashboard page. Everything is ok after I will push the start button.
    Do you have some tips?
    Thank you

    Kishore Guggilla wrote:
    Hey,
    you are talking about so many pieces here seems..
    first letz break down your issues list..
    1. error, this is because of default date(using repository variable) used in prompt..
    2. using presentation variables in timetampdiff functions..
    3. showing variable in title list..
    we'll go through each issue..
    because, its' messed up..I think that everywhere is the same problem. So solving issue number 1 will solve my other problems.
    "1. error, this is because of default date(using repository variable) used in prompt.. "
    I want to use date prompt with default date value (from repository or session variable) and then use pp_date presentation variable from this prompt to filter my results.
    I would like to use repos. or session variables, I dont want to write some select to fill default date value in each prompt.
    I tried to change one date in initialization block from "trunc(sysdate, 'DD')" to "to_char(sysdate, 'YYYY-MM-DD')" because it is the same format as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini
    And now it seems to be working now.
    I can use repository var. as default date value in my prompt and use date variable pp_date to filter my results. Report return result after navigation on it and after pushing Go button.
    Can you confirm me that date format in initialization block must be the same as DATE_DISPLAY_FORMAT = "yyyy-mm-dd" in NQSConfig.ini?

  • Substring function for presentation variables in obiee

    I have a presentation variable called period that has the (fromdate and to date)
    Is there any way that I can split this one variable into 2 by using substring function??in such a way that it gives one for from date and the other for to date..
    any synatx like
    SUBSTRING ( '@{period} FROM 0 FOR POSITION
    (' - ' IN '@{period})) ???
    and how to apply this?

    The answer to this question is the same for the one you posted here:
    can we create two dashboard prompts for the same column in the samepage
    You need to split your prompts into two. If you read the link I posted in the other thread and re-posted here, you will find that the reason to do it this way is so you can see the values of the prompts. Read the first paragraph of this link -- again, if you already read it. You cannot split the single presentation variable if you use the BETWEEN operand in the dashboard prompt. You need to put the operand in the filter in your report.
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • Evaluate function to convert presentation variable to date not working..

    Hi,
    I have a calendar prompt on my dashboard and the presentation variable for this prompt is PV1.
    I am using this variable in my report to create a calculated column. The condition for the calc column runs something like
    case WHEN "Time"."Day" >= ANY(SELECT saw_3 FROM(SELECT "Time"."Start Date" saw_3 FROM "xyz_subject_area" WHERE "Time".Day = CAST(EVALUATE('TO_DATE(%1,%2)' AS DATE, '@{PV1}{@{system.currentTime}[MM/DD/YYYY]}', 'MM/DD/YYYY HH:MI:SS AM' ) AS DATE)) EX1) then "ABC"."Units" else "XYZ"."Units" end
    However when I checked the expression EVALUATE('TO_DATE(%1,%2)' AS DATE, '@{PV1}{@{system.currentTime}[MM/DD/YYYY]}', 'MM/DD/YYYY HH:MI:SS AM' ) is not returning the date always. I am not sure why for some rows it is working correctly and for some it is not returning any value.
    Please let me know if there another better way to convert the presentation variable value to date.

    Hi User,
    What is the data type of the column you are using in the prompt?
    I think a datetime data type will by default cause OBIEE to wrap the presentation variable in the TIMESTAMP syntax if you just do this '@{PRESENTATION_VAR}'.
    If you, did not base it on the datetime data type, then try the following:
    cast( LEFT( '@{MY_DATE}' ,4 ) || '/' || SUBSTRING( '@{MY_DATE}' FROM 6 FOR 2) || '/' || SUBSTRING( '@{MY_DATE}' FROM 9 FOR 2)||' 00:00:00' as date)
    In order to use OBIEE to cast as a DATE, your string needs to be in the form YYYY/MM/DD HH24:MIN:SS
    Good luck!
    -joe

  • Using 2 presentation variables in a filter for date

    I do have 2 presentation variables @MONTH and @YEAR. In my analysis I do have a Timestamp column EfDate.
    I am trying to filter EfDate, using the SQL Expression option and cast(('01/'||'@{MONTH}'||'/'||'@{YEAR}'||' 00:00:00) as timestamp).
    Tried also with cast(('@{YEAR}/'||'@{MONTH}'||'/'||'01'.... and with '-' instead of '/'.
    No success... either a message for invalid month, or invalid character, etc.
    Pls. anyone could give me a hint ?
    Txs.
    Antonio

    Hi Srini,
    Txs. for your help... but I guess I do have some difficult understanding this MIN function... (tried the doc but still is kind of strange).
    OTH on your last post I believe you mean: Time."Year" = '@{Y1}' and ... Right ? and not Time."Month" = '@{Y1}' and ...
    My filter would be something like: Effdate < '01' / @{MONTH} / @{YEAR} (keeping out the cast and etc.).
    I still cannot see how to use the format you´ve suggested in my filter above. Sorry.. but maybe you could help me ?
    txs a lot in advance.
    Antonio

  • Error while Creating Presentation variable

    Hi,I am new to OBIEE
    I am facing this error:
    "A numeric value was expected (received "max("Sales Measures".Dollars)").
    Error Details
    Error Codes: EHWH2A7E"
    1.I am using paint rpd.I want to use presentation variable.
    2.So i took two column in criteria 1.Region 2. Dollars
    3.In Dollars edit formula ,I created presentation variable i.e. @{Doller_presentation}{max("Sales Measures".Dollars)} in the column formula.
    4.And In the same column i use filter
    Add ->presentation variable->variable exp =Doller_presentation and default =max("Sales Measures".Dollars)
    5.I have added this request on dashboard page,but error is coming.
    6.Also i have created dashboard prompt,
    Set presentation variable to "Doller_presentation"
    and in column formula :@{Doller_presentation}{max("Sales Measures".Dollars)}
    and took that prompt on the same dashboard page.
    so promt with 2 values are coming.1.All choces 2.13087528..may be ths is max value of dollar but on click its showing error as
    "Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42021] The query does not reference any tables. (HY000)
    SQL Issued: SELECT 13087529 FROM Paint ORDER BY 1"
    I am confuse abt use of presentation variable
    Please Help,
    Thanks
    Kapil
    [email protected]
    Edited by: user13098263 on May 9, 2010 10:58 PM
    Edited by: user13098263 on May 9, 2010 11:01 PM
    Edited by: user13098263 on May 9, 2010 11:02 PM
    Edited by: user13098263 on May 9, 2010 11:04 PM

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

  • Report in new page does not know of session and presentation variables

    I have a question about GOURL.
    I am using GOURL as a column function in one report (report A), so that when i click on that column it takes me to another report(report B) that open in new popup window.
    the first report (A) also uses some session and presentation variables, which is also used by Report B as filters. I am curious that if I add these filters which are using variables to report B, why can't report B get the value of these, (it just errors out ) because it didn't found any value to those variables in the filter.
    Becuase I am ending up with passing all these variables in GOURL and setting them as 'isprompted'.
    Does this report (B) knows nothing else than what it finds in GOURL?
    thanks

    In a nutshell, if u use gourl then its parameters will be only using in navigated report. This is functionality

  • How can i display the presentation variable in my reports

    Was facing a problem to display the Presentation variable on my report, however i managed to display it on answers, but when i try to display it on my Publisher report it doesnt shows any data.
    I use to Select the Values From my prompt, and it shows the Reflection of Presentation Variable on my Answers Report. but i cannot see the Reflection of data on my Publisher Report Please any One Can help me with this.

    Removing '' does not work it given the following error
    "State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <@>: Syntax error [nQSError: 26012] . (HY000)"
    and by adding space you mean that I use it as '@{ BbranchCode}'?
    What I am doing at the moment is
    1. Write the given query in oracle BI Answers.
    2. Made a dashboard prompt in Answers.
    3. Made a report in dashboard using the Answers report and the dashboard prompt.
    Up till this step it works perfectly fine and the data displayed in manipulated on the basis of the values selected in the prompt.
    4. Now what I want is to display this report in Dashboards using oracle BI publisher. For that I use the template builder provided for microsoft word.
    5. I login to that add-on, open the answers report where I can see the field in the rowset. I select that field and save the template.
    6. I open the oracle BI publisher and make a new reprt with data model of the answer's report and Layout of the one I just created.
    7. I open the dashboard and put in the BI publisher report in the same page in which the asnwers report and the prompt was.
    8. Upon changing the values of the prompt the report in the answers is still getting manipulated but I am not able to see its reflection of the BI publisher report.
    The thing is that I am currently using this presentation variable to manipulate my reports in dashbords using dashboard prompts. The report is built in oracle BI Answers and it is working perfectly fine with it. Now when I use the template builder for Microsoft Word and open the template with the answers's report of this query I see the field in the row set but when I display the template in the dason the bases of this presentation variable the report in the oracle BI Answers is getting updated when I change values but when I use the template builder for microsoft word the the field is being shown in the row set.

  • 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/

  • Presentation Variable in the SQL default section in the dashboard prompt

    Hi Gurus,
    I have two prompts and two go buttons. First Go button is used to populate pv_category1 presentation variable.
    category_column --> pv_category1--> 1st Prompt
    Product_Column --> pv_product2 --> 2nd Prompt
    I want to set the default for the 2nd Prompt depending on the 1st Prompt ( Category) chosen by the user.
    In the SQL default --> i have typed in the below Query.
    *Select TableName.Product_Column from Subject_Area where category_column = '@{pv_category1}'*
    The Problem is that i dont get any default value for 2nd Prompt after choosing the First prompt and hitting the GO Button.
    If i hardcode the value in @{pv_category1} ...
    for eg
    Select TableName.Product_Column from Subject_Area where category_column = 'Incidents' i get the corresponding value as default.
    But i want this 2nd prompt (product) to dyamically default depending on the 1st prompt (category) chosen by the user.
    I am using OBIEE 10.1.3.4 and i have googled a lot on this topic...
    can we not use Presentation variable in the SQL default section of the Dashboard Prompt?
    Any help in this regard would be highly appreciated.
    Thanks
    Ashish

    Thanks for the Quick Reply.
    But the functionality that i want to achieve is the default value in the 2nd column (out of many values for 2nd column) based on the 1st column chosen by the USER. for eg we have two columns in our database ie category and Product.. Data goes like this
    category ProductName
    Incidents --- A
    Incidents --- B
    Incidents --- C
    Changes --- D
    Changes --- E
    Projects --- M
    Projects --- N
    Projects --- O
    Projects --- P
    If the User chooses Incidents in the first prompt then the default in the 2nd prompt should be B ( out of A,B,C Values available in the 2nd prompt)....
    Checking the constraint checkbox doesnt solve the default problem...
    Thanks
    Ashish

  • Displaying a presentation variable in a certain format

    Hi Experts
    I have got presentation variable called WeekBetween, which is set by a slider (that is a dashboard prompt)
    When output the value of this variable (in a textbox @{WeekBetween}) it says *'1,53'*
    While the values are right, i would want this value to be formatted in the following way
    *1- 53*
    Please can someone help or suggest an accurate answer
    Kind Regards
    Hiten

    You can use the Replace function mentioned above only in column formula. If you do not want to use column formula to display this value, then you can opt for Javascript replace function. To implement it, you need to replace your presentation variable in text object with below code and ensure to check Contains HTML markup checbox.
    &#60;div id=custDiv&#62;@{WeekBetween}{Default Value}&#60;/div&#62;
    &#60;script&#62;
    var i = document.getElementById('custDiv').innerHTML;
    document.getElementById('custDiv').innerHTML= i.replace(","," - ");
    &#60;/script&#62;
    Let me know if this works for you.

  • Use presentation variable in date filter

    Hi,
    I have a Date presentation variable pvEffDt whose value is set in a dashboard prompt. How do I access this variable in a Date between filter? I actually need data for chosen date's previous month (weird, why don't I choose the previous month itself. yeah true, but I want to try something else).
    I have tried the following but to no avail - CAST (TIMESTAMPADD(SQL_TSI_MONTH, -1, cast('@{pvEffDt}[MM/DD/YYYY]' as TIMESTAMP) as DATE)
    I get the following error -
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetLevelDrillability('SELECT "AFM"."GRP_ID" saw_0, "HIER_DEF"."HIER_DSC" saw_1, "HIER_DIM"."CD_DSC_LV1" saw_2, "AFM"."HIER_ID" saw_3, "AFM"."ATTR_REF_DIM_KEY" saw_4, "AFM"."RPTD_CURCY_CD" saw_5, "AFM"."BMARK_ID" saw_6, "AFM"."WT_TOT_ADJ_ACCT" saw_7, "AFM"."WT_TOT_ADJ_BMARK" saw_8, "AFM"."PCT_CONTRIB_BASE_ACCT" saw_9, "AFM"."PCT_CONTRIB_LOCL_ACCT" saw_10, "AFM"."PCT_CONTRIB_BASE_BMARK" saw_11, "AFM"."PCT_CONTRIB_LOCL_BMARK" saw_12, "AFM"."SEC_SEL_BASE" saw_13, "AFM"."SEC_SEL_LOCL" saw_14, "AFM"."MKT_ALLOC_BASE" saw_15, "AFM"."MKT_ALLOC_LOCL" saw_16, "AFM"."INTERACTION_BASE" saw_17, "AFM"."INTERACTION_LOCL" saw_18, "AFM"."CURRENCY_EFFECT" saw_19, "AFM"."TOT_EFFECTS_BASE" saw_20, "AFM"."TOT_EFFECTS_LOCL" saw_21, "AFM"."SEC_SEL_BASE" - "AFM"."SEC_SEL_LOCL" saw_22, "AFM"."MKT_ALLOC_BASE" - "AFM"."MKT_ALLOC_LOCL" saw_23, "AFM"."INTERACTION_BASE" - "AFM"."INTERACTION_LOCL" saw_24, "AFM"."TOT_EFFECTS_BASE" - "AFM"."TOT_EFFECTS_LOCL" saw_25, "AFM"."EFF_DT" saw_26 FROM "Perf Attr" WHERE ("HIER_DIM"."CD_DSC_LV1" <> ''Total'') AND ("AFM"."GRP_ID" = ''3699'') AND ("AFM"."ATTR_REF_DIM_KEY" = 2) AND ("AFM"."EFF_DT" = ADD_MONTHS(DATE ''10/31/2012'', -1))')}
    Regards,
    Vijay.

    I had already tried this before and it didn't work either.
    Just to point it again, I am defining this In the filter, under More Options->Presentation Variable.
    i have also tried doing "Convert this filter to SQL" and passed
    ("ATTR_FACT_MTHLY"."EFF_DT" IN (ADD_MONTHS(@{pvEffDt}, -1)))
    Just to verify the same, I tried
    ("ATTR_FACT_MTHLY"."EFF_DT" IN (ADD_MONTHS(TO_DATE('31/10/2012', 'DD/MM/YYYY'), -1)))
    but even this did not work.
    I really don't know how to make it work. I simply need the filter to have the value "Chosen date's previous month".

  • Displaying Session Variable on Dashboard & creating presentation variable

    Hi.
    I read a bit more on mysupport and it seems that :xdo_user_roles somehow displayes all kind of roles not the ones that the user acutally belongs to.
    Now I wonder if I can use NQ_SESSION.GROUP in the BI Publisher data model.
    (A)I figured that I can create a "list of values" in the data model and there I can select Oracle BI EE as a data source. maybe in the repository I can create a column that holds the nqsession_groups that I then use in the data model sql. assuming I can use a list of values in the sql.
    (B) or I pass it as a parameter to the report/data modell just like a normal dropdownlist parameter (presentation variable)
    Then I tried adding a text item on the dashboard with
    @{biServer.variables[NQ_SESSION.USER.displayName]}
    or
    Session Variable My Year : @{biServer.VARIABLES['v_USER_GROUPS']} *
    BUT none of them actually display any variables. :/
    *this one I created in the repository and has the correct values                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    When I remove "authenticated-role" from the BIConsumer Role in EM and visit my dashboard again I can see that the user is ONLY in role "AuthenticatedUser" now I wonder why this is the only one, I created a custom role in EM and added the user to that one but it does not show :/

  • Issue with SQL Query with Presentation Variable as Data Source in BI Publisher

    Hello All
    I have an issue with creating BIP report based on OBIEE reports which is done using direct SQL. There is this one report in OBIEE dashboard, which is written using direct SQL. To create the pixel perfect version of this report, I am creating BIP data model using SQL Query as data source. The physical query that is used to create OBIEE report has several presentation variables in its where clause.
    select TILE4,max(APPTS), 'Top Count' from
    SELECT c5 as division,nvl(DECODE (C2,0,0,(c1/c2)*100),0) AS APPTS,NTILE (4) OVER ( ORDER BY nvl(DECODE (C2,0,0,(c1/c2)*100),0))  AS TILE4,
    c4 as dept,c6 as month FROM 
    select sum(case  when T6736.TYPE = 'ATM' then T7608.COUNT end ) as c1,
         sum(case  when T6736.TYPE in ('Call Center', 'LSM') then T7608.CONFIRMED_COUNT end ) as c2,
         T802.NAME_LEVEL_6 as c3,
         T802.NAME_LEVEL_1 as c4,
         T6172.CALENDARMONTHNAMEANDYEAR as c5,
         T6172.CALENDARMONTHNUMBERINYEAR as c6,
         T802.DEPT_CODE as c7
    from
         DW_date_DIM T6736 /* z_dim_date */ ,
         DW_MONTH_DIM T6172 /* z_dim_month */ ,
         DW_GEOS_DIM T802 /* z_dim_dept_geo_hierarchy */ ,
         DW_Count_MONTH_AGG T7608 /* z_fact_Count_month_agg */
    where  ( T802.DEpt_CODE = T7608.DEPT_CODE and T802.NAME_LEVEL_1 =  '@{PV_D}{RSD}' 
    and T802.CALENDARMONTHNAMEANDYEAR = 'July 2013'
    and T6172.MONTH_KEY = T7608.MONTH_KEY and T6736.DATE_KEY = T7608.DATE_KEY
    and (T6172.CALENDARMONTHNUMBERINYEAR between substr('@{Month_Start}',0,6)  and substr('@{Month_END}',8,13))
    and (T6736.TYPE in ('Call Center', 'LSM')) )
    group by T802.DEPT_CODE, T802.NAME_LEVEL_6, T802.NAME_LEVEL_1, T6172.CALENDARMONTHNAMEANDYEAR, T6172.CALENDARMONTHNUMBERINYEAR
    order by c4, c3, c6, c7, c5
    ))where tile4=3 group by tile4
    When I try to view data after creating the data set, I get the following error:
    Failed to load XML
    XML Parsing Error: mismatched tag. Expected: . Location: http://172.20.17.142:9704/xmlpserver/servlet/xdo Line Number 2, Column 580:
    Now when I remove those Presention variables (@{PV1}, @{PV2}) in the query with some hard coded values, it is working fine.
    So I know it is the PV that's causing this error.
    How can I work around it?
    There is no way to create equivalent report without using the direct sql..
    Thanks in advance

    I have found a solution to this problem after some more investigation. PowerQuery does not support to use SQL statement as source for Teradata (possibly same for other sources as well). This is "by design" according to Microsoft. Hence the problem
    is not because different PowerQuery versions as mentioned above. When designing the query in PowerQuery in Excel make sure to use the interface/navigation to create the query/select tables and NOT a SQL statement. The SQL statement as source works fine on
    a client machine but not when scheduling it in Power BI in the cloud. I would like to see that the functionality within PowerQuery and Excel should be the same as in Power BI in the cloud. And at least when there is a difference it would be nice with documentation
    or more descriptive errors.
    //Jonas 

  • Presentation variable in column formula issue

    Hi,
    I'm having an issue about putting a presentation variable in a column formula. I'm using obiee 11.1.1.7.141014
    I'm adding a text in a formula column where I use two presentation variables: pPeriodo and pAno
    pPeriodo invoques the month selected in a prompt and pAno the year. I have to compare different years, so in one member I use @{pAno} when is the selected year and @{pAno-1} when is the prior year.
    The result of this (please see the header of the 2nd column):
    The problem is when Icompare to next years. So my issue happens when I do an addition to the presentation variable: @{pAno+1}
    It doesn't do the sum; it concatenates the value as you can see in the following images
    If anyone have a workaround about this, please share.
    Regards,
    Miguel

    Hi Joven
    Try @{pAno}+1 instead of @{pAno+1}
    Regards
    Rajagopal

Maybe you are looking for

  • PSE 6 generating thumbnails on 128 pics for 2 days

    I'm running Win 7 and PSE 6 and have 37,000+ pics and videos in my catalog...been using PSE since v2. I came home from vacation the other day, imported 128 pics from an SD card, and PSE 6 has been generating thumbnails for those pics for almost 2 day

  • Packagemaker Problem

    Hi I am creating installer for mac with Package maker. I need to create Alias after the instalation. So added     ~ /Desktop to Alias path. But its not creating Alias File on Desktop. But i changed it to System Drive it works. any Tips ? Thanks in Ad

  • Sender on 6.1 receiver on 7.1

    Hi, I have a question regarding the compatibility between different versions of Web Logic to run JMS. Our current application have two sub applications both running on WebLogic 6.1 and using JMS. We are going to upgrade one sub app. with WebLogic 8.1

  • Finder has heavy CPU usage: Causing fan to spin constantly

    Hi, I recently upgraded to Leopard. The upgrade went perfectly. The only thing thats annoying me is that the FINDER is causing heavy CPU usage which is causing my MacBook's fan to spin constantly. I've figured out that the problem is most likely FIND

  • Fatal error message while updating to os 6

    I have a bold 9700 and am try to update my current 5.1 (?) software to 6.0 and receive a fatal error message while updating. Any suggestions?