Question in presentation Variable

Hello world

I created a variable for the week and the year and I'm trying to merge them to apply as a filter.

To do this, I have converted the week num in char type. The week so not 1, 2, 3.12, 13 will be displayed as 01,02, 03... 12, 13.
so I can add concatenate them with year and together there filter for a report.

Reason for all this is. I need to display the results to a report based on the selection of values prompt like

of the year of the week for the week year
2010 50 2011 05

Fact table and calendar are joined by the date fields.

When the prompt values are selected and applied to the variable of presentation rather than spend '05' it's just by the way of "5". How to get this done. Are also tell me the work around to filter with cookers.

I hope that I am clear,

Thanks in advance

Concerning
Sandeep

Hello

I tried in my environment and syntax '2011' | right ("0" |) Cast (50 as CHARACTER (2)), 2) works very well.

You can try with the integer data type:

Cast ((2011*100+PRESENTATION_VARIABLE) as char (6)).

Kind regards
Gianluca

Tags: Business Intelligence

Similar Questions

  • 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

  • Question about local variable in LabVIEW

    I am a new bie to LabVIEW.

    I have a question about local variable in LabView.

    I tried to stop a loop by the local variable, but the value of the loop for counter is different with my hope.

    I think that the loop to stop at 6, but he stopped at 7.

    Could someone help me?

    This looks exactly like a race condition.  You have know control if the control terminal is first in reading or the local variable is written to the first.

    Try to run your code to highlight execution.

    In your code, what usually happens is that order is read and the value is false.  Then the other code will run allowing the value to write to the local variable.  Let's say that in a particular loop iteration, we get the True value.  But control of the final value has already been read as false, then the loop runs again.  The next iteration of the Terminal is read and then he sees the true, will force to stop no matter what happens in the rest of the loop the loop.

    So, why do you use a local variable instead of sending just the wire to the terminal stop?

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

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

  • Date presentation Variables

    Hello

    This thread continiues to Re: Create Variable presentation

    I created a variable presentation called @lastname and it works very well in the dashboard report. I would add two variables of presentation date more:

    @startdate (equal/East)
    @enddate (equal/East)


    I created in addition to the lastname variable and changed the fx on the column to reference these variables in presentation new date and also set up a filter "is invited" on two columns.

    Fx formula is:

    -case when 'any employee Absences. "" Name "= ' @{name}" and "All employee absences" "." " Start date"between" @{startdate}' and ' @{enddate}' then count ("all employee absences". " The person ID") * County ("all employee absences". "The person Id") * sum ("all employee absences". " Days of absence") end else 0

    The added text is * and "all employee absences. "" Start date "between" @{startdate}' and ' @{enddate}' * "

    When I run the report that returns no test but when I test this on the database, I get the correct result set:

    No results
    All data is not cause to the specified criteria. This is often caused by the application of filters that are too restrictive or contain incorrect values. Please check your filters to ask and try again. The currently applied filters are listed below.

    The name is equal to Sharma
    Start date is equal to 01/01/2010
    and end Date is equal to 30/12/2010


    Can anyone help?

    Thank you

    ("Employee absences all the '.) "' Start date ' > = Evaluate ('to_date (%1,%2)','@{startdate}','YYYY/MM/DD')))
    AND ("Employee Absences all the '.) "" End date ".<= evaluate('to_date(%1,%2)','31/12/2010','yyyy/mm/dd')="">

    In this code for ' @{startdate} "value is not met, check the presentation variable name in the quick creation.

    for the end date ("all employee absences". "" End date ".<= evaluate('to_date(%1,%2)','31/12/2010','yyyy/mm/dd')="" )="" change="" the="" format="" to="">

    Thank you
    Vino

  • Manipulation of presentation variables

    Is it possible to manipulate the presentation variable. I don't need the exact value selected by the user to be set as the value of the variable presentation, instead of this I need a small modified value. Is this possible.

    Hello
    In the quick Fx you can do this and set the variable presentation, else create a dummy column in the logical layer and use the same

    Thank you
    Saichand.v

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

  • Question of presentation TC6.3.0

    Hi all

    We found that we cannot display resolution XGA presentation when we choose presentation layout as simple and overlay in a call.

    It can easily reach with the following procedure.

    1. connect to an endpoint farend.

    2. run the presentation on a PC with a XGA resolution.

    3. press the remote button on the page and change the layout to the presentation superimposition or simple.

    (In equality and Prominent, it can display the screen of the PC)

    In addition, when we use the source of presentation HD resolution, it doesn't not.

    Anyone know if this will be fixed in a future software update?

    Best regards

    Kotaro Hashimoto

    Hello

    I see the same question what you describe in the laboratory.   Both TC6.3 and TC7.0.1.

    But I tested with TC7.0.2 beta1 and can't see this problem.

    In the meantime, if you need this, I suggest to you that use TC6.2.1 first.

    Kind regards

  • Question of presentation SX20

    Hi all

    We have a SX20 behaving strange while someone shares/present the contents of the remote location.

    When the remote site is sharing the content first, the local site with the Sx20 is not able to receive the content. To make it work, the SX20 site must share first, and after that the two sites can share content without problem.

    Have a hard time to isolate the problem, we tried to change cables and a factory reset, but nothing has worked. Any help is very appreciated.

    Software version: TC7.3.3.c84180a

    Installed options: DualDisplay

    High definition

    NaturalPresenter

    Thank you

    One-way content is usually a firewall issue.  Have you checked that the firewalls between the two ends are corretcly configured to allow media streams.  With the fact that you can get it to work by opening the ports from one end, sounds much like there is some incoming block.

    Otherwise, we will need a little more detail on the configurations at each end.  Do you have the details on what is endpoint end?  Is that what this SX20 another, or something else?  Call control mechanisms are in place at both ends (VCS, CUCM, autonomous)?  Which protocol of appeal are used (H.323 or SIP)?

    Wayne
    --
    Remember the frequency responses and mark your question as answered as appropriate.

  • Question of presentation on EDGE 95 MXP

    I have a client who has an EDGE 95 MXP system and complains that he is to have a lot of problems with its laptops, make presentations of PC. Some of its laptops work well, others not. He reported the following portable computers as does NOT:

    HP 8740w

    HP 2560p

    HP 2550

    HP 8560p

    Dell Precision M6700

    HP 6730 b

    He had no problem with the following laptops:

    Dell Latitude E6530

    Dell Latitude D630

    What's weird, is that if he uses a 50 foot DVI to VGA cable for its computers laptop problem, it works! It does work with the original cable 15 feet. The cable has been replaced so we know this isn't a cable problem. The codec was also replaced at some point. 50 foot DVI to VGA cable was a Cisco came up with solution but the client indicates that it would be foolish...

    Anyone got any ideas how I could get this client on my back? I am sure that it is a setting of the laptop or the driver to the origin of the problem, but my client just it.

    Thanks for all your help :-)

    We have seen similar problems in the past with some portable computers when using DVI VGA, replaced cables cables with VGA to VGA cables and used a VGA to DVI adapter on the codec itself set. (We also forced 'VGA Out quality XGA')

    /Jens

    Please note the answers and score the questions as "answered" as appropriate.

  • Invites presentation Variable causing problem.

    Hi friends,

    IM replacing it with the formula in the SQL filter as below

    "Time". "' Exercise date ' > = TIMESTAMPADD (SQL_TSI_MONTH, - TIMESTAMPDIFF (SQL_TSI_MONTH, TIMESTAMP'2006-01-01 00:00:00 ', CURRENT_DATE), TIMESTAMPADD (SQL_TSI_DAY,-DAYOFMONTH (CURRENT_DATE) + 1, CURRENT_DATE)) AND"Time ". "" Exercise date "< = CURRENT_DATE


    And so im get the values from my default year Feb-2006 up to current_date (say as im getting the values of jan 2006 Jun-2015)


    That's why I want to replace the presentation instead of the keyword CURRENT_DATE variable in the formula so that the report is expected to behave according to the prompt value that I select and I gave the formula as below


    "Time". "" Tax Date ' > = TIMESTAMPADD (SQL_TSI_MONTH, - TIMESTAMPDIFF (SQL_TSI_MONTH, TIMESTAMP'2006-01-01 00:00:00 ', @{T_DATE} {CURRENT_DATE}), TIMESTAMPADD(SQL_TSI_DAY, - DAYOFMONTH (@{T_DATE} {CURRENT_DATE}) + 1, @{T_DATE} {CURRENT_DATE})) AND "Time". "" Exercise date "< = @{T_DATE} {CURRENT_DATE}

    But when I checked the dashboard report after you apply the filter above to my report, it does not work and it translates to no value.

    I understand that this problem is with the data format of the variable of my presentation. So for this format should I I need to replace my variable of presentation as well as the above formula will work.


    Thank you

    Kind regards

    Saro

    Now add a command prompt and select the dates that... create variable presentation in that? What is 113?... I didtn you get...

  • Question PLSQL with variable compound column names

    Hello gentlemen,


    I'm new to PLSQL and I would like to display some values of columns, which are listed in the defined variable in dbms.output. I created under code, which I think it could work, but I guess that it is far from correct.


    DECLARE
    v_TEMP_QUERY VARCHAR2
    (1000 BYTE);
    v_TEMP_VALUE VARCHAR2
    (1000 BYTE) := 'FILTER_01, FILTER_02';

    BEGIN  
    FOR v_TEMP_LOOP IN
    (v_TEMP_QUERY := 'SELECT DISTINCT ' || v_TEMP_VALUE || ' FROM CW_PAGE_COMPONENT_TEMPL WHERE COMPONENT_TEMPL_ID = 10000034642';
    EXECUTE IMMEDIATE v_TEMP_QUERY; )
    LOOP
    DBMS_OUTPUT
    .PUT_LINE (v_TEMP_LOOP.v_TEMP_VALUE);
    END LOOP;
    END;


    Thanks in advance for your help and advice on this issue and sincerely,

    Sebastian

    OK, first of all, you're confused concepts here.

    cursor loop FOR waiting for a slider must be provided, and yet you offer an assignment statement and a command immediately execute for it.  Syntax is not valid.

    Secondly, you force the way of the use of dynamic SQL, which is generally bad practice.  This use of the SQL is rarely necessary, because it often indicates that functional requirements, database design, or design/code enforcement has not examined properly... the first question is "why don't you know the names of the columns to select.  With dynamic columns in your query, you need some kind of dynamic code to manage the results of the query, you will not be able to reference the columns directly by name.

    Thirdly, the DBMS_OUTPUT package doesn't make "blank".  This may sound pedantic, but it's a common mistake that people make.  There is no fill data dbms_output buffer.  It relies on call code/interface to read the contents of the output buffer and display it in fact (for example, in SQL * more you use SQL * Plus the command "set serveroutput we ' to achieve)

    In general, in a well designed where application you know your columns you would only make...

    Start
    I'm in (select distinct filter_01, filter_02 from vw_page_component_templ where component_templ_id = 10000034642)
    loop
    dbms_output.put_line (i.filter_01 | ',' | i.filter_o2);
    end loop;
    end;

    If the columns are dynamic, then you have three options:

    (1) create a ref and pass cursor who back, extracting the content for example

    sys_refcursor getRc function returns (in numbers, in colnames templ_id varchar2) is
    RC sys_refcursor;
    Start
    Open rc for ' select distinct ' | colnames |' from vw_page_component_templ where component_teml_id =: 1' using templ_id;
    return rc;
    end;

    In SQL * more:

    var r refcursor; -It creates a variable in SQL * Plus ref cursor type
    Start
    : r: = getRc (10000034642, ' filter_01, filter_02');
    end;
    /
    print r;      -It's SQL * command to retrieve the cursor open and display the results

    (2) create an object and collection of the right structure to receive the results and use execute immediate to select IN this structure.

    (I will not show in this way, because it is absolute rubbish, and if you know the columns that you want to create the object and the collection, then you should not use dynamic SQL in the first place)

    (3) use the DBMS_SQL package to run the query and retrieve the data from the column in position rather than example:

    create or replace procedure run_query (p_sql IN VARCHAR2) is
    v_v_val varchar2 (4000);
    number of v_n_val;
    date of v_d_val;
    number of v_ret;
    c number;
    number d;
    whole col_cnt;
    Boolean f;


    rec_tab dbms_sql.desc_tab;
    number of col_num;
    v_rowcount number: = 0;
    Start
    -create a slider
    c: = dbms_sql.open_cursor;
    -analyze the SQL statement in the cursor
    DBMS_SQL. Parse (c, p_sql, dbms_sql.native);
    -run the cursor
    d: = dbms_sql.execute (c);
    --
    -Describe the columns that are returned by the SQL statement
    DBMS_SQL. DESCRIBE_COLUMNS (c, col_cnt, rec_tab);
    --
    -Local variables Bind to return to the different columns according to their types
     
    dbms_output.put_line (' number of columns in the query: ' | col_cnt);
    1.col_cnt j
    loop
    case rec_tab (j) .col_type
    When 1 then dbms_sql.define_column (c, j, v_v_val, 2000); -Varchar2
    When 2 then dbms_sql.define_column (c, j, v_n_val);      -Number
    12. When can dbms_sql.define_column (c, j, v_d_val);     -Date
    on the other
    DBMS_SQL.define_column (c, j, v_v_val, 2000);  -Any other type of return as varchar2
    end case;
    end loop;
    --
    -Display columns are returned...
    dbms_output.put_line ('- Columns-');
    1.col_cnt j
    loop
    dbms_output.put_line (rec_tab (j) .col_name |') -' || case rec_tab (j) .col_type when 1 then 'VARCHAR2 '.
    When 2 then 'NUMBER '.
    When 12 can "DATE".
    "Otherwise, 'Other' end);
    end loop;
    dbms_output.put_line('---');
    --
    -This part generates the DATA
    loop
    -Retrieves a row of data using the cursor
    v_ret: = dbms_sql.fetch_rows (c);
    -Output when no more line
    When the output v_ret = 0;
    v_rowcount: = v_rowcount + 1;
    dbms_output.put_line (' line: ' | v_rowcount);
    dbms_output.put_line('---');
    -Extract the value of each column of the row
    1.col_cnt j
    loop
    -Fetch each column to the correct data type according to the description of the column
    case rec_tab (j) .col_type
    When 1 then dbms_sql.column_value (c, j, v_v_val);
    dbms_output.put_line (rec_tab (j) .col_name |': ' | v_v_val);
    When 2 then dbms_sql.column_value (c, j, v_n_val);
    dbms_output.put_line (rec_tab (j) .col_name |': ' | v_n_val);
    12. When can dbms_sql.column_value (c, j, v_d_val);
    dbms_output.put_line (rec_tab (j) .col_name |': ' | to_char (v_d_val,' DD/MM/YYYY HH24:MI:SS'));))
    on the other
    DBMS_SQL.column_value (c, j, v_v_val);
    dbms_output.put_line (rec_tab (j) .col_name |': ' | v_v_val);
    end case;
    end loop;
    dbms_output.put_line('---');
    end loop;
    --
    -Close the cursor, now we're done with it
    DBMS_SQL.close_cursor (c);
    END;
    /

    SQL > run_query exec ('select ename, empno, sal, deptno from emp where deptno = 10');
    Number of columns in the query: 4
    -Columns-
    EMPNO - NUMBER
    ENAME - VARCHAR2
    DEPTNO - NUMBER
    SAL - NUMBER
    -------------
    Line: 1
    --------------
    EMPNO: 7782
    ENAME: CLARK
    DEPTNO: 10
    SAL: 2450
    --------------
    Row: 2
    --------------
    EMPNO: 7839
    ENAME: KING
    DEPTNO: 10
    SAL: 5000
    --------------
    Row: 3
    --------------
    EMPNO: 7934
    ENAME: MILLER
    DEPTNO: 10
    SAL: 1300
    --------------

    PL/SQL procedure successfully completed.

    As you can see with this method, you can extract the column details, including the name and data etc. types and then extract each line and extract the data from the column position.

    Of course, this is quite complex, so it would be a last resort.

Maybe you are looking for