Storage of Variable year - 1 presentation

Hi gurus,

I have a requirement where I'm passing prompt value the financial year of the dashboard a narrative as mode @{YEAR}. I would also like to add to this narrative point of view @{YEAR} - 1 though when the user selects 2012 in line with dashboard, my narrative view shud go something like this:

These data are for fiscal year 2012 and its prior year 2011. If the user selects 2011, then "data are for fiscal year 2011 and the year before 2010."

How do I achieve using PV? Tried @{YEAR} - 1, cast to int - 1, etc.

Please suggest.

Thank you
Dan

You can refer selected variable value of presentation in narrative mode, but you cannot reach

@{YEAR} - 1

Try to use the expression @{YEAR} - 1 as one of your columns in the criteria, then hide and refer in narrative mode.
That would help subtract you - 1 other wise, you may need to do the same using Javascript in narrative mode.

Hope this helps, let us know updates

Thank you
http://cool-bi.com

Published by: Srini VIEREN on May 26, 2013 12:12 AM

Tags: Business Intelligence

Similar Questions

  • Variable passage of presentation to the physical layer in SPR

    Hello

    I need to pass the variable of the presentation to the RPD physical layer, so that it can be used in my table function Select, query or procedure, so OBIEE pulls all the data of the database tables.

    , Someone has any idea how to achieve this?

    Or if someone can tell me any other way to achieve the same functionality

    Kind regards
    Vikas

    Published by: user10869662 on June 18, 2009 04:03

    Published by: user10869662 on June 18, 2009 04:04

    Do not use quotes around the variable name as gerardnico has already suggested. It should be VALUEOF (NQ_SESSION. Numero_projet).

  • Why Apple didn't add the storage to five years plan a year

    Why Apple has not added a year year two years, five years and ten years plan of buying storage icloud we mostle have debit cards and monthly its terrible to pay

    Return of goods - Apple

  • Variable of OBIEE presentation

    Hello

    I am facing problem with calculations using the variable of presentation used in the formula in the column on the reports.

    The report is generated correctly for the first time using the variable of presentation.

    But when I change the value of the field in the command prompt, the variable of presentation does not get applied to the report and I explicitly click on the Refresh button to generate the report with good results.

    Any ideas to fix this please?

    Thanks in advance...

    Shravan

    Try you luck with this, do not value pass default ther by formula... do it through 'default selection' of the guest

    (CASE WHEN ' @{Budget} "="Business Plan"and THEN filter ("Events"". ")") Participant Ops recipes"using"Scenario ". "" Gen2, scenario ' = 'Business Plan' AND 'period '. ("' Gen2, period" = "YearTotal") WHEN ' @{Budget} "="Internal Budget"and THEN filter ("Events"." Participant Ops recipes"using"Scenario ". "" Gen2, scenario ' = 'Internal Budget' AND 'period '. (("" Gen2, period "="YearTotal") END) / 1000

    hope this will help.

  • Dashboard several variable guests of presentation in the title

    Hi all

    I have 3 guests of dashboard and I have to make them appear on the title of the report when they select guests. I know how to do it with a command prompt. Not sure if I can with several selections prompt appear on the title of the report, if so could you please give me the format how can I do. for example the electronic sales in-store Super CA, ABR,

    Thank you
    Ravi

    A presentation variable can only contain a single value. This is why you cannot use PVs when you have a multiple selection prompt. This is also true when you have "All choices" as the selection. Behind the scenes, OBIEE interprets this chain "filterless". Therefore, there is nothing to save in the PV, and you get an error. Once you press the "Go" button, you set the variable so it can display the value.

    I have no work around this issue for what you are trying to do. I'm sorry.

  • Variable of online presentation of dashboard

    Hi all

    I have a report on a dashboard page that navigates to another report on a page of different dashboard (on the same dashboard). The
    first page of dashboard has a prompt that must be passed as a filter to the sailed report i.e. Report1 on dashpage1 has fast Level1
    whose value should be passed to Report2 on dashpage2 which has Level2 (where Report2 must show values for the past Level1 Level2).
    (1) I tried prompt1 setting on the first page to the dashboard, but it did not help.
    (2) I'm trying to set a variable 'level1_val' presentation in the prompt1 and then in Report2 say Level2 = @{level1_val} in the responses (filter-> add variable presentation, I did not provide a default value). But when I browse Report2 shows no results. On the addition of the value of the filter, I noticed the condition of Report2 is Level1 = level1_val (taking level1_val presentation a string variable and corresponding to the Level1 guest value). Level1 prompt value is a string. Y at - he said a format "@{level1_val}' I should use in the column filter (I tried this too)?"

    Thank you
    Ananth

    '<--a href="">
    Action=navigate&col1=%22Level%20Hierarchy%22.Level1&val1='|| REPLACE (REPLACE (' @{pv_level1} ',' ', '+'), '+', '% 2B') | ' > Link<-->'

    For presentation attribute replaces "with 22% and spaces with % 20, it is necessary for the syntax of the URL of the dashboard for attributes prompt report or dashboard target."

    col1=%22Level%20Hierarchy%22.Level1

    where "Hierarchy of levels".level1 is the true name of presentation table.column in report 2, the value is invited.

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

  • How to store the values of variable level OBIEE presentation in DB

    Hi all!

    We have a command prompt of dashboard which is set up to store values in variables of presentation (period start and period end dates). Is there a way to store values selected from a database? for further processing?
    that is, I need to pass the variable level (report parameters) presentation to complex calculations to a PL/SQL function.
    Also my requirement might be solved if I can get access to the selected values of logical column in the tab 'Business Model and mapping' definition in the BI administrator.
    that is, I'll be able to define the logical column using VALUEOF (NQ_SESSION. < nom_var >)

    Kind regards
    Mr.Maverick

    Hello.

    1 do SQL PL/function (in the database) which has an input parameters, which number depends on number of guests and in it you'll insert these parameters into a table.

    2. your report in column expression answers call this function that will do insert, the code would be like:
    EVALUATE ("YOUR_FUNCTION (1%, 2%, 3%, 4%) (' as varchar (20), @{p_1}, @{p_2}, @{p_3}, @{p_4})

    3. Note that the function returns something and be careful on data types inside EVALUATE it.

    4. notes that, in the case where some messages are not selected (all or nothing) you recognize this case as:

    -case when LENGTH('@{pv_var}') > 0 then ' @{pv_var}' end else' all '.

    or like this:

    -case when LENGTH('@{pv_var}') is null then 'all choice"other" @{pv_var}' end; "

    Kind regards
    Goran
    http://108obiee.blogspot.com

  • Problem with variable referencing of presentation (KEY Date) in the instruction box

    Hello

    I'm trying to reference variables of presentation created on a Date column in the instruction box to one of the columns in the query, as shown below:

    -case when '-citation details. "" "Created" between ' @{of} {1999-1-1}' and ' @{until} {2999-1-1} "then"-quote Metrics. " "" end of number of citations.

    I m getting a view displays error message with the following error message:

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 17001] Oracle error code: 1861, message: ORA-01861: literal does not match the format string to the call of the OIC OCIStmtExecute

    SQL issued: SELECT "-quote Types '." Name of level 2 Saw_0', case when '-citation details. "" Created "between" 01/04/2009 ' and ' 15 / 04/2009 ' then '-quote Metrics ' "." number of citations"end saw_1"(unit) - CATALOGUE of quotes"WHERE"-citation details "". "" Date of creation"BETWEEN timestamp ' 2009-04-01 00:00:00 ' timestamp AND ' 2009-04-15 00:00:00 ' ORDER BY saw_0


    When I created the prompt on the date field, I put the following in the command prompt:
    Cast ("-time".) Day)

    When I apply a filter on the query using these variables, it works fine.

    If anyone has faced this kind of question earlier and have a resolution, please help me.

    Thank you
    Kitenge

    Hello.

    Select the double - A NON-VALIDE MONTHS TO_DATE('1999-1-1','mm/dd/yyyy')

    Try this:

    OLD: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {1999-1-1} ", mm/dd/yyyy)
    NEW: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {01/01/1999} ", mm/dd/yyyy)

    and

    OLD: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {2999-1-1} ", mm/dd/yyyy)
    NEW: EVALUATE ('TO_DATE (%1, %2)', ' @{of} {1, 1, 2999} ", mm/dd/yyyy)

    and if not ok after that, after an error in query SQL of NQQuery.log.

    Kind regards

    Goran Ocko

    http://108obiee.blogspot.com/

  • Orchestrator web client: using variables in one presentation to another page

    A workflow that works linking orchestrator does not running the web client because (after a repair) I found that the values of a page of the submission form is not available on the other.  For example, the user selects the string: templateName on the first page and the following pages using #templateName to call a function.   However, this variable is empty so can not be used.  However, it can access General variables with values hard-coded.

    Is this a bug? limitation? Are there workarounds?

    (I use vsphere client 5.5 build 2026576)

    Default value is set once while data binding must be updated each time that the first field is changed.

    Sometimes what happens is that when the workflow starts, the default value cannot be calculated because the parameter is not yet set.

    You can avoid making mistakes with the launch of the first privilege of actions: if (parameterName == null) return null;

    But I'm surprised the example that you gave does not work.

    Check the server.log file to verify if the action runs with the empty parameter en or if there is another error.

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

  • 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

  • Variable presentation + filters

    Hello

    I am facing a problem: I have 2 reports, we got a filter is applied, the second year > = @{year_variable}. My guest is: year =... and it is linked to a variable named year_variable presentation.

    But in my dashboard, when I spent a year at the prompt, my first report is filtered normally, but for the second, instead of having year > =... I don't have data for the year, I put.

    Any who encounter the same problem? And how can I solve it?
    Thank you

    Hello

    Convert your sql filter and use the year syntax > = ' @{year_variable}'.

    Don't forget to put the qoutes.

    Concerning
    Sandeep

  • Variable presentation of its use as a filter in the formula in the column

    Hi all

    I want to display the data in a column 'Revenue Budget' based on a filter that is determined by a variable pv_budgetversion of presentation with 2 values being 'Budget' and 'RF2. The column's formula is:

    CASE

    WHEN @{pv_budgetversion} = 'Budget '.

    THEN FILTER ('fact - Sales - Budget'. "" Revenue budget ' help ("Sun - Details of the sales Budget". (("" Budget type "="LB_Budget"))

    WHEN @{pv_budgetversion} = "RF2.

    THEN FILTER ('fact - Sales - Budget'. "" Revenue budget ' help ("Sun - Details of the sales Budget". (("" Budget type "="BUDRF2"))

    0 OTHERWISE

    END

    However, when I try to save this formula I get the following error:

    Invalid alias Format: Table_name. Column_name required. OK (ignoring the error)

    When I click OK and run the report in any case, I get this error:

    Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000.  Code: 10058.  [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 43119] Query Failed: [nQSError: 59140] evaluation of the index expression 7 rows count-1 has failed. [nQSError: 59001] Binary logical operation is not allowed on VARBINARY, INTEGER operands to appeal. (HY000)
    How to solve this problem? Thanks for your help! I'm kind new to OBIEE, so I apologize already in which case this is a really stupid question.
    Best regards
    L.

    Try this

    CASE

    WHEN ' @{pv_budgetversion} "= 'Budget'

    THEN FILTER ('fact - Sales - Budget'. "" Revenue budget ' help ("Sun - Details of the sales Budget". (("" Budget type "="LB_Budget"))

    WHEN ' @{pv_budgetversion} "="RF2"

    THEN FILTER ('fact - Sales - Budget'. "" Revenue budget ' help ("Sun - Details of the sales Budget". (("" Budget type "="BUDRF2"))

    0 OTHERWISE

    END

    See you soon,.

  • How can I use variable presentation logic SQL

    Hi Experts,

    How can I use variable SQL logical presentation. I need the exact syntax. Kindly help me to achieve this goal.

    "Time". "" Date "between the Date of 2014 '-1-17 'and Date' ' 2014-2-16

    Thanks in advance

    Asim

    It's done... We can use it in the logical query with the same syntax where we use in converting this filter as SQL...

  • Question of Variable presentation

    Hello

    I am facing a problem with the variable behavior of presentation.

    I'm having a problem where if I use the variables of presentation of a line of dashboard in two reports in the dashboard, its gives me the same results for the two reports.

    -WS_Origin1

    -WS_Destn1

    are two variables of presentation in the dash prompt. I use these two reports

    Report of departure and Destination

    where origin = @{WS_Origin1} and Destn = @{WS_Destn1}

    Second report

    Origin-destination report

    where origin = @{WS_Destn1} and Destn = @{WS_Origin1}

    When I select values in the dashboard line say Origination = YYC and Desntination = YOW, reports above give me the same results. When I look at the SQL are filtered even.

    That is to say

    Report of departure and Destination

    where origin = YYC and Destn = YOW

    Second report

    Origin-destination report

    where origin = YYC and Destn = YOW

    (Note: it must be original YOW = and Destn = YYC)

    Thank you

    Hi guys,.

    Thanks for the reply, I tried all the solutions provided above but did not receive the expected result. I think I have the solution, I used guests from the column in the line of dash and the same columns were also using in reports, I changed the variable column guests guests and solved the problem.

    All you guys, appreciate a lot for the answer so quickly. Thank you.

Maybe you are looking for

  • Replacing the battery on HP envy 15-j049tx

    Is the battery on HP envy 15-j049tx removable? If it's not removable is it replaceable? for how many years the battery will work properly without any problem? http://WWW8.HP.com/in/en/products/laptops/product-detail.html?OID=5448975#! tab features =

  • Recommendations of power supply for P6774y

    I have a P6774y AMD Phenom II X 4 840 T I just installed a new Radeon 6870 and the computer keeps shut down during some games. Do you have recommendations for a compatible power? I thought maybe one of these Corsairs? It will be difficult to install?

  • I MicrosoftSparkODBCDriver64.msi need a driver that is used to connect to Windows spark. I have a 64 bit windows 7 PC.

    Hello I MicrosoftSparkODBCDriver64.msi need a driver that is used to connect to Windows spark. I have a 64 bit windows 7 PC. I tried to download from Microsoft provided https://download.microsoft.com/download/C/C/1/CC102271-5CE8-4F5E-A1F9-6D97CAA734D

  • Error Flash.ocx

    I get an error message when I try to use learning to license software. He tells me that my Windows 7 does not have file Flash.ocx. I've used Firefox, but uninstall today. Still does not work. The same error. This happens because an update has been in

  • ASA Rommon boot guard!

    Hello I recently had to re - format, add a new activation key and add the asdm504.bin and the asa704 - k8.bin in my ASA 5520 (I accidentally erased memory on the machine). Now, whenever I use the command "reload" it just directly load in Rommon #...