Filtering with presentation variable in my report

Hi experts,
I'm using Essbase with Obiee 11g.
I have entity dimension like this:
Gen1, Entity
Gen2, Entity
Gen3, Entity...
Each Gen is a hierarchy.
I have a prompt in my dashboard that is a number: 1, 2, 3... with presentation variable = num
When prompt was number 3 I need to filter with Gen2, Entity.. if is number 2 with gen1, entity.. Always -1
In my report I can general filter like this: Gen@{num}, Entity and I see report OK, My requeriment is @{num}*-1* like: Gen@{num}, Entity but I have an error...
Can I do this??
Thanks!!!

You need to get the number using substring, substract it and then concat to the string "Entity"."Gen
There is another way for the same, Based on the value from prompt can validate the column to show in the report.
Try this scenario:
I've a prompt Time.Week
in the report I've picked two columns,
Column1: Time.Week--> set to isprompt
Column2: with exp
CASE WHEN Time.Week = '2012 Week01' THEN Time."Month Name" ELSE Time."Month" END
I've used existing columns to mimic your scenario
Edited by: svee on Jul 2, 2012 9:52 AM

Similar Messages

  • Can I pass parameters from a dashboard via a dashboard prompt and presentation variable to publisher report based on a data model with select statements in OBIEE 11g ?

    I have a publisher 11g (v 11.1.1.7)  report with a single parameter. The report is based on a data model not a subject area.  I created a dashboard put a dashboard prompt and link to the report in separate section on the same page.  The dashboard prompt sets a presentation variable named the same as the parameter in the report. 
    The problem was when I created the dashboard prompt, it forced me to select a subject area which I did (though did not want to) and then I created both a column and variable prompts. But clicking on the
    report link completely ignored the value that I thought would be passed in the presentation variable to the report.
    Side note :  My report uses a pdf template for its layout where I have mapped the columns names from my data model to the form fields on the pdf form.  I noticed that if I create a publisher report based on a subject area, then I do not have the choice to choose a PDF as a template type for my layout.  (I only see BI Publisher Template as a choice). 
    I see some documentation online that suggest it could be done in 10g.
    Thanks
    M. Jamal

    Ok,
    I just tried that and it still doesn't pass anything to the prompt.
    I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
    This is the URL maybe I messed something up...
    https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
    thanks

  • Issue with presentation variables, dashboard prompt and filter

    Dear Guru's,
    I have a question about constraining a request with presentation variable set by a dashboard prompt. I have a dashboard prompt, that stores its value in a presentation variable . The prompt is about region. When the dashboard opens, the default of the prompt is all choices and it needs to show my reports with "All Choices". I've created the following filter on my two reports on the dashboard:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    One report is just the column "Dim Student"."Region" (to see if it works) and with this report the above filter works just fine. When nothing is prompted it shows "All Choices" when a choice is made the report responds accordingly.
    BUT
    The second report on my dash with the same region column, but extended with some time dimension columns and a measure gives an error which I'm not able to solve.
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14023] None of the fact sources for ToDate(# Feitelijke Instroom:[DAggr(Feit Instroom en Uitstroom Opleidingen.# Feitelijke Instroom by [ Dim Tijd.Maand Omschrijving, Dim Tijd.Maand Nummer, Dim Tijd.Jaar, Dim Kwalificatie.Kwalificatie Niveau, Dim Leerling.RCBREGIO Regio] )], [Level JAAR]) are compatible with the detail filter [Dim Tijd.Maand Nummer = 3, Dim Tijd.Jaar = 2010].+
    +(HY000)SQL Issued: SELECT "Dim Tijd".Jaar saw_0, "Dim Tijd"."Maand Nummer" saw_1, "Dim Tijd"."Maand Omschrijving" saw_2, "Dim Kwalificatie"."Kwalificatie Niveau" saw_3, "Dim Leerling"."RCBREGIO Regio" saw_4, "Feit Instroom en Uitstroom Opleidingen"."# Feitelijke Instroom Cumulatief" saw_5, REPORT_SUM(saw_5 BY saw_0, saw_1, saw_2) FROM repos_x WHERE ("Dim Tijd".Jaar = 2010) AND ("Dim Tijd"."Maand Nummer" = 3) AND (("Dim Leerling"."RCBREGIO Regio" = 'Noord-Oost') OR ('Noord-Oost' IS NULL)) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4+
    While the exact same report but without the "or '@{variables.GILLES}' IS NULL" doesn't throw any errors but doesn't show the "all choices" by default.
    The ultimate goal to achieve is to build a dashboard with several reports from several subject areas with one single prompt that opens default with "all choices" and constrains the reports accordingly.
    Any help is highly appreciated.
    Kind Regards,
    Gilles

    Phani,
    I know "All Choices" is a special value and that it doesn't represent NULL. My filter construction seems to work fine.
    My filter condition:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    When it's set by the prompt it filters the request accordingly (first condition evaluates to true), when it's not set the second condition evaluates to true and shows all the results (or it's not filtered).
    The problem is that it doesn't work when time dimensions are combined with this filter. Then it throws the error mentioned in the first post.
    By the way: your suggested solution doesn't work.

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

  • How to get a "char variable" with presentation variable???

    I want to pass a char variable with presentation variable, I don't have problems if I pass "int".
    For example in answers page I add a column that contains years of my dimension. 2000 until 2012 and prompted my presentation variable "year" (from my dashboard prompt) and when I go to dashboard if I choose in my prompt 2006 in my report appear 2006...any problem and easy. But my problem is if I would pass a char variable, in my prompt also I have months but not numbers else names: January, February, March...and a presentation variable that name is "month". If I do the same report but change column year to month (name) I don't have any results and I have an error.
    How can I solucionate this???
    Thank you!!

    Alex,
    Do you have separate columns for Year and Month Name. If Yes, Then why it is so confusing?
    1. create a dashboard prompt with month name column
    2. Assign it to monthname variable
    3. In your report use above variable any where.., but what ever you are doing should be logical and valid to get some data.
    In general above approach will work.
    You said, "No! I don't want to do a filter with month! I would like to pass this variable, in this example don't make sense but I need to pass a char variable with presentation variable to do another things..."
    what does that mean, what you are trying to do with the variable in your report. If you give a example that would be better.
    - Madan

  • Weird behaviour in report filter with Presentation variables

    Hi All,
    I'm facing a weird behaviour on filtering the report using presentation variables
    Prompt:
    1. Start Date assigned to PV_ST_DT
    2. End Date assigned to PV_END_DT
    Report
    In the filter section given the "between" condition with these two presentation variable
    Fiscal Date between {@PV_ST_DT}{01/01/1990} AND {@PV_END_DT}{01/01/1990}
    this given filter condition results in the report like
    Fiscal Date is equal to ({@PV_END_DT} value)
    the filter criteria is not applied as I given, I have tried by changing the conditions like greater than or equal to , less than or equal to. The filter applied only the last presentation variable value with the prompt condition, It is not taking the condition specified in the report.
    Can anyone provide a solution on this?

    Below format: works perfectly fine
    Fiscal Date BETWEEN '@{PV_ST_DT}{01/01/2007}' AND '@{PV_END_DT}{01/03/2007}'

  • Use of Presentation Variables in Navigated Report Title

    Hi All,
    It's regarding the presentation variable in report title. I have value interaction to another report based on Prompted values. But when we click on the value it will go to another report page and giving the results, but the title view is not changing as per the requested value. The title should change dynamically, but it is showing the P.Variables in place of prompted value.
    Below are the ways i have used the P.Variables:
    @{brand1} at @{customer}, @{sensitivity}% Sensitivity
    @{brand1}{'Prod'} at @{customer}{'CVS'}, @{sensitivity}{'15'}% Sensitivity -----(default values here)
    Version : OBIEE 11.1.1.5.0
    Could you provide me the solution for this issue.
    Thanks in Advance,

    Hi,
    You can use the presentation variable when you are passing the value from the prompt and filtering after
    clicking on the 'GO' or 'APPLY' button. So that assigns one value and is passed in the report in the
    page used.
    What you need to do is you need to have the 'is prompted' for the column used in the title
    or you can make the column is equal to @{pres_var}.
    But still if you dont use the columns in the report and you dont want to filter the report with the title columns
    then you can use narrative view with all the columns used in the title and have 'is prompted' and make its formatting similar to title view and save as a separate report
    And place the narrative view above the report
    Regards,
    MuRam

  • Set filter (with presentation variables) for requests using "SQL Issued"

    if I have a "SQL issued":
    SELECT saw_0 saw_0, saw_1 saw_1, saw_2 saw_2, saw_3 saw_3, saw_4 saw_4 FROM (
    SELECT saw_0 saw_0, saw_1 saw_1, SUM(saw_2) saw_2, SUM(saw_3) saw_3, SUM(saw_4) saw_4
    FROM
    SELECT "Period"."YearMonth" saw_0, "Customer"."CustomerName" saw_1, COUNT("Sales"."SalesDate") saw_2, "Sales"."No.OfConsumer" saw_3, 0 saw_4
    FROM CRM
    WHERE ("Period"."YearMonth" >= 200904) AND ("Period"."YearMonth" <= 200910)
    UNION ALL
    SELECT "Period"."YearMonth" saw_0, "Customer"."CustomerName" saw_1, 0 saw_2, 0 saw_3, Count("SuperSales"."SuperSalesDate") saw_4
    FROM CRM
    WHERE ("Period"."YearMonth" >= 200904) AND ("Period"."YearMonth" <= 200910)
    ) t1
    GROUP BY saw_0, saw_1
    ORDER BY saw_0, saw_1
    ) t2 ORDER BY saw_0
    actually, in this request, I would like to set a filter for "Period"."YearMonth" using presentation variable.
    is it possible to do this ?
    Thanks !!

    Hi Forreging,
    You can use presentation variables, but not if you are directly setting the SQL via the Advanced tab.
    Instead, build up the first report just like the first part of the UNION statement. Then use the "Combine with Similar request" to build up the logic for the second part of the query.
    When you approach it this way, you have the ability to set filters on each "Sub-Request" via the Criteria tab. Otherwise, OBIEE only lets you add a filter at the outer level of the query when you go the route of setting the SQL in the Advanced tab.
    Good luck and if you find this post useful, please award points!
    Best regards,
    -Joe

  • OBIEE 11g Front End Calculations with Presentation Variables Error

    Hi Guru's,
    Long time user first time poster to the forums but hopefully you can help.
    I have a requirement to perform an aggregation on certain fields with a dynamic grouping requirement (so users can select which grouping they require ie, sum profit by [outlets or companies or region]).
    The approach I am using is a prompt setting a presentation variable with the possible groupings for the calculation as choices, and a column in the report with a formula to SUM("table"."column" by "@{variable}{default}") this also contains a dynamic column name containing the presentation variable too.
    Where the column could be profit and the variable prompt options could be outlet, company or region (from the above example).
    This is currently separate from the RPD due to the dynamic nature required with groupings changing at run time and is done in the front end.
    However on selecting some columns via the prompt I receive this error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22027] Union of non-compatible types. (HY000)
    This only occurs on some field groupings, and is not a certain type in particular. (Including both short date, short time and varchars).
    Any ideas where this problem could stem from?
    Regards.

    Based on given info: Try this
    SUM(cast("table"."column" as int) by "@{variable}{default}")
    Pls mark if helps

  • 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 Variables in the report column

    Hi Experts,
    I have one requirement like when a Dealer log-in in the Monthly report there is one date prompt[format 1995/01] now i have to create one new column that column as to filter the data based on date selected by the Dealer in the prompt
    and the filter should be like this
    case when
    *date={selected date from prompt by the user}*
    then
    *{monthly sales of that particular Dealer}*
    result of this column i have to use in the other column.
    how i have to implement this logic can we do this by using presentation variables please let me know the syntax.
    Thanks in Advance,

    Write the case statement as below.
    case when
    date=@{Pv_Date}{1995}
    then
    {monthly sales of that particular Dealer}
    Pv_Date is the presentation variable name.
    Thanks

  • Presentation Variable Formatting in Report Title

    I have populated 3 presentation variables via a dashboard prompt. I also display their values in the report subtitle, but I did not expect the following format in the display:
    from TIMESTAMP '2009-10-19 00:00:00' to TIMESTAMP '2009-10-25 00:00:00' for Abilene
    The dates appear formatted as 10/19/2009 and 10/25/2009 in the dashboard prompt which is how I want them formatted in the title. Where is this subtitle formatting originating? So, I can reformat it.
    Edited by: Bob from Austin on Oct 26, 2009 11:28 AM

    Hi.
    I suggest you to read this first:
    How to change date format mask in date dashboard prompts - drop-down list and calendar
    http://108obiee.blogspot.com/2009/03/how-to-change-date-format-mask-in-date.html
    On the end of this post is a explanation of date format and presentation variable in the title:
    And you can find a complete example here:
    Date between in filter and title when using presentation variable from calendar dashboard prompt or drop-down list in OBIEE
    http://108obiee.blogspot.com/2009/03/date-between-in-filter-and-title-when.html
    Before everything customize instanceconfig.xml, change datatype of TABLE.COLUMN in the physical layer to DATE and keep on eye if you are using repository variables as default values to dashboard prompt, which datatype they have, character, date or timestamp, this can cause problems. That's explained in the posts above.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Print-time charting with shared variables on a report without groups...

    hello all,
    I have an interesting conundrum; I am working on a report (Crystal XI) with no groups to it, just several subreports. Presently the report is run weekly and sent to the manager of one of our departments.
    The report itself showcases all areas of the department with total tasks, longest outstanding task, average days outstanding, MTD tasks completed, and YTD tasks completed. Due to the variety of tables the data pulls from, I have it set up as subreports that simply display the data.
    All total, there are 20 different shared variables that have been obtained from 10 different subreports. I have the shared variables set as the running totals from the subreports (hence, all are print time). Since the running totals and all the subreports are time based and are not actually linked to ANYTHING on the main report, I am struggling with how to set up the formulas described in the white paper, "Charting on Print Time Formulas".
    The setting up of the two formulas ({@onchngof} and {@showval}) will be different for my situation, as all of the subreports run off of date information relative to when the report is ran. I've got all of the subreports that the shared variables originate in early in the report; but where to from here?
    Would I set up maybe a date grouping or some other non-essential consistent grouping to make it work? The way this report is, it really doesn't need grouping, because the main report is just a display agent for the subreports...
    As always, any help is greatly appreciated!

    Let me ask couple of questions before trying to resolve this.
    1. The chart you are trying to built is placed in which section and is it on Main report or sub-report of its own. This is needed because if you are trying to access shared variables values in Main report, the section should be below the sub-report placed sections.
    2. Try pacing few test formulas in Main report and make sure the correct values are being pulled in on Main report.
    If you are successfully pulling the variable values on the report, try creating a simple chart in report footer with the values you have pulled and see if its taking you somewhere...
    Would need more information on how those variables are being accessed form sub to main or sub to other sub for example are you making an array of those variables and splitting or bringing it in as separate...

  • Reports 6 using SRW.RUN_REPORT - problem with transferring variable to new report.

    I have one report "analyse" that calls another report "pdf".
    In "analyse" i have a function pdf_rep:
    FUNCTION PDF_Rep(c_proevenummer varchar2) RETURN boolean IS
    msg char(150);
    BEGIN
    SRW.Run_Report
    ('BATCH=YES
    REPORT=PDF
    DESTYPE=file
    DESFORMAT=PDF
    desname=test1.pdf
    p_proevenummer='||(c_proevenummer) );
    return(true);
    exception
         when srw.run_report_failure then
         msg := srw.geterr_run;
         srw.message(1,'err msg: '||msg);
         return(false);
    END;
    This function is called from BeforeReport-trigger. (or AfterParameterForm-trigger)
    The "pdf" query:
    select proevenummer
    from View_Analyse
    where proevenummer= :p_proevenummer;
    The "pdf" report is run and a test1.pdf file is made BUT the where-clause is NOT performed.
    What do i do wrong ?

    Hello,
    If you copy the parameters displayed by srw.message and create a BAT file with these parameters
    and rwrun60 :
    rwrun60 <the paremeters displayed by srw.message>
    Does the report run correctly ?
    Regards

  • Using LIKE with a variable in a report query

    Probably an stupid question, but I can't find the answer on this forum or by trying. How do use LIKE and a variable together in a query?
    The following solutions don't work f.e.:
    LIKE :P310_ENTITEITID%
    LIKE ':P310_ENTITEITID%'

    Hi Elmo
    Try '%'||:P310_ENTITEITID||'%'
    Elsie

Maybe you are looking for

  • Unable to see the gl balances in FS10N

    Hi, I am unable to see the gl balances in FS10n for the periods that were having the balances. I have activated the new GL and amounts that are posted only after activating the new GL are comming. What should I do to see the gL balances for all the p

  • Is there an enhanced equivalent of crs_stat -t command in 11.2 ?

    DB version: 11.2.0.1 Os : Solaris In 10gR2, we used crs_stat -tto check the status of cluster. Is there an enhanced equivalent of this command in 11.2 ?

  • No sleep with multiple users logged in

    Hi there, In order to access multiple iTunes-Libraries from my apple TV (Main, Archive, Childrens) I have set up three useraccounts on my macMini each with its own iTunes Library. When booting up I log in to all three accounts and start iTunes. It al

  • Re: Equium A210-1C4 - ATI CCC doesn't open on Vista

    Recently I have been unable to open the ATI Catalyst Control Centre on my Toshiba Equium A210-1C4 notebook. When I click the CCC icon on the start menu the tray icon opens but when I right click it and choose Catalyst Control Centre nothing happens b

  • KEEPS FALLING ASLEEP

    hi, the mac keeps just falling asleep as i am working away. i am down to about 30 gb left on the hd. i have checked the settings for sleeping and they are set to go to sleep after 10 minutes and also i have checked the hot corners too. a click gets t