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

Tags: Business Intelligence

Similar Questions

  • 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

  • Can I use the session with the presentation variable variable

    Hello

    I'm using a method join the variable session or repository with the presentation variable.

    I created a variable called 'VarPres' in obiee presentation I created a session with a new block of initialization variable and I made this request

    "{Select fullName from employees where idEmp=@{VarPres}.

    but when I called the session variable in obiee I got this error

    The session variable, NQ_SESSION. S_OBJ, has no definition of value

    Hello

    Does not allow a presentation in an init block variable, simply because there is no variable presentation.

    In general what you try to do probably will never work because of "timing" and is as a session variable.

    A session variable is set once per session, for once he put no exchange of value as the init block is not executed again. So, because of this you already can imagine that there is a problem in your logic, if you want to use a value set by the user in the front end to set the value of a session variable.

  • OBIEE presentation Variable

    Hello

    I have a variable called P_DATE presentation that reads data from a Calendar Table

    In my query BI answers, I would get the data of the previous day, P_DATE.

    How can I ask my P_DATE variable an expression to get the yesterday's date

    i.e. SELECT DATEADD (day,-1, P_DATE)

    Note: The Data Source is a SQL Server database, which is why I use the SQL Server-based functions

    Thank you

    Ignore my last post, I'm assuming that the variables to repository... more on
    In the given first query, one is in datetype and other is in tank.

    You can use the current_date-1 in the filter no need to go for a variable presentation.
    something like
    SELECT Time.Date saw_0 FROM 'HIS' WHERE Time.Date = current_date-1 ORDER BY saw_0

    Use the criteria-> column-> filter icon tab-> Add--> "SQL Expression" value current_date-1

    When you use variable PS as above, you suppose to cast by converting as Expression SQL
    ex: Time.date = date ' @{PS Variable}' or with default variable date ' @{PS Variable} {2010-01-21}'

    Published by: SVeeravalli on November 19, 2012 23:10

  • Default presentation variable used in the SQL filter expression

    Hello
    I am trying to use a default value for a variable used in a sql expression in a filter presentation and could use assistance on why obiee stifles the syntax.

    I have a report prompted with a prompt on the name of the month (variable presentation framework - pres_month_name). The value read is used in a filter as an sql expression. The sql expression is a DEAL on the variable of presentation and its conversion to a number based on business rules.

    In the sql expression, I give you the presentation variable a default value for a variable of repository - rep_default_month_name. Repository variable is correct and no, based on business rules, returns an appropriate default month name.

    Now, if I hard code the value by default, there is no problem. Here is a sample of the filter:
    The month number less than or equal to * DEAL "{pres_month_name} {OCT}" WHEN "NOV" THEN 10 WHEN... END *.

    Notice that the variable of presentation is between single quotes, because this is an area of character. Once more, it works fine, but I don't want to hardcode the default, I want it based on the variable repository, therefore:

    The month number less than or equal to * DEAL '{pres_month_name} {ValueOf (rep_default_month_name)}' WHEN 'NOV' THEN 10 WHEN... END *.

    By having this syntax for default of the variable of the presentation, I receive a message from the incorrect values in a filter.

    This report is not only used on a dashboard, but used in a briefing book as well. Whenever a briefing book is updated, by default the presentation variable is used, because obviously, the presentation is not available in a briefing, and I don't want to use a hard-coded value.

    I could duplicate the report and adjust the sql to not use the presentation variable, but always use the repository variable that returns a month by default, but I would be duplication of effort and I have to do this on several requests.

    Thanks for the help!

    Try this syntax described in the blog of Shiva that follows...

    http://shivabizint.WordPress.com/2008/10/02/Oracle-BI-EE-variables-overview/

  • Column unresolved when using presentation variable in the filter responses

    Hi all

    I am using a dashboard command prompt that sets a variable presentation - pres_year. I use the presentation variable in the filter of the application.
    In the 'Criteria' tab, in the filter for a request, I put a year column (YEAR) the presentation via the Expr Variable variable and enter the variable name of presentation only. End up with:
    YEAR is equal to / is in @{pres_year}

    When you use the dashboard, the prompt and ask all work fine. The problem is when I'm in demand for answers and I click on the "View results" button I get the following error:
    "NQSError: 27005 unresolved column pres_year'.

    Any suggestions?

    Thank you.

    Set a default value after the presentation variable in your filter. If you put no default value, and then in the responses, the application not of value to the variable of presentation. Click on the filter and add default value. Then it won't work.

    Edited by: David_T on October 14, 2010 08:13

  • In the presentation variable date format

    Dear Guru,

    My guest has a calendar month edit box that is in the format "YYYY / MM". I put this as a variable presentation p_month.

    Now, I need to add 1 month to this presentation variable in the filter, I tried to write the sql code but it's complicated, and it does not work. Could someone help?

    Thank you very much
    Joe

    An approach more:

    using filter based on another request...

    create a query containing the following columns... (Assuming that YYYY / MM column is: A).

    Min (A)

    "and keep the filter on A > ' @{p_month}"
    Save this report with a name: RapportB

    Your main report on A filter should be like this:

    filter on a column > advanced > filter based on another request, now browse the RapportB and then to specify the unique column present in this report to be filtered...

    hope you understand this approach...

  • Date show invites by using the calendar and presentation Variables

    Hi all

    That's what it takes...

    I need to create a two prompts (from_date and to_date) on a date column so that I can filter the data by using a condition. This is how I do

    I created two guests (edited the formula) and passing values to two variables var_from and var_to presentation. In the report, I limit the query on assistance between motor coaches for both the presentation variable. Everything works fine but the problem is I need display var_from and var_to in my report also.

    I'm referencing variables like ' @{var_from}' and ' @{var_to}' but I get two columns as white. I don't really know why I get empty values for these two columns only when I am able to filter my report with success on the basis of the date values in the guests...

    Just to metion... in my database, I have values in m/d/yyyy format only. So I am able to use the calendar successfully

    Any help on this would be much appreciated...


    Thank you
    -Ronny

    Ronny,
    Drafts of answers do you see? ID wait, but on the dashboard when you set filters, you should see values that crosses?
    You can extend the syntax of the variable closely and provide a default value, so when you work in the answers you can see what it looks like,

    something like @{var_from} {January 1, 2010 ""}

    Also you can reference variables in the title, the subtitle or the narrative views if you want.

  • Using ChnCalculate with a variable

    The channel of LIN/LIN_Error has 3000 values inside. I want to add a correction value to each of the 3000 values inside.

    If I use a constant, it works well. For example:

    Call ChnCalculate ("Ch(""LIN/LIN_Error"") = (2 + Ch (" "LIN/LIN_Error" "" "))") adds 2 to each value.

    However if I try with a variable it does not work.

    Dim Corr

    GlobalDim "Corr".

    Corr = 2
    Call ChnCalculate ("Ch(""LIN/LIN_Error"") = (Corr + Ch (" "LIN/LIN_Error" "" "))")

    Hi Frank,.

    The problem is your first line.  By running 'Dim Corr' in the VBScript code, you force this variable name to refer to the variable in VBScript and not the variable global tiara - light color in the SCRIPT Panel does not reflect what is confusing.  If you remove the statement Dim Corr, and then the VBScript code will correctly reference the global variable.  Another way to put it is that your VBScript never affects the global variable to Corr 2.  The command correctly done ChnCalculate() refers to the global variable of Corr, but it is always set to 0.

    However, for this task, I'd recommend the ChnLinScale() function, which is simpler, will run faster, accepts regular VBScript variables and ignore so all this imbroglio.

    Dim Corr
    Corr = 20
    Call ChnLinScale ("LIN/LIN_Error", "LIN/LIN_Error", 1, Corr)

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Adjust the data in the database with the variables

    Hello

    For my internship, I have an assignment to read and set a database with the variables. This SQL server 2005 database contains variables of a controller. These are read and write variables. The assignment is to display the read variables and the user can adjust the variables of Scripture. The first part was "easy" because the forum contained a lot of examples of this. The second part is more difficult because the forum contains absolutely no example of this. Can I use LabVIEW 2010 and 2011, and also I downloaded the 30 day trial of the database connection tool. If it's useful, I can recommend my company to buy this package. Playback vi makes use of a UDL (Microsoft data link) connection.

    So you guys my question is: is it possible to adjust the specific variables in a database using LabVIEW? And maybe you can give me a little advice on this topic...

    Thanks in advance!

    Roy

    In SQL, the specific data are always selected with the keyword WHERE. In VI to update there is a link for options, you can for example add a constant 'WHERE id = 1457 and measure > 0.54 ".

    You can ofc. also build this chain through controls, settings and other means.

    If you prefer, you can use the Execute Query (under Advanced tab I think) to which you can send the complete query example "TestTable Update set name ="Zeus"where id > 14 and id.<>

    /Y

  • With a variable number of input ports on a Subvi

    How can I have a Subvi with a variable number of input ports that can be changed in the other VI that uses the Subvi?

    You can't actually do what you trying to do, how LabVIEW is implemented does not screw created by the user with arbitrary entries.  And to be honest, there is probably a better way to do whatever it is you want to do.

    If you really really want to do that, but... you can come kind of close.

    1. create a new VI

    2. change its connector to the one with the inputs and outputs pane more possible (terminals 8-6-6-8, 28)

    3 create controls/indicators for any desired input/output of not scaling can connect the (i.e. the error in / error, son of reference, etc.)

    4. hang them until the connector pane

    5 count how many entries are left and create a control for each entry and their son all

    6 drop your VI on the block diagram of the VI one another as a Subvi

    7. Note that when you mouseover, it looks like a Pincushion

    8. right click the VI and uncheck the "display as icon".

    9. you can now "slide down" at the bottom of the VI

    The terminals in the section "slide down" are as a package by name or node property that you can click on them to reallocate them to what it is not already selected.  The default is to make all the entries in alphabetical order, then all the outputs in alphabetical order.  If you rename the terminals that allows you to make appear in the order that you prefer is up to you.

    As all terminals, for the best that you can do to detect if they are wired is to define a default value that should never be used.  If she is floating points, you can use 'NaN' or 'Inf '.  If this is a cluster that you did, add an item more boolean which is true in the default values for this entry VI.

    Then just wire up all the identical terminals together in a table, filter the items which appear to be unwired and make all your treatment on the rest.

  • To compare the name of the control with a variable

    Hi all

    I want to compare the name of a control with a variable in a loop. Is there any function for it in Labview? Please let me know if it is.

    Thanks in advance


  • Run-time error '91'; Variable object or with block variable not set "

    Help, please... I had "run-time error '91'; Variable object or with block variable not set "for kawai2004 game.  Please help how to fix this error.  Thank you very much.

    Hello

    See the following article
    http://support.Microsoft.com/default.aspx/KB/822521

  • Problems of execution of a SQL function with a variable in the WHERE clause

    Hello world!

    I have programmed a function that returns a boolean value based on the result of the SQL. It's the function:

    FUNCTION existe_secuencial (seq_name VARCHAR2) RETURN AS BOOLEAN

    cursor c2 is SELECT FROM all_sequences WHERE upper (sequence_name) = sequence_name' | seq_name | ' ;

    BEGIN

    OPEN c2;

    DBMS_OUTPUT. Put_line (nombre_seq);

    Get c2 INTO kk;

    If c2% NOTFOUND = True THEN

    RETURNS false;

    on the other

    RETURNS true;

    end if;

    END existe_secuencial;

    And I give the floor to the function of a procedure in this way:

    IF existe_secuencial ("SEQ_ARQUETA") = True THEN

    DBMS_OUTPUT. Put_line ('exists');

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("' NOT exists");

    END IF;

    The probrem that this SQL is forced to return results because this sequence exists in the comic book, but is not, return me the FALSE value. What makes me mad is that if I change the second line of the function in this way:

    > > cursor c2 is SELECT FROM all_sequences WHERE upper (sequence_name) sequence_name ="SEQ_ARQUETA";

    It works find and return of sequence existing (real)

    Can someone help me please, I'm quite desperate to find what is the problem with that because I do not understand why if I built the slider with a variable returns no results so that if I do write it works...

    Thanks in advance!

    Itziar

    Frame you your variable in quotes, which makes the string literal ' |. ' seq_name | "rather than the content of the variable.

    I think that something like this would be an improvement.

    function existe_secuencial (seq_name VARCHAR2) return a Boolean value as

    number of exist_check: = 0;

    Start

    Start

    Select 1

    in exist_check

    of all_sequences

    where upper (sequence_name) = upper (seq_name);

    exception

    When no_data_found then

    null;

    end;

    return (exist_check = 1);

    end existe_secuencial;

  • How can I show a background image with a variable?

    I try to explain it:



    I have a div called "entrante1_ctn" that must contain a background image. This code works, but I don't want to do...


    sym.getComposition () .getStage ().getSymbol("entrantes_sym").$("entrante1_ctn").css ('backgro undImage','url(images/entrantes/entrante1.png)');


    I would like to the somtehing like that...


    sym.getComposition () .getStage ().getSymbol("entrantes_sym").$("entrante1_ctn").css (' undImage ',' url backgro ( variable )');


    The variable is a table element, but this code does not work:


    sym.getComposition () .getStage ().getSymbol("entrantes_sym").$("entrante1_ctn").css (' undImage ',' url backgro ( ent_1 [0] )');



    Please, helpp!

    Hi or Hello,

    • The principle( general case) ==> .css ("background-image ',' url(images/myImage.png)'");
    • With a variable (a variable):

    var image = "images/myImage.png ';

    . CSS ("background-image", "url (" + image +') ');

    • Your particular case (your case) ==> .css ('background-image', ' url ('+ ent_1 [0] + ')');

