variable presentation in the SQL for the scale marker

! http://img101.imageshack.us/img101/3476/sqlscalemarket.PNG!

Hi, experts,

I want to know if variable presentation is supported in the "sql query" "scale marker.

I want to move the selected value from the prompt for the sql query!

Thank you!

I want to know if variable presentation is supported in the "sql query" "scale marker.

Scale marker made reference here to the axis scale to increase the width and height or the zoom layout data is dedicated to the see, it has nothing to do with the variable presentation as such. If you can not pass any value for the variable.

Tags: Business Intelligence

Similar Questions

  • variable presentation changing the data type date to string the Calende

    Hi gurus,

    I'm having a strange problem. I have a Start date and end date fast that aren't on any column presentation for example (in the case where 1 = 0 DATE. DATE other cast ('2100-12-31 Date ') end).
    Now, this prompt, I put 2 startdate and enddate variables presentation to use in my sql filter in the report.i use these variable to calculate the date for these 2 end dates and then I apply between it function with these 2 dates.
    The question is when the dashboard is running for the first time the presentation variable takes the dates as the DATE "' 2009/14/10 and when I change the date and click on the go button, the variables is October 15, 2009" as strings anf so DATE in my SQL filter functions fails and error throughts VD.

    All of the suggestions!

    Nico explain already.

    Select date '' 2009-12-15 of the double - TRUE
    Select date of 2009 '-15-12' of the double - ORA-01843: not one month valid
    Select date ' 10/2009/15 ' of double - ORA-01861: literal does not match the format string

    DATE 'yyyy-mm-dd' does that have this format.

    Concerning
    Goran
    http://108obiee.blogspot.com

  • Error using variable presentation of Expression SQL

    Hi all

    I get an error - '... Error to break information... "due to a variable used in a SQL Expression. It probably has something to do with a problem of data type. I have reduced the use of the presentation of the error variable.

    I'll put a variable pres_mth_nme_to, presentation, from a prompt of dashboard. The line contains a month name.
    I use the variable of presentation as part of a SQL Expression in a filter. Most of the SQL Expression is to use the
    presentation in ONE variable and assign a value accordingly. For example:

    Column: kind of month value
    Operator: between
    Value: * 10 *.
    SQL expression: * case @{pres_mth_nme_to} {a few default} WHEN "NOV" THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN... END *.

    The name of the month is in character. If I was in this hard-coding, I don't get the error. For example:
    CASE 'SEP' WHEN 'NOV' THEN '10' WHEN 'DEC '... END

    It is something to do with the data type of the command prompt and to be used in the comparison. If I use a CAST, the problem persists.

    CASE DROPS (@{pres_mth_nme_to} as char (3)) WHEN 'NOV' THEN... END

    If I'm in the responses, the problem does not exist, I guess because of default values. If I'm on the dashboard, there is not, I guess because of the reception of the prompt value.

    I don't know what I'm missing. Any suggestions?

    Thank you.

    DJ,

    If the formula presented by you is exactly true, I mean that it was not made to present as an example in the forum, you must include the variable presentation between apostrophes.
    either your formula should look something like
    Case ' @{pres_mth_nme_to} {a few default}' WHEN 'NOV' THEN '10' WHEN 'DEC' THEN '11' WHEN 'JAN' THEN '12' WHEN 'FEB' THEN '13' WHEN... END

    Let me know if it solved the problem...

    -bifacts
    http://www.obinotes.com

    Published by: bifacts on October 25, 2010 13:50

  • How to display variable presentation in the sight of the title

    Hello.. I was able to view presentation in narrative mode but now title view variable...
    Help, please...

    Hello

    Please see the link below:

    http://Siebel.ITtoolbox.com/groups/technical-functional/Siebel-Analytics-l/how-to-use-presentation-variable-to-populate-a-title-in-the-dashboard-1758482

    Thank you
    -Laurence.

  • Variable presentation doesn't work is not in the filter using expr

    Hi friends,

    I have a quick period with a variable presentation of the v_period used. Inturn, so I applied formula below one of my measure column in the analyses below the means, it does not work when I select the name of period of command prompt. How can I place the presentation variable from the prompt for the filter with expression.

    FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " Period_name' IN ('v_period')))

    Kind regards

    Saro

    Hi, Saro,

    I think the correct syntax when you use variable presentation would be:

    FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " ((IN Period_name' (@{v_period})))

    OBIIE does not generate the correct syntax when you use the expression builder

    And if v_period can have multiple values, you should use this:

    FILTER ("Fact_GL_balances". "Actual_ending_bal" for HELP ("Dim2_GL_periods" ".") " ((Period_name' IN (@{v_period} [' @'])))

    I have not tried in my OBIEE because I need to filter a Dimension column, so I have to use CASES instead of FILTER, but this is my reference:

    Q & A: OBIEE OBIEE 11 g: presentation Variable initialization in a multiple selection prompt

    Concerning

    Ana GH

  • Can I combine three variables by using the action of the Expression in advanced Actions?

    I have an assessment (contains 9 questions) in my project that contains 3 lessons. Each question relates to a specific lesson. I want to break the score on lessons on my Quiz slide, instead of display the total score for all of the evaluation of the results, so that the learner knows what activities require additional study. I created a variable to contain the points marked on each question and assigning points to this variable using "QuizInfoLastPointsScored".

    Screen Shot 2015-03-26 at 11.53.18 AM.png

    I know what are the questions focus on what lesson:

    Lesson 1: questions 1-3

    Lesson 2: questions 4 to 6

    Lesson 3: questions 7 to 9


    However, I don't know how to add 3 variables together to get the total for this lesson. The action of "Expression" only allows me to combine the 2 variables:

    Screen Shot 2015-03-26 at 11.58.09 AM.png

    How can I add a third variable in the action "Expression"?

    I thought you don't need three totals: a global and two partial totals. The latter will be calculated not the subtotals. There is no need to first put the score in a variable separate at all. I used only the variables for totals of the three. You will calculate only the total world, and who could be with a single statement, no need for two to all:

    Expression v_total = v_total + cpQuizInfoLastSlidePointScored



  • How to filter values using variable presentation if it uses a multiselec

    Hi gurus,

    Could you pls suggest me here.
    I have a requirement like my version 10G OBIEE isn't filtering report values when we choose a value any in dash prompt.
    I tried to create a variable presentation in the prompt for filtering, but invites under control, he is given a MULTI SELECT.
    I need to filter the values today if select us any value from the command prompt, it does not choose any value.
    How to filter values using MULTI SELECT Here.Please suggest me here.

    Kind regards
    SK

    Functions applied on the columns must be the two places (in report and guest) and must affect is fast after the function applied in the report.

    In your case is prompt value before cast, it seems that it is the reason why it does not work.

    Mark correct/good so pls help.

  • OBIEE 11 G customize scale marker

    Hi expert,
    Is there of intended contents instruducing customize the line-chart scale marker?
    For example:
    Static value
    Variable *(how to use this function) EXpr *.
    Column name
    Request *(how to use this function) SQL

    NOTE: I want to know that the variable expr is variable filing or presentation, both are ok.
    And SQL query is SQL or SQL introduction physics

    Published by: kobe on June 3, 2012 21:01

    Hello

    Variable expr uses the variable presentation.
    For ex - when you give a measure column in the command prompt and give more to change the box for user input and specify a variable name of presentation which him.
    In the graphic in the scale marker, when you change that in the variable expr, specify the variable name of presentation.
    Pull both invited and report to the table edge and then type any value. Then the leader of scale line will be greater, then the value specified by the user.

    Please let me know below and hope this helped / answered.

    Concerning
    Young

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

  • Variable presentation for between the date of request

    Hello

    I have a requirement where I need to pass the value to the variables of presentation for "Between" date guests.

    Basically, a user can select two dates in the same column and see revenue between these two dates.

    The problem is that I can use a single column only once and if I do 'In between' then the 'set the variable' option disappeared.

    Kindly help me with the problem.
    Thank you.

    Vinay

    With regard to feeding guests, you don't have to use the same column. It is only when you filter your date column becomes important. With this, follow these steps:

    Place two columns in quick work space and use case WHEN 1 = 0 THEN... effectively dummy columns columns. Use the drop down menu to make the two guests "Edit box." Value of operand ' is equal to ' and prompts PVs: StartDate and EndDate. You can create session variables to set the default values. This method ignores the date columns and typed by the user to the value. Default dates show that the format users should use.

    Now in your request, click on the filter of your date column, convert the filter SQL and type:

    'Table Date.' ColumnName > = ' @{StartDate} "AND" table Date ".columnname"<=>

    It will work, but there are other options. If you want the user to select a date from a list drop-down, just use another date column that has dates available for the user to select. Once again you are simply feeding the Pvs in the guests. It is not necessary for the second column to be the same as the first.

  • Using the default date for a variable presentation

    In the report, I want to use the default date of the variable presentation.
    If I use the query as below, default is correctly.but if I pass the dash prompt date value that is throwing error

    Someone help me change the below
    request for valid results?

    TIMESTAMPADD (SQL_TSI_day, (dayofmonth(date @{asdf}{date '1900-01-01'}) *-1) + 1, date @{asdf} {date ' 1900-01-01'})

    Published by: user12255470 on December 2, 2010 12:11

    Published by: user12255470 on December 2, 2010 12:12

    Try this:
    TIMESTAMPADD (SQL_TSI_day, (dayofmonth(date '@{asdf}{1900-01-01}') *-1) + 1, date ' @{asdf} {1900-01-01} "")

    Mark answers quickly.

    J
    -bifacts
    http://www.obinotes.com

    Published by: bifacts on December 2, 2010 15:21

  • dynamic SQL for OPEN will not take the SQL string in the form of a string variable

    Hello

    I use "OPEN-for", not "EXECUTE IMMEDIATE" because I want to do multi lines request. However, 'OPEN-for' won't take a variable "strSQL' in the clause, it only took fixed ropes?

    create or replace function fnEnumSystemUser
    (
    LogonFilter nvarchar2,
    ...
    AdditionalWhereClause nvarchar2,
    OrderByClause nvarchar2
    )
    RETURN xxxxx.cursorType
    AS
    strSQL nvarchar2 (2000);

    FormatAdditionalWhereClause nvarchar2 (2000);
    FormatOrderByClause nvarchar2 (2000);

    SystemUserCursor xxxxx.cursorType;
    BEGIN

    If AdditionalWhereClause IS NULL THEN
    FormatAdditionalWhereClause: = ' ';
    ON THE OTHER
    FormatAdditionalWhereClause: = TRIM (AdditionalWhereClause);
    END IF;

    If OrderByClause IS NULL THEN
    FormatOrderByClause: = ' ';
    ON THE OTHER
    FormatOrderByClause: = TRIM (OrderByClause);
    END IF;

    strSQL: = 'select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id';
    -It won't work, just says "WARNING: compiled, but with compilation errors" when I tried to create the function
    Open SystemUserCursor for strSQL;

    -This is to call "ORA-01006: bind variable does not exist.
    Open SystemUserCursor
    ' select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id WHERE SystemUser.Logon like: x: y ' using LogonFilter, OrderByClause;

    -This failed also (on call, "ORA-00900: invalid SQL statement")
    Open SystemUserCursor
    ' select Id, FirstName, MiddleName, LastName, PrimaryEmail, PersonType, CreateDate, CreatedBy, LastUpdate, LastUpdateBy, connection, PasswdHash, IsSuspended, had left join SystemUser person on SystemUser.PersonId = Person.Id WHERE SystemUser.Logon like: x' | OrderByClause using LogonFilter;

    RETURN SystemUserCursor;
    END;

    That's how I invoked:
    declare
    Int NumItemsSelected;
    lstResult xxxxx.cursorType;

    TYPE SystemUserRecordType IS RECORD
    (
    ID numeric (19.0),.
    FirstName nvarchar2 (50).
    MiddleName nvarchar2 (50).
    LastName nvarchar2 (50).
    PrimaryEmail nvarchar2 (190),
    PersonType int,
    CreateDate timestamp,
    CreatedBy numeric (19.0),.
    LastUpdate timestamp,
    LastUpdateBy numeric (19.0),.

    Logon nvarchar2 (75).
    PasswdHash int,
    IsSuspended tank,
    Display timestamp
    );
    SystemUserRecordType oUser;
    Start

    lstResult: = fnEnumSystemUser (...) '%',... Person.PrimaryEmail like '% a %', "order by ASC Logon", 0, 10, NumItemsSelected);
    LOOP
    extract lstResult in oUser;
    When the output lstResult % notfound;
    dbms_output.put_line ('Id: ' | oUser.Id);
    END LOOP;
    end;

    I need the ability to add to the SQL string because ultimately say I need to join:
    1. ORDER BY section
    2 call a FUNCTION in WHERE Clause
    3 pagination and ROW_NUMBER() clause

    What can I do? Thank you!

    1. why you use NVARCHAR2 to the SQL string. Use VARCHAR2 or LONG.

    2. use

     tags to preserve formatting of your code.
    
    3. In the bind variable does not exist example it looks like you have one bind, :y, but are trying to bind two variables logonfilter and orderbyclause.
    
    4. In the third example, try logging the sql string in a table or dbms_output and running it in sql - you should get the same error and it might then be easier to diagnose.
    
    Cheers,
    Dominic                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • Void string formula during the passage of several values of variable presentation

    Dear all,

    I have a scenario where I will get one or more presentation variable values, and each value should create a separate chart where each graph should filtered by a single value.

    For example: If suppose that my presentation of the values of variable passing as below.

    IN ("ASTON MARTIN", "KIA", "PEUGEOT", "DACIA")

    Then I should get four chart:

    as the first chart report filtered by ASTON MARTIN

    as the second chart report filtered by KIA

    as the third graphic report filtered by PEUGEOT

    as the fourth graphic report filtered by DACIA.

    Kindly help me out here.

    Thank you

    In your non-text expression expression may be only "Dim MBV CSD". "' @{RF1} {Lk Veh Vehiclemake}.

    Then

    LOCATE(',' || cast("Dim MBV CSD"."@{RF1}{Lk Veh Vehiclemake}"as varchar(1000)) || ',',  ',' || '@{L1}{FIAT,FORD}' || ',') >0
    

    PS

    But in this column (if is not text) you'll never find values 'FIAT', 'FORD' etc.

    Make sure that your model and reports are correct.

  • Value of the variable presentation does not appear does not correctly in the dashboard column

    Hello

    I have a report that has a view of pivot, in which I want to display the average age (date-obtained variable presentation) for example. Average age of the 31.12.12.

    I used 'average Age of staff |  ' @{Reporting_Date} [dd.mm.yy] {31.12.12}' as the formula column and compound eyes, the report shows the desired result.

    But when the report is on the dashboard, it shows the average age to 31.00.12.

    Is this a bug or is there other settings I need to do? I use OBIEE 11.1.1.7.0.

    Thank you.

    Jeby

    Worked by changing just the text format.

    "Average age of staff |  ' @{Reporting_Date} [JJ. MM.yy] {31.12.12}'

  • Difference between variable interface user layout and presentation of the add() method UI?

    Hello

    What is the difference between a variable user interface layout and presentation of the add() method UI?

    Presentation of the variable user interface is something like this:

    var windowResource = "palette {  \
        orientation: 'column', \
        alignChildren: ['fill', 'top'],  \
        preferredSize:[300, 130], \
        text: 'ScriptUI Window - palette',  \
        margins:15, \
        \
        bottomGroup: Group{ \
            cd: Checkbox { text:'Checkbox value', value: true }, \
            cancelButton: Button { text: 'Cancel', properties:{name:'cancel'}, size: [120,24], alignment:['right', 'center'] }, \
            applyButton: Button { text: 'Apply', properties:{name:'ok'}, size: [120,24], alignment:['right', 'center'] }, \
        }\
    }";
    
    var win = new Window(windowResource);
    
    win.show();
    

    presentation of the UI Add() method is something like this:

    var w = new Window('dialog', 'Random Number Generator');
    var btn_group = w.add('group'),
        btn_ok = btn_group.add('button', undefined, 'Ok');
    
    w.show();
    

    Thank you!

    Since the Guide Javascript Tools on the specifications of the resource (you're high example on the page):

    You can create one or more UI both elements by using a resource specification. This specially formatted string provides a simple and compact of the creation of an element, including any container element and its constituent elements. The resource-specification string is passed as a parameter to the constructor function Window() or add().

    The general structure of a resource specification is a specification of item type (for example, dialog box).

    followed by a pair of curly braces surrounding one or more property definitions.

    myResource var = 'dialogue {control_specs} ";

    var myDialog is new window (myResource);.

    The controls are defined as properties in windows and other containers. For each control, give the name of the control class, followed by the properties of the control between braces.

    I had trouble getting the resource specifications to work - probably just didn't make the time to understand. A few differences is that some of the properties that they put in the resource specifications in brackets after the element will not work in the other method, if you do it this way. You normally have to make a second line and add this property. I'm not sure of the first method, but the second is the function object, and you can use the structure of the object (object, nextProperty, etc.) or set a variable to represent the object. In most of the scripts that I write, I use variables and give them a name such as:

    myCheckBox var = dlg.inSomeGroup.add ('checkbox', undefined, "text box '");

    myCheckBox.name = "maCaseACocher";

    By doing this, I can create a recursive function that goes through the entire user interface and retrieves the values of the elements and writes this information to an xml file. Including the names allows the script to identify which variable to control / it is in the xml file, so that it can be reassigned to proper control. I have not tried this with the method of specifications for resources, so I don't know if it will work with it.

Maybe you are looking for