With variable presentation month() function

Hi all

How can I use the MONTH() function in column answers, with variable presentation? I need to get the date month.
I tried MONTHS (' @{tmp_date}' as date) but it doesn't work I get the error message.

Thank you

Hello

If you select a single date value... go invite... then...
Just keep filter on is invited to date column criteria of special relationship...

Now, in the criteria take the same date column and apply * months ( column date ) *.

So this column has the value selected and taken months of that particular date...

try it this way...

Tags: Business Intelligence

Similar Questions

  • Multiple selection with Variable presentation

    Hello gurus:

    I currently have a dashboard where the user selects a Promotion ID and all other reports are based on this promo-id.

    Now, I use variable presentation for the promo-id.

    Now obligation if, for another page of dashboad, where a user can select up to 4 different promo-ID and compare them from the same measures.

    I was thinking about using PivotTable dynamic to compare and multiselect selection of promotions up to 4 guest.

    However I do not think that variable presentation works with multiple selection prompt.
    So, what should I do about it?

    I can do 4 different guests, but then it will force the user to select 4 promotions every time. I want to do something where the user can select 2,3 or 4 promotions.

    Please help me.
    Thank you.

    ~ Vinay.

    Yes, if you use the same column to create the dashboard and to create the filter.

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

  • OLIVIER Dashboard padding variable presentation with NQ_SESSION. ROLES

    Hello

    is there a way to fill a variable presentation on my dashboard with NQ_SESSION. ROLES?

    I've been using prompt to do the same thing, but I don't need to prompt the user for his roles of session. I just need to fill out a variable presentation which

    I then use to filter the data in the data model.

    Thanks for any help.

    Hi metalray,

    If your solution works, why not simply hide invite him?  Set the style CSS custom for this article to the display: none;  The guest always initialize the variable presentation even if it is not visible to the user.

    JB

  • 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

  • Create Variable presentation

    Hello

    I have a dashboard report where I would like to filter on:

    Employee_Name (=) - VARCHAR
    start_date(>=) - DATE
    end_date(<=) - DATE

    The user selects the values of the filter, the report only returns results based on those stipulated in the instructions. However there is a column in particular in the report that contains a calculation and does not change when the above settings are entered. I want these input parameters to pass into the column. Can this be achieved with a variable presentation? If so, how should the presentation variable to be configured and in what order?

    Thank you

    Published by: sliderrules on December 22, 2010 13:08

    Hello

    One more time. This wil work, I tested it myself.

    Put; @{name} in quotes as it--> ' @{name}'
    You won't need the Cast function.

    Good luck

    Daan Bakboord
    http://obibb.WordPress.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 change a global variable in a function?

    Hello

    I want to change a globalvariable in a function, as a first step I made in this way:

    class Global_output_class
    
    GlobalDim("Correlation_Status,fail_part,End_Exp")
    dim pouet
    
    Correlation_Status = 12
    Call Correlation()
    pouet = Correlation_Status
    
    Function Correlation()
      Dim Global_output_class_sub
      Set Global_output_class_sub = new Global_output_class
    
      Correlation_Status = 1
      fail_part = 2
      End_Exp = 3
    
      Global_output_class_sub.CorrelationStatus = Correlation_Status
      Global_output_class_sub.failpart = fail_part
      Global_output_class_sub.EndExp = End_Exp
      set Correlation = Global_output_class_sub
    End function
    

    In this case: correlation_status receives a value of 12, then I go to my correlationn() function where it became 1

    Then he comes out of the Sub-function and takes the previous value of the program (12) (I hate that)

    To solve the problem I did it this way:

    class Global_output_class
    public CorrelationStatus
    public failpart
    public EndExp
    end class 
    
    GlobalDim("Correlation_Status,fail_part,End_Exp")
    
    Correlation_Status = 12
    Set Global_Output = Correlation()
    Correlation_Status = Global_Output.CorrelationStatus
    fail_part = Global_Output.failpart
    End_Exp = Global_Output.EndExp
    pouet = Correlation_Status
    
    Function Correlation()
      Dim Global_output_class_sub
      Set Global_output_class_sub = new Global_output_class
    
      Correlation_Status = 1
      fail_part = 2
      End_Exp = 3
    
      Global_output_class_sub.CorrelationStatus = Correlation_Status
      Global_output_class_sub.failpart = fail_part
      Global_output_class_sub.EndExp = End_Exp
      set Correlation = Global_output_class_sub
    End function
    

    This way my global value are copied in themselves after leaving the subprogramme

    I had a lot of variables, is there an easier way for the global variable in a function of change keep the value after you leave the service?

    Thanks for the help,

    Fred

    Hi Fred,.

    It is possible to use a global variable defined, but the best way is to use a function call (or procedure call) with parameters. Please first find the right solution for a function call with parameter and the suboptimal way with a comprehensive valiable:

    dim oParameter
    set oParameter = new cGlobal_output_class
    
    oParameter.Correlation_Status = 12
    
    msgbox "Correlation_Status before Call Correlation: " & oParameter.Correlation_Status
    Call Correlation(oParameter)
    msgbox "Correlation_Status after Call Correlation: " & oParameter.Correlation_Status
    
    '-------------------------------------------------------------------------------
    Function Correlation(oPara)
      msgbox "Correlation_Status in the FUNCTION before change: " & oPara.Correlation_Status
      oPara.Correlation_Status = 1
      oPara.fail_part = 2
      oPara.End_Exp = 3
      msgbox "Correlation_Status in the FUNCTION after change: " & oPara.Correlation_Status
    End function
    
    '-------------------------------------------------------------------------------
    class cGlobal_output_class
      dim Correlation_Status,fail_part,End_Exp
    end class
    
    call GlobalDim("oPouet")
    
    dim oPouet
    set oPouet = new cGlobal_output_class
    
    oPouet.Correlation_Status = 12
    
    msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
    Call Correlation()
    msgbox "Correlation_Status before Call Correlation: " & oPouet.Correlation_Status
    
    '-------------------------------------------------------------------------------
    Function Correlation()
      msgbox "Correlation_Status in the FUNCTION before change: " & oPouet.Correlation_Status
      oPouet.Correlation_Status = 1
      oPouet.fail_part = 2
      oPouet.End_Exp = 3
      msgbox "Correlation_Status in the FUNCTION after change: " & oPouet.Correlation_Status
    End function
    
    '-------------------------------------------------------------------------------
    class cGlobal_output_class
      dim Correlation_Status,fail_part,End_Exp
    end class
    

    Greetings

    Walter

  • Variables in the function MathScript ode solver

    Hello

    I'm using LabView for awhile and I started using the text tools more. To solve a system of differential equations, there is this very elegant tool to do this in a MathScript node with the ode solve algorithms (for example, "ode_adams"). As the LabView help said, I've defined a function and registered as a ".m" file. I loaded this function in mathscript and solve differential equations.

    Both and so good, but my problem is that I can not all variables in the function. I can only put numbers in the function but not variables. Unfortunately I need to define the variables outside the function in the MathScript node.

    Does anyone have an idea how to manage the variables in this case?

    I have attatched a picture of the function and test VI (LV2014).

    Greetings

    Global variables to solve this problem:

    Solution:

    Greetings

  • OBI, variable presentation using results

    Hello!

    I have the text field with long text strings.

    I want to get results, using the filter "contains all" by this field

    Example:

    Values
    aaaa000
    aa000aa
    bbbaa

    I have entry to filter "a0" and I want to get results according to:

    Values
    aaaa000
    aa000aa

    If the filter field will be empty, I get the error, but I want to get all the rows in the result.

    How can I do?

    I did the following:

    1. in the analysis I marked new filter, type "CONSTAINS ALL". ": number" used as a variable presentation

    1 new analysis.jpg

    2. I did new dashboard prompr, where I did prompt variable, named ": number", type "Variable presentation."

    2 parameter.jpg

    3. I did the new dashboard, where I dragged my dashboard prompr and analysis

    Now, when the filter-field 'number' is empty, I get the error (and I agree with OLIVIER, because I did not specify the terms of null value):

    3 bad with empty.jpg

    And when I write all values in the filter field, everything works

    4 good when not empty.jpg

    I tried to fix it in the analysis, used 'Convert this SQL filter' and wrote the following sql text:

    "presentation_tmp"."WB_NUMBER" LIKE
    CASE
      WHEN @{:number} IS NULL THEN "presentation_tmp"."WB_NUMBER"
      ELSE concat(concat('%',@{:number}),'%')
    END
    

    But it did not help me

    How can I get all the lines, when the filter-field 'number' is empty?

    Hello

    Not really sure how you get this error when the field is empty (you should only get no result) but if you change your filter in the report to:

    WB_NUMBER contains all @{: number}

    TO

    WB_NUMBER contains all @{: number} {%}

    You should get all the values when you do not have any value in the dashboard line. Basically, put '%' in the default value of your filter.

  • Variables presentation in calculations using

    Hi all

    I need to use a variable of presentation in formula in my analysis. For example, the variable @{tax} and formula @{tax} * 'GL_SLA_DAILY '. "' TURNOVER '. The type of variable is a number, the type of column is also the number.

    But when I look at the analysis of report, it turns out that instead of the result of the calculation, I get 0. (neither tax nor sales are 0, just in case). If I replace the variable in the formula of the specific number - it works, I can also get the value of the variable (if I do the right formula @{tax}), but if I try @{tax} * 2 - she also dave 0 results. So the problem is in the execution of operations with variables.

    What should I do to make it work?

    Thanks to advice.

    Right now, one thing I can think is trying to mount your arguments forms double, something like:

    Cast (@{Variable} double ACEs) / x

    If this does not work you can try to get both sides of the division

    Cast (@{Variable} double ACEs) / cast (x as double)

  • 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

  • Count on column month function gives bad result

    Hello

    I'm on OBIEE 11.1.1.7.150120.

    I used the count on the column for the month function and instead of getting 12 as the answer I get 365. (I used a filter on the column year to restrict to one year)

    How could it happen?

    Any help would be appreciated.

    A count on your back 1661600 fact table is not strange because it is normal to have a ton of lines (zero, one or more for each value of your dimensions).

    If you look at the physical SQL what is it? 365 days is because of 1 line of time Sun has multiple matches on your fact table or is dim because your time is at the level of the day (again 365 is really a strange number: exactly the number of days in the year...).

    But the distinct count is your solution, because as soon as your will a request using your time and dimension of any other table with County you will count the number of lines and not the number of months.

  • What is the difference between variable presentation and application of OBIEE 11 g

    What is the difference between variable presentation and application of OBIEE 11 g

    Hello

    presentation and application of variable responses only but fluctuating demand can temporarily ignore the presentation and the session variable has nothing to do with the variables of repository.

    Everything what Oracle

    Thank you

    Prasanna

  • Variable presentation

    Hello

    I have a dashboard with a prompt and a table view.

    The guest is on a column 'Year' and it is associated with a variable presentation 'yearPV '.

    My table should be:

    PRODUCTS
    RECIPES
    REVENUE_YEARPREC
    PAPER5030
    PEN1020

    where is the REVENUE formula: «FILTER ("measure".» REVENUE"with the HELP of 'Time '. "' Year ' = (' @{yearPV} [YYYY]")

    Now, I want to change the formula for REVENUE_YEARPREC, which is the same indicator of INCOME but the previous year, but how to subtract 1 to the presentation variable 'yearPV '?

    Thank you

    Based on your filter ' @{yearPV} [YYYY] "looks like the variable PS tank

    You must cast to int, then subtract

    «FILTER ("measure".» REVENUE_YEARPREC'with the HELP of 'Time'." (An"= cast(cast ('@{yearPV}[YYYY]' as int)-1) as char))

    Thank you

    http://cool-bi.com

Maybe you are looking for