Maybe you are looking for

  • Email after update: cannot paste, add a photo

    I installed the update to iOS, and can stick is no longer my email. Also, I can't insert picture. A long click on the email brings up - nothing. I have iPhone 6 s. already tried hard restart.  I have deleted the email app and put it back, but dread t

  • Some Web sites lock up Firefox and Chrome, but not in Explorer

    When I search Google News "Edward Snowden", some clicking on some sites Web crashes Firefox, requiring a re-initialization (Windows 7). Here is a site that caused a complete blocking: http://www.Google.com/URL?SA=t & rct = j & q = esrc s = & source =

  • K3X66ES G3 255 HP #ABD: HP 255 G3 Hotkey Utility Win 7 Pro

    Hi all could you please tell me where to find a dirver/utility to get the shortcut keys (and fn Key) working with Win 7 Pro 64 Bit? Thank you very much! Best regards Daniel

  • : HP Elite 7300 MT HP Elite 7300 series MT

    Please help me, I just reformat my HP Elite 7300 series MT to Windows 7 Professional and I'm trying to download Lan Driver from the website http://h20564.www2.hp.com/hpsc/swd/public/readIndex?sp4ts.oid=5099495&lang=en&cc=us but it does not work. This

  • Slate 2 stuck on the blue HP screen

    My Tablet has frozen several times recently, and this has been overcome by the power of market. Tonight, it did not work. The Tablet starts ok, but stalls on the bit where the log in window opens. It is written "Please wait, and the loading circle is