the filter value (with presentation variables) for applications using "SQL issued.

If I have a "emitted SQL":


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
Of
(
(
SELECT 'period '. "" YearMonth "saw_0,"Customer. " "" CustomerName "saw_1, COUNT ('dirty'. ("' SalesDate") saw_2, "Sales". "' No.OfConsumer ' saw_3, saw_4 0
CRM
WHERE ('period'. ("' YearMonth" > = 200904) AND ('period'. ("' YearMonth" < = 200910)
)
UNION ALL
(
SELECT 'period '. "" YearMonth "saw_0,"Customer. " "" CustomerName "saw_1, saw_2 0, saw_3 0, Count ("SuperSales". "Saw_4 SuperSalesDate") "
CRM
WHERE ('period'. ("' YearMonth" > = 200904) AND ('period'. ("' YearMonth" < = 200910)
)
) t1
Saw_0 GROUP, saw_1
ORDER BY saw_0, saw_1
) t2 ORDER BY saw_0


in fact, in this application, I would like to set up a filter to 'period '. "" YearMonth "using the variable of presentation.
is it possible to do?
Thank you!!

Hi Forreging,

You can use variables of the presentation, but not if you directly set the SQL via the Advanced Options tab.

Instead, build up the first report like the first part of the statement of the UNION. Then use the "combined with a similar request" to build the logic for the second part of the query.

When approached in this way, you can set filters on each "subquery" via the criteria in other tab, OBIEE allows you to add an external to the level of the query filter when you go on the road to the SQL code in the Advanced tab.

Good luck and if you find this post useful, please give points!

Best regards

-Joe

Tags: Business Intelligence

Similar Questions

  • How to create the filter by date of request for access using database connectivity tool

    Hello

    I had started my project by reading the access data, using a UDL connection,

    but now I want to create a filter for access by using a query that would select two dates and get all the corresponding data, how to query using SQL Parmetrized?

    Best regards

    Note: I do not know the SQL language

    Hi salim_mjs,

    You must use the date format that I have used. It is independent of the format in your database. It should be "month/day/year".

    Mike

  • How to compare the new values with the old values in triggers.

    Dear all,

    Please tell me how to compare the new values with the old values in triggers.

    Hi, the employee example is in the document. You'd better read yourself.

    CREATE OR REPLACE TRIGGER Print_salary_changes
      BEFORE DELETE OR INSERT OR UPDATE ON Emp_tab
      FOR EACH ROW
    WHEN (new.Empno > 0)
    DECLARE
        sal_diff number;
    BEGIN
        sal_diff  := :new.sal  - :old.sal;
        dbms_output.put('Old salary: ' || :old.sal);
        dbms_output.put('  New salary: ' || :new.sal);
        dbms_output.put_line('  Difference ' || sal_diff);
    END;
    /
    
  • While trying to see Planner installation and operation, the test in local mode, the EXECUTION fails with message "Waiting for the number of virtual machines to register.

    While trying to see installation and operation Planner, the test in local mode with only 1 VM the EXECUTION fails with message "Waiting for the number of virtual machines to register.

    There may be a lot of problems in the desktop VM. Agent service see Planner is not running in VM Office. You can check in the event viewer to see what kind of error occurs. The most usual error missing file IP.txt c; drive or harness IP in the IP.txt produce if there is.

  • How to fill out the "to:" line with a variable email address?

    I'm new to coding and am not sure how to ask my question. I have a link in an 'Email' symbol that I would like to have the window open to a 'mailto', but there are several instances of that symbol on the timeline, each using a different email address. If the [symbol]. Email.Click code reads as follows:

    Window.Open ('mailto:'+ sym.getVariable = ("emailWindow"), "_self")

    and the line in the Stage.creationComplete code that is supposed to call the variable code reads:

    sym.getSymbol("Details_David").$("Email").html ("[email protected]" "").setVariable("emailWindow","[email protected]");

    With this code, the browser opens a window of mailto, but the ' to: ' line readings, "indefinite".

    Either in the [symbol]. Email code. Click, I have:

    Window.Open('mailto:"emailWindow"',"_self")

    without the "emailWindow" as the variable name, the "to:" line to the mailto line reads, "emailWindow".

    How to fill out the "to:" line with a variable email address?

    Otherwise, it works better:

    1)

    replace

    sym.getSymbol("Details_David").$("Email").html ("[email protected]").setVariable("emailWindow", "mailto:[email protected]");

    with

    sym.getSymbol("Details_David").$("Email").html ("[email protected]");

  • Hi I HAV a question... I use PS cs6 m having major problem can you please help me... whenever I have use the filter on sumthng Gallery or if I use a Quick Selection over all things low RAm error levonorgestrol tool... Although I have a huge memory?

    Hi I HAV a question... I use PS cs6 m having major problem can you please help me... whenever I have use the filter on sumthng Gallery or if I use a Quick Selection over all things low RAm error levonorgestrol tool... Although I have a huge memory?


  • How to count the number of columns in an oracle table using sql

    How to count the number of columns in an oracle table using sql

    You must put the name of the table in capital letters

    As

    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = 'EMP';
    
    or
    
    SELECT COUNT(1)
      FROM user_tab_columns
    WHERE table_name = UPPER('Emp');
    

    Concerning
    Arun

  • Entre-Filtre on the column using calculated values of presentation-variable

    Hi all

    I would like to know if it is possible to filter a column with an entre-declaration using two calculations on an single variable of presentation in Oracle BI answers


    What I have:
    -OBIEE 10 g
    A line chart that shows the revenue over a period of several years: in 1999, there could be € 100,000 in 2000, it could be € 80,000,..., in 2009, it might be €95,000 and so on.

    What I want:
    Now, I would like to create a dashboard can quickly choose a given year, for example, 2006.
    The table should then display the data for the year given (2006-...) and two years more early (2004, 2005) and two years after the year (2007,2008) chosen.

    Example:
    If 2006 is chosen, then the data from 2004 to 2008 should be indicated in the table
    If 2000 is chosen, then 1998 to 2002 data should be included in the table.
    [...]

    What I did:
    -J' created the prompt, set its presentation to var_yearvariable.
    -J' then I created a filter on my years column, choose "between" in the drop-down list.
    -J' added two 'Variable-fields in the filter dialog', each filled with var_year and a default value.
    -J' tried to add a + 2 or - 2 in the field of variable expression, but (of course) has been a mistake.

    Thanks in advance and greetings from the Germany,
    Chris

    Edited by: user12288481 the 04.08.2010 13:18

    Just reverse the filter:

    @{var_year} {2009} BETWEEN "-Dates. "" Date ISO year '-2 AND "-Dates. "" Date ISO year ' + 2

    concerning

    John
    http://www.obiee101.blogspot.com/

  • Screenshot URL WITH the VARIABLES for re-use?

    Hello

    I have an application that authenticates users only if a page is requested. Once they log in, I want to send them back to the page, they came, that required that they connect.

    BUT, I need to return to this page with a few variables URLS intact (pageID, sometimes another, it varies from one page to the next).

    I can't for the life of find me a way... to have messed with GetTemplatePath and others, looked at my book of Forta, have searched here and google... it seems like it should be easy, but I can't understand how to recover what I need.

    Help?

    Thanks in advance...

    Liz

    try cgi.query_string.

  • Query by example (QBE) for af:table - how to replace the filter "start with the behavior".

    ADF 11 g

    On a table with active QBE, a user can type an entry in the QBE and the search always seems to do a search 'start with '. For example:

    If I get a 'P' in the filter, then it will match '% P '.

    I would like to change this option to find "exact", if you want to.

    Is there a way to bypass this behavior?

    Frank has written an excellent article on the interception the http://www.oracle.com/technetwork/developer-tools/adf/learnmore/30-table-filter-queries-169172.pdffilter.

    I did this technique, and now I have a request to make '%p' without end '%' behavior when filtering. What this means, if a user enters "15.1', then the filter using '% 15.1'.» It should not find Let's say' Jade 15.1 +'.


    Thank you.

    You can check the technique I showed in my blog https://tompeez.wordpress.com/2013/02/16/jdeveloper-11-1-1-6-0-escape-qbe-operators-in-filterable-tables/ and crush getCirteriaItemClause.

    Timo

  • Filter the two columns with a variable

    Hi guys!

    I am new to Oracle BI EE and I following the task at hand.

    In my database, I've followed columns:

    ID | VALUE | VALID_FROM | VALID_TO

    The first is the unique ID, the second value I need to show my analysis, the latter two are dates.

    I need to prepare the analysis when user asks values at a time, so I'll have to show all lines where the date selected by the user is greater than VALID_FROM and smaller than VALID_TO (but the user must enter only once).

    I am a complete beginner and have no idea how prepare this analysis? Could you give me some advice?

    Best regards

    Greg

    I did not understand your exact need. A date value, will be user input.

    For example: 01.08.2014, then your analysis will be filtered by;

    01.08.2014 > VALID_FROM and

    01.08.2014<>

    If so, you can create a prompt for dashboard column and give set a presentation for this column. Then, you will use this presentation for valid_from and valid_to columns column.

  • Fun with presentation Variables

    Hi all-

    Recently, I built an analysis Sales Promotion Contribution of gross margin using reports built Answes, dashboards and dashboard invites you. The math for this analysis becomes complex because it applies for a period limited in time, aims to increase sales by a specific percentage increase and has to account for the incentives of the sales force and discounts to customers among other items deemed "Promo related Articles". I used guests from dashboard to create presentation variables which are then used in all of the elements of the promotion of calculated measures.

    My frustration with this approach, it's that I have to include a "column to filter in a dashboard command prompt. I can just create a command prompt to set a variable. I'm interested to hear from people who have encountered this situation and how they "worked around her. Here is my point of view:

    1. the guest on columns that are not in any of the reports. It is the simplest approach. As long as the column is not used by an another command prompt and is not in a report, you can "filter" it without having any impact on the results displayed in the dashboard. If the same column is used in two different guests, I found that setting a prompt automatically updates the values of all the other guests using the same column. If you invite him on a column used in a report it will apply a filter on this report (there are ways around that, but I simply avoid that situation using columns that are not included in reports for initialization variables of presentation).

    2. I intend to create a new query Table based in my area which is a "select... from dual ', have a list of columns that is simply the place with data holders different types that I can use for the creation of dashboard of guests that initialize variables of the presentation. The plan is that my query is always returns consecutive signle there touch now and external joined table of facts in the area in question so that I can include in my dashboard of guests without impact on the results of the query.

    Does anyone else have any other ideas?
    Oracle's plan to allow us to simply create guests from diashboard to initialize variables of presentation without impact on filter expressions?
    And what about the variables with filters in the range? I really want to create variables for 'Promo start week' and "Promo week end" but so far I've been prevented because they apply to the same column, and if I put one, the other will automatically change the same value.

    Instead of regurgitating what has already been explained, read this blog entry from Vincent. He explains what you are experiencing and what to do to achieve your results. Hope this helps you...

    http://oraclebizint.WordPress.com/2008/02/26/Oracle-BI-EE-101332-between-prompts-for-date-columns-using-presentation-variables/

    Edited by: David_T on May 19, 2010 10:00

    Edited by: David_T on May 19, 2010 10:00

  • reading the filter values (unsharp mask) defined in the dialog box

    for my sharpening script, I should be able to store values defined in the dialog for later use unsharp mask. The script calls the dialog box with DialogModes.ALL, then the values are set manually. Is it possible that I can tell the script to read the values defined and store them in variables.

    Can't find a topic referring to this problem.

    Thanks for any help.

    Hans

    2016, use it at your own risk.

    #target photoshop

    try {}

    var idUnsM = charIDToTypeID ("UnsM");

    var theResult is executeAction (idUnsM, undefined, DialogModes.ALL);.

    var theAmount = theResult.getUnitDoubleValue (stringIDToTypeID ("amount"));

    var theRadius = theResult.getUnitDoubleValue (stringIDToTypeID ("radius"));

    var theThreshold = theResult.getInteger (stringIDToTypeID ("threshold"));

    Alert ("amount" + theAmount + ' \nradius ' + theRadius + ' \nthreshold '+ theThreshold ")

    } catch (e) {};

    based on the code of michael l hale.

    function checkDesc2 {(theDesc)

    var c = theDesc.count;

    var str = ";

    for (var i = 0; i)

    Str = str + ' key "+ i +" = "+ typeIDToStringID (theDesc.getKey (i)) + ': ' theDesc.getType (theDesc.getKey (i)) +"\n"+ getValues (theDesc, I) +"\n ";

    };

    Alert ("desc\n\n" + STR);

    };

    check.

    function getValues (theDesc, number) {}

    switch (theDesc.getType (theDesc.getKey (theNumber))) {}

    case DescValueType.ALIASTYPE:

    Return theDesc.getPath (theDesc.getKey (theNumber));

    break;

    case DescValueType.BOOLEANTYPE:

    Return theDesc.getBoolean (theDesc.getKey (theNumber));

    break;

    case DescValueType.CLASSTYPE:

    Return theDesc.getClass (theDesc.getKey (theNumber));

    break;

    case DescValueType.DOUBLETYPE:

    Return theDesc.getDouble (theDesc.getKey (theNumber));

    break;

    case DescValueType.ENUMERATEDTYPE:

    return (typeIDToStringID (theDesc.getEnumerationValue (theDesc.getKey (theNumber))) + '_' + typeIDToStr ingID (theDesc.getEnumerationType (theDesc.getKey (theNumber)));)

    break;

    case DescValueType.INTEGERTYPE:

    Return theDesc.getInteger (theDesc.getKey (theNumber));

    break;

    case DescValueType.LISTTYPE:

    Return theDesc.getList (theDesc.getKey (theNumber));

    break;

    case DescValueType.OBJECTTYPE:

    return (theDesc.getObjectValue (theDesc.getKey (theNumber)) + '_' + typeIDToStringID (theDesc.getObject Type (theDesc.getKey (theNumber)));

    break;

    case DescValueType.RAWTYPE:

    Return theDesc.getReference (theDesc.getData (theNumber));

    break;

    case DescValueType.REFERENCETYPE:

    Return theDesc.getReference (theDesc.getKey (theNumber));

    break;

    case DescValueType.STRINGTYPE:

    Return theDesc.getString (theDesc.getKey (theNumber));

    break;

    case DescValueType.UNITDOUBLE:

    return (theDesc.getUnitDoubleValue (theDesc.getKey (theNumber)) + '_' + typeIDToStringID (theDesc.getUn itDoubleType (theDesc.getKey (theNumber)));

    break;

    by default:

    break;

    };

    };

  • Assign the numeric value of Substitution Variable?

    What I try to do is:

    Read a CSV file via the unix shell and choose some columns in each row
    Transmit the data to a MaxL Script
    Assign the data passed to substitute variables in the MaxL script.

    Problem:

    Two of the columns contain digital data (for example: 0.5 or 60 etc..) I want to set the substitution variables in these digital data (without the quotes). I tried to use

    Edit the < app and cube name > database variable 'Variable' $1;

    but it gives me error
    ERROR - syntax error 1242021-1 ['. 5']
    I tried with quotes single and double, but they value the value of the variable $1

    If I manually set the value of this Variable through the Regional service to 0.5, everything works perfectly. Any ideas on how to do this? the Ser60 does not provide a solution.

    An example is

    startMaxl scriptname.mxl "0.5"

    alter database appname.dbname set variable "VariableName" $1;

    or

    startMaxl scriptname.mxl 0.5

    alter database appname.dbname set variable "VariableName" ' \'$1\' ";

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • See the last value of a variable

    HI -.

    I create my own exercises in Captivate and I want to use a variable to count the number of hot spots, on which a user clicks and display real time value.  I have the created variable, but when I run the value is not updated as expected.  I can't tell if my update by the advance of stocks just variable does not work or if the screen is not refreshing to display the current value.

    Someone at - it experience with this?

    Thank you!

    If you could explain in more detail, ready to help. But only this script isn't helping much, sorry. How click boxes do you have on the slide for hotspots? How they are timed? I guess that there are no imposed sequence. And the variable is in a text caption that appears always? What do you do with the TC txt_cap1_display? Have you had a look at the example I mentioned?

    Lilybiri

Maybe you are looking for

  • Equium A200 - problems with the CD/DVD-RW and Realtek HD driver

    I'm having some trouble with my Equium A200-1VO. First of all, I can't get the CD/DVD-RW to write any dics. The Player opens also from time to time. Secondl, I just downloaded and installed the latest driver Realtek HD audio, under the guidance of To

  • Problem with booting from a cΘdΘrom-Satellite A10 - S513

    I have a laptop, Toshiba Satellite A10-S513, who does not want to start from the CD.To crystallize the problem, when I want to move the arrow (right or left) to access the CD-ROM icon in Start menu, nothing will be selected and it starts automaticall

  • Trigger by using PCI-6233

    What is the best way to trigger an entry to start of data acquisition when the test unit is in analog motion?  I use a card of acquisition data PCI-6233.  The input voltage is generated by a linear transducer. Thank you

  • How to run older versions of programs on my desktop HP pavilion model P6516F

    I saw the button click to run older versions of the programs, but now I can not find.   How can I get my computer to run older versions of programs.  Specifically, I designed a website on my old desk and this program, Yahoo Sitebuilder will not work

  • Control MFC with NO 6008

    Hello and thanks in advance for any response, (FMA-2109 sheet attached) I have a regulator flow (Omega-FMA-A2109) mass, which can be remotely controlled (0 - 5V signal) and you also read flow (0 - 5V or 4-20mA output). The controller also has potenti