Passing the integer value in the command prompt

Hello world
I'm trying to pass a value of smallint data type (ex: 2000) from a prompt page with a filter. When I try to display the result, I get an error;
Error to Pierce information: SELECT C1, C2, C1 WHERE OF SH = variable1
ODBC driver returns an error (SQLExecDriverW).
State: HY000. Code: 10058...
Unresolved column: 'variable1 '. (HY000)

Note: I tried CAST (C1 int) for the formula column, but it did not help.

But, I tried changing the quick column with non-entier, such as product name and pass the variable, the value is passed to the column filter product name and it worked.

My goal is to pass a variable (integer) presentation and apply an expression to the variable (variable1 - 1) and use the values of the two variables for my filter condition.
Simply, I'm looking for how to move entire prompt to filter and apply the expression to the variable passed.

Hope you guys will help me solve this problem.

Thank you
Tom.

:)

HRH means... Right side of the equality operator.
Click on the particular column filter option > advanced > convert this filter in SQL

Now, in the right part of the equal operator, change it to

cast('@{variableName}' as int) - 1

try to keep the single quotes for variable and check... as I mentioned above

Tags: Business Intelligence

Similar Questions

  • Aggregate in the command prompt values

    Hello

    My Table.Column has below values:

    A

    B

    C

    D

    E

    I want to show: A, B, "BOTH" in the dash prompt.

    When A or B are selected in the command prompt, the respective values are supposed to go to the report; and when "BOTH" are selected both A and B must be passed to the report.

    Appreciate any ideas or advice.  Thank you very much in advance.

    Hello 920424 ,

    You can create a group to do this.

    Here are the steps to follow:

    • Create an analysis on this topic and go to the tab results click the icon with 3 blue points and a star in the menu bar.
    • Create your group by selecting a display label ('TWO') and by selecting the column and the value you want to put inside (A and B)
    • Spend the selection steps pane at the bottom of the screen and click on your group (BOTH)-->Group Save as... and save it in the subject area content folder.
    • In your guest Dashboard spend Options , add the same column and lookup values , select the values of specific columns, and then click the Plus sign.
    • Add A and B of the values in columns pane and add your component catalog group.

    Here you are.

    More info on the Group and calculated items: http://docs.oracle.com/cd/E23943_01/bi.1111/e10544/filter.htm#CJAHGBBE

    How to save: filtering and selection of data analysis - 11 g Release 1 (11.1.1)

    It will be useful.

    Kind regards

    JeromeFr

  • How to get the value of a command prompt in OBIEE

    Hello

    I am looking for a method to store the select value for a command prompt in a variable.

    Thank you

    2953248,

    Variable can be used to capture the selected value in a command prompt. Please find below the links that uses variables of presentation for various applications in OBIEE.

    https://blogs.Oracle.com/ExalyticsOBIEE/entry/how_to_pass_presentation_variable

    Rittman Mead Consulting"invites OBIEE dashboard: required at least one

  • assign the session as the default value of a command prompt variable

    Hi, experts,

    is it possible to assign the session as the default value of a command prompt variable?

    I would attribute the full name of the user of the connection to the default value of a prompt!

    Thank you!

    In the value default of / writing SQL results:

    Select
    case
    When 1 = 2 then table.column
    of another valueof (nq_session.user)
    end
    the area"presentation".

    The table.column must be the type of character data.

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

  • Problem with the format of the values in the command prompt (when you use multiple values)

    Hi all

    I have problem with the format of the values in the command prompt when you use multiple values.

    Value is year (2009) and when I use it in the drop-down list that is formatted, all right, as 2009, but when I use several values I get number as 2009,00. I put in year column format number with 0 decimal places and save by default in the year column. Year is formatted well anywhere in the query, such as 2009. Why is - what happens at the command prompt when you choose multiple values in prompt dashboard?

    Thank you

    I think the YEAR Data Type could be defined DOUBLE RPD.

    Use the CAST function in the formula (fx) and the output from test.

    CAST (INT YEAR)

    Hope, it will help you.

  • Delete the registry via the command prompt keys

    I uninstalled a program on my computer, and I want to remove all the remaining files, registry keys and values of that particular program to the registry via the command prompt. Y at - it a command line that can scan and remove all the remaining files, registry keys and values of this particular program of the whole registry via the command prompt in only once.

    Please help me.

    If the uninstall program is correctly written, then it will do it all. If this isn't the case, you will have to do it manually. Although it is possible to write a script that will scan the registry for some channels, it is not a trivial task. Running one such script would be quite risky because it could easily delete the wrong registry key.

    Also note that the unused files or registry keys not used do not slow down a machine, contrary to popular belief. Purge of these undesirable things might give you a welcome warm feeling inside, but he has no effect on the performance of the PC.

  • How can I configure the standard user profile in the impossibility to use the command prompt on windows7

    My teen age son knows how to get into the command prompt and use the computer as an administrator temporarily... How can I stop this?  It has a standard user account.

    On the flavors below, you must edit the registry directly by creating the value of HKCU\Software\Policies\Microsoft\Windows\System! DisableCMD.


     
    How to change the registry? I need more specific measures.
     
    Thank you
    Kathy
    This is not a trivial process for non trained. Also note that open a command prompt does NOT give your son of additional privileges unless he knows the password for an administrator account.
    Please note that if you skip any step then you may have a machine that won't start longer.
    1. Burn a CD to repair Windows via Control Panel / backup and restore.
    2. Test this boot the machine with her CD in the repair of Windows.
    3. Label this CD as "Repair Windows CD", then store it in a safe place.
    4. Start normally. Logging in as an administrator account.
    5. Create a Restore Point.
    6. Log in under your son's account.
    7. Click on the Globe to start, and then type regedit.exe and press ENTER. Enter the credentials of the administrator in case of dispute.
    8. HKey_Current_User\Software\Policies\Microsoft\Windows-access
    9. If there is no windows system key, create it:
      Click Edit / new / key, type system, and then press ENTER.
    10. Click on the key to the system.
    11. Click Edit / new / DWord, and then type the letters DisableCMD and press Enter.
    12. Double-click the DisableCMD value, and then type 1 in the data field and press ENTER.
    13. Try to open a command prompt. You should get a message of "deny".
  • Validate if something is selected in the command prompt

    Hello-

    How can I check if something is selected in the command prompt? In the report, I have to do < function1 > when there is only option selected in the prompt else < function2 >. I tried with variable presentation. So, my syntax in the column:

    -CASE when @{Var}['@']{'abc'} = 'abc', then 'Nothing is selected in the prompt' else 'this value in the prompt' end

    It works fine when only a single value is selected in the command prompt. When there are multiple values selected, it gives an error.

    Is there another trick to achieve this?

    Thank you!

    Instead of checking for is null or "variable presentation, it would be easy.

    just in case where to check it cool - bi.com you could get an idea of how validate the variable presentation.

    If brand aid

  • default selection in the command prompt

    Hello

    With the help of obiee 11.1.1
    I created a variable presentation in the command prompt using sql result.

    Using this prompt in my... e anaysis.i which I use in the filter.

    Initailly when I run the dashboard because no value is selected in the filter performances without results found
    No results
    All data is not cause to the specified criteria.
    This is often due by applying filters and/or selections that are too restrictive or contain incorrect values. Please check your filters to analysis, and then try again. The currently applied filters are listed below.


    M_NAME is equivalent to / in VarMName

    Wharton I want is
    Scenario 1-> what to make sure the results no msg would not come and just the filter should be displayed.
    or
    Scenario 2 - display all the filter values in the report initially that is as if one has chosen the value of filter.
    or
    Scenario 3-> by default select one filter and show the result for this.

    I want to know how to do the 3 scenarios?

    Thank you

    Hello

    Similar to scenario 2 and 3 for me (may be mistaken) creating fast, you can set the default values for all the choices or any desired value so that the report can show for all values. But I was wondering where you use this variable presentation (I mean for the calculation or any other object)

    Scenario1 can be reached certain that using any results display in the results tab, but I'm not sure if you can show filters here or not. But when you don't get any results, there are cases where it shows what are the filter condition has been applied in the report.

    Phani.

  • After the command prompt performance report

    Hello

    I need to create a dashboard with a quick dash and a report of the response.

    I wish that the report is run and displayed ONLY after YOU select values in the command prompt, and then click the 'GO' button in the command prompt.

    Can you help me?

    Sara

    Stop execution before the selection of the user of the values in a dashboard command prompt.
    Re: Guests of dashboard - immediate start to search
    How to stop research on the dash when you open the dashboard...

    See you soon,.
    C.

  • No result when the command prompt is empty

    Experts,

    I want to display no. results in the report when the user does not enter any value in the command prompt.
    How can I achieve this.

    Parag

    Parag,

    Maybe the answer in the previous post must be correct:
    Value of variable in presentation

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

  • Timestamp in the command prompt

    Hello Experts,
    I try to set a time stamp to a variable presentation so I can use to filter reports, but the variable is set to one value other than timestamp, so I can't filter use it. Is there a way where I can ride in the prompt so I can achieve.

    Concerning

    Try this:

    In the command prompt, select a column of type CHAR. Do this two times. In the formula for each column, enter the CASE WHERE 1 = 0 THEN tablename.columname ELSE 'test' END

    This prevents the column being altered by the SQL. Now type this SQL:

    SELECT DISTINCT Time.Calendar_Date FROM subject_area and set it to a Variable (PV) presentation called StartDate.

    Repeat the above but the second instance of a PV called EndDate.

    Now in your request on the date column, add the Time.Date_column filter > = @{StartDate} AND Time.Date_column<=>

    It will work.

  • How to save passwords after you said 'no' to the command prompt

    How save passwords after you said 'never' at the command prompt.

    I tried again and again and again, and none of the solutions suggested on the internet works. And there is also something too complicated for me.

    Hi, jscher2000:

    Yes it's MARKET! Thank you very much for your help!

    I'm not all pages to remember my password I just want some specific pages to remember passwords. for example. for now I only need craigslist login page to remember my pw, not other login pages.

    If this is the case, then it is a perfect solution for me.

  • Satellite L - can I add new accounts via the command prompt?

    Is it possible that I can add new accounts to the machine via the command prompt on the screen of "recovery"?

    (When you start in recovery mode and select command prompt)

    I tried the normal commands "net user username / add ', but the accounts are not added to the machine.

    Y at - it another command which can be used?
    Thank you.

    Hello

    I don't know if it will work using the in my opinion Mr. recovery console, it is not possible.
    As far as I know that you can add the user and the password using the CMD, but this might work only when the Windows operating system has been loaded.

    In this case, you can use this command to add the user account: + net user username / add +.
    If you want to add a password for the user account, then you must use this way: + net user username password / Add +.

  • How to hide the command prompt window when using exec system

    Hello, I use the exec system VI to do some transfers of files for a LabVIEW application.  I'm afraid that the black white scroll text command prompt window that appears when exec system is called might scare users this LabVIEW application non-tech savy.  Is there a way to hide the command prompt window?

    Feed a REAL running reduced entry.

    Mike...

  • Execution of multiple lines of command at the command prompt (windows)

    Hello

    I'm vascular using the command prompt in the windows to try to send a command to the microcontroller that is connected through TCP connection.

    I am able to use the normal cmd.exe to send the command but I am unable to send the command all successfully using labview.

    The Vi. I use the exec.vi system found in the labview connectivity section.

    Basically, I want to send is 'telnet A1' motion in the cmd.exe to establish a connection to the microcontroller, followed by "For A1 100 GO," which will be performed by the microcontroller to do what is necessary. But currently, the problem is that I can only establish a connection using the exec.vi system but can't send the second part of the message 'for A1 100 GB".

    My command line, I tried typing is cme.exe /K telnet A1 & for A1 100 GB. It seems that labview is only able to run the first part of the command. Y at - there no alternatives?

    Thank you for all your help.

    I suspect that there are problems of synchronization with this code. Forst, you should clean it to the top because it is very difficult to follow. Cables are hidden under objects, this is a lot bigger than a view type and the code is usually very disorganized. I also suggest that you look at using a state machine, but also a structure of the event to intercept the user interface events such as the Start button.

Maybe you are looking for

  • What is the end of FireFox to life support policy

    For example, how long can I get support for FireFox 39? I'd like to see if possible for all versions.

  • Most applications have quit unexpectedly

    Hi, I've updated my 2013 at El Capitan 10.11.4 MacBookAir OsX Yosemite 1-2 months ago. But yesterday I updated Microsoft silverlight from iflix.com and I rebooted, but everything seems to be ok. After that, I use my mac for 1-2 hours before closing a

  • Why web pages appear incorrectly after upgrade to 6.0 3.6?

    When I upgraded from 3.6 to 6.0 (tried twice), it caused poster on the webpages to be severely compromised. I had coins of headers, in the wrong places in some cases (mainly Facebook - on the left side) and no content. Shopping sites had items and he

  • Satellite A660 Win7 - power management system action center is missing driver

    I replaced the battery on my laptop Toshiba A660-15J and a few months, is back with the battery high capacity and now Action Center 7 win keeps popping up with the message that I need to download and install the missing driver for power management sy

  • Question of PDF export

    Really like XD so far.  Simple but can create a little with the basic tools and love some of the features which are directed towards the models...Is there an easy way to resize a game of darts?  When I change the dimensions of a work plan, it crops t