Using prompts as a filter

I have reporting where I want to report the difference between amount from one year to another year.
I want to pass Year and Year as prompts And then use them to filter my amount column
So amount where year = prompt1 and amount where year = prompt2
and calculated item amount - amount
is this possible?

Accomdate the 2 filters with the presentation variables and then pass the same presentation variables to the column where you need to calculate the change between the 2 years...
mark if helpful/correct..
thanks,
prassu

Similar Messages

  • How to use Prompts in the Filter created in Change Report Properties

    Hi all,
    I have created one Datetime prompt in Change report properties dialogue box.
    Now how can I use this same one in the filter ??
    Since I didn't get Surface and Prompt option for the Date field in the filter.
    Any help is appreciated.
    Thanks

    Actually problem is with Datatype..It was timestamp but it should be Datetime

  • How to calculate the value from prompt and use the value as filter

    Hi everyone,
    I am designing a OBI query. I want to write a query and one of it filters comes from the dashboard prompt. Say I want to make a query to pull out the record for 3 consective years and user wants to enter the last year # and omit entering the first 2-year code#.Thanks!

    Hi,
    if i understand your question
    you have a prompt for year.. and it's assigned with presentation variable, say: var_year
    And you are just entering value for only one year, say 2000.
    Then, the request (which is using that prompt value as filter) should display year values 2000, 2000-1 (i.e. 1999), 2000-2 (i.e. 1998).
    Is this your requirement?
    If then,
    Hope you are using edit box as control for year prompt and assign a presentation variable for that prompt.
    Now, in report go to filter of year prompt, click on advance > Convert this filter to SQL.
    write here... *Times.Year between @{var_year} and @{var_year}-2*
    And make sure that your var_year is integer, if not cast it to integer

  • Using sql in the filter expression

    For a project I need to use a filter which is a construction
    with BETWEEN dateFrom AND dateTo.
    But the user does not choose these datevalues,
    he chooses timePeriods which have a unique startDate.
    The dashboard prompts are populated with these timePeriods and the user chooses 2 of these and 2
    presentation variables are set.
    Now I need to retrieve the according startDate for a chosen timePeriod.
    I tried to do this using a sub-query in the filter expression,
    but this seems not to be valid in Answers.
    In standard SQL it is expressed like this:
    select table1.* from table1
    where table1.dateValue  BETWEEN
    +(select table2.startDate from table2 where table2.timePeriod = 'theChosenValue1')+
    AND
    +(select table2.startDate from table2 where table2.timePeriod = 'theChosenValue2')+
    The return of the subqueries are single row, as it should in such constructions.
    I want the where clause to be in the filter expression for the dateValue column in Answers.(trimming of the WHERE keyword)
    Is there any other construction that does this trick in the BI Answers/Dashboard environment to do this?
    Kind regards

    Hi Micek,
    Thanks for your quick reaction.
    Yes you are right the ChosenValues will be replaced by presentation-variables in the final dashboard,
    I just am testing it with constant values in the Answers module.
    The problem seems to be that it is not allowed to use a sub-query in the filter expression.
    The Answers web application says there is a syntax problem near <select>, while I expect the SQL to be valid.
    I guess not all regular SQL is allowed in filter expressions.
    And since the report does not try to fetch data, no log of a generated, real SQL is written to the logfile.
    I need some alternative for the subquery, but one that is allowed in the filter expression.
    The problem is based on the fact that the user chooses a different value then the one that is filtered on.
    The timePeriods represent just one startDate, but I cannot use timePeriod itself to filter on.
    Because I need a between value, wich does not make sense for a timePeriod element
    such as '01-08' or 'JAN-08'.
    Several timePeriod notations are used, so using SubString and || to calculate a numeric value from the timePeriod varchar2 is not a good option.
    The error says:      
    Error getting drill information: SELECT "....
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SELECT>: Syntax error [nQSError: 26012] . (HY000)
    Any input is welcome
    kind regards

  • Using prompt results in formuls.Is it good to have them in a report level or universe level?Here is the requirements.

    User enters year for which sales need to be shown for entire year and past year.Most of the time this would be current year and past year.
    But here if i put filter on report level for current year and add another query for past year,my report is only showing sales for query1 and showing blanks for another query.
    Can some one please help me with it?

    Hi Rajeswari,
    You need to further elaborate your requirement.
    Seems like the second query does not have data for last year.
    What are you trying to achieve?  Are you using prompts input in your report?
    Regards,
    Yuvraj

  • How to create prompt for inline filter?

    HI All. Can anyone plz help me, how to create prompt for inline filter?
    Let me give an examle...
    Suppose I've taken two columns as # of New Invoices and # of Cancelled Invoices
    Now, If I set a date prompt / month prompt, then the "# of cancelled invoices" column will fetch the number of cancelled invoice for that month only, which I have chosen in the prompt. But I want the "# of cancelled invoices" column to fetch data for the month chosen by me in another prompt.
    So, can anyone help me with the sql statement, which will fetch the prompt data (i.e., month / date chosen by the user) automatically and will furnish the result accordingly.
    Thanks.

    To create a column prompt:
    To create a dashboard prompt, use the following sub-procedure.
    Navigate to the Oracle BI Enterprise Edition Home page, locate the global header, hover the mouse pointer over the New menu to access the menu, and select Dashboard Prompt. From the Select Subject Area menu, select the subject area for which you want to create a prompt. The "Definition pane" is displayed.
    Click the New toolbar button in the Definition Pane to access the prompt type selection list. From the list, select Column Prompt. The "Select Column dialog" is displayed.
    Select a column and click OK. The "New Prompt dialog" displays. If your repository is configured for double columns, then ensure that you select the correct display column. For information on double columns, see "Understanding the Double Column Feature".
    The number of columns that you include in a prompt can affect performance. In general, you should limit the number of columns to as few as possible.
    If you are creating a dashboard prompt and want to add or remove related subject areas, then click the Select subject area button in the "Select Column dialog" to display the "Add/Remove Subject Areas dialog".
    To create an inline prompt, use the following sub-procedure.
    Create a new analysis or access an existing analysis for which you want to create a prompt. Click the Prompts tab. The "Definition pane" is displayed.
    Click the New toolbar button in the Definition Pane to access the prompt type selection list. From the list, select Column Prompt. The analysis' selected columns are displayed in the cascading menu that is adjacent to the Column Prompt selection item.
    http://webmastersomesh.com

  • Create prompt with date-filter and initialize it with current date

    Oracle BI 11 g
    Hi!
    I need to create dashboard prompt with date-filter and initialize it with current date. How can I do that?
    I tried to create repository initialization block and add variable. But I don't know what should I write to DataSource? I tried to use functions Now(), Current_Date, sysdate (for example, SELECT Now() FROM tbl_Calendar) but without results - when I pressed "Test..." button I got errors - something like "Now() is unknown function" or "Incorrect syntax near key word Current_Date".
    After that I tied to use Presentation Variable in Prompt, but also without success ((
    Please, help me.

    I've created Repository Variable "CurrentDate", using SQL-query like this "select convert(varchar(10), getdate(), 104)" and now this variable is being initialized by value "07.04.2011". But I don't understand how to use this varible in DashboardPrompt! What item in list "Default selection" I should choose - "Variable Expression", "Server Variable" or something else? When I chose "Variable Expression" and write "CurrentDate" I got just string "CurrentDate" when preview Prompt. @{CurrentDate} gave me the same result.

  • Error in using a variable in filter condition in an Interface

    Hi All,
    I am using a variable in my interface in a filter condition. I have an EMP table of scott schema and want to pull all the records wiht hiredate date lying between 2 dates, incremental pull.For this I have created 2 variables and using them in the filter condition. I am getting an error inthe interface when I run in a package after declaring and refresing the variables.
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
         at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    Regards,
    Krishna

    Hi Krishna,
    What is the datatype of the Variable lastupdate ?
    In my case
    Variable
    Name : LastUpdateDate
    Datatype : Alphanumeric
    Action : Historize
    Query : select to_char(to_date(sysdate,'DD-MON-YY'),'DD-MON-YY') from sys.dual
    Then in filter I used
    EMP.HIREDATE>to_date('#LastUpdateDate','DD-MON-YY')
    Thanks
    Sutirtha

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

  • Error while using the Geospatial Range FIlter

    Hello,
    When I try to use the Geospatial Range Filter I get the error:
    javax.portlet.PortletException: com.endeca.portal.data.DataSourceException: An error occurred while executing query: exception encountered while executing external function 'internal:navigation-query', caused by error endeca-err:MDEX0001 : Invalid input : Error in selection filter: "DISTANCE" is not a valid function on the types (mdex:geocode-set, mdex:geocode)
    Can anybody help me?
    Thanks!
    Marco

    Marco,
    you are dealing here with trying to use a function DISTANCE on mdex:geocode type and mdex:geocode-set, where:
    mdex:geocode Represents a latitude and longitude pair. Used for atomic values (from single-assign geocode attributes).
    mdex:geocode-set  Represents a latitude and longitude pair. Used for sets (from multi-assign geocode attributes).
    However, many functions and operators work on atomic data types and do not support sets.
    Quoting from the EQL Guide:
    Important: With three exceptions, all the functions and operators described in this chapter work only on atomic data types. That is, they are not supported with sets. The three exceptions are
    ARB,COUNT, and
    COUNTDISTINCT. For information on the set functions, see  Sets and Multi-assign Data.

  • How to use, Case function and Filter in Column Formula?

    Hello All,
    I am using case function and also would like to filter value to populate.
    Below is showing error :
    case
    when '@{Time}' = 'Year' then "Time"."Fiscal Year"
    when '@{Time}' = 'Quarter' then "Time"."Fiscal Quarter"
    when '@{Time}' = 'Month' then FILTER ("Time"."Fiscal Period" USING "Time"."Fiscal Period" NOT LIKE 'A%')
    else ifnull('@{Time}','Selection Failed') end
    Thanks, AK

    when '@{Time}' = 'Month' then FILTER ("Time"."Fiscal Period" USING "Time"."Fiscal Period" NOT LIKE 'A%')I dont think Filter this works here or any other data types except number.
    Try to use option Column's->Filter->Advanced->Convert this filter to SQL
    If helps mark

  • Needs help in using Discrete Extended Kalman Filter.vi

    Dear fellow members,
    Currently I am working on a research estimating tremor parameter from patients using Discrete Extended Kalman Filter.
    I am from Nanyang Technological Univeristy Singapore.
    Now, I face a problem in running the Kalman Filter. The error board keep saying that my E(v) has wrong dimension although I have checked my code several times but not find any mistakes in dimension.
    Please advice.
    Thank you.
    Attachments:
    kalman filter.vi ‏23 KB
    SIM Discrete Nonlinear Plant Model.vi ‏35 KB
    acc_emg.vi ‏41 KB

    The related vi(s) were attached

  • SPSiteDataQuery - filter by file Title - Can I use variable for the filter value?

    I use SPsiteDataQuery to search across multiple lists and filter by file title. I have the file title information in a variable.
    Can I use variable in the filter value?
    string fileName = "Policies.doc"
    SPSiteDataQuery spQry = new SPSiteDataQuery();
    spQry.ViewFields = "<FieldRef Name='Title'/><Value Type='Text'>fileName</Value>"

    If I have understood correctly, you want to search based upon a File title in all the sites. You can include a query to filename in the spQry
    spQry.Query = "<Where>" +
    "<Eq>" +
    "<FieldRef Name=\"FileLeafRef\"/>" +
    "<Value Type=\"Text\">" + fileName + "</Value>" +
    "</Eq>" +
    "</Where>";
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • How to pull groups from more than one OU using weblogic "All Groups Filter" from AD.

    Hi,
    Please help me for pulling groups from more than one OU using weblogic "All Groups Filter" from AD.
    AD structure is:
    c001639domain.local
           ||
           ||
        OU=Security_Groups
                      ||
                      ||
                      >> OU=CORP_ECM---> n number of group
                      >> OU=CORP_hodata--> n number of group
                      >> OU=CORP_citrix--> n number of group
                      >> OU=CORP_driver --> n number of group
                      >> OU=CORP_temp --> n number of group
    Requirement is i want to filter groups from OU=CORP_ECM and OU=CORP_hodata.
    Thanks,
    Jagan.

    I used below option but its not working getting zero groups.
    (&(objectClass=group)(|(ou=CORP_ECM,dc=Domain,dc=com)(ou=CORP_hodata,dc=c001639domain,dc=local)))

  • How to use prompt with ppt

    Hello,
    Using obiee 11g,
    I am trying use MS Office Powerpoint with BI.
    So i downloaded the tool and then connected to BI Server login to MS office ppt.
    After login i tried to drag one report.
    When i did it told me "View cannot be inserted beacuse the result set may be empty".
    So this problem was caused because i am using dashboards prompts in my dashboard.
    How can i use dashboard prompts here in the ppt?
    Thanks

    Hello,
    Actually I am not using Bi publisher at all.
    What i did was.
    I downloaded the oracle bi for MS office.
    Then i installed.
    Then opened a PPT.
    Login to OracleBI inisde the PPT.
    Dragged a report/answers from catalog.
    But since there is a dependency on the prompts value there its sowing no results found.
    So i just wanted to know how to use prompt value.
    The link which u gave tells to use BI publisher parameter name and all.
    I dont have much idea regarding BI publisher.
    Thanks

Maybe you are looking for

  • I have a sony rx100 and my version of lightroom (4) will not recognize the raw (.ARW) files. Please help!

    I have a sony rx100 and my version of lightroom (4) will not recognize the raw (.ARW) files. Please help!

  • BUGS: stop at last image and scrollable frames

    Hey, I think I've identified two bugs in the latest release: 1) MSO slideshows that have Autoplay checked, don't respect the "Stop at last image" option, and return to the first stage regardless. This behavior only occures some of the times, and I am

  • Apple's Update Server Slooooow?

    i'm getting about 70kbps when downloading the 10.5.2 combo update, yet when i test my download speed at several other speed test sites, i get between 700kbps and 1.6mbps. is this a dns thing? i had the same issue the other day when trying to rent a m

  • Need to open a case for Windows Server 2008

    Hi, I'm new to this forum and my first impression is that it is "not friendly" :( I'm looking for a section where to post a Windows Server issue, but there is not a topic for that. Where could I post it? Thanks Max

  • I can't pay for my book!

    I can not manage to retrieve the date of delivery or paying my book! I will not proceed to checkout! I have made the settings to be made but it does not work! I have the same problem as Anton. The settings on my Mac with the correct settings which yo