Diplaying some text when the formula value is negative

Hi all,
I am calculating the date difference using the formula  diff= date1- date2.
My requirement is when the diff is negative it has to displayed as # or with some text but not as zero .
Regards

You can display some random number say 999999 instead of # or text.Is that feasible ?
As # and text cannot be used for key figures.
You can create a formula like :
( diff < 0 ) * 99999 + (diff >= 0 ) * diff
Hope this helps.

Similar Messages

  • How can we remove the commas from the Formula value in SAP BW BEx query

    Hi All,
    How can we remove the commas from the Formula value in SAP BW BEx query
    We are using the formula replacing with characteristic.The characteristic value needs to be display as number with out commas.
    Regards
    Venkat.

    Do you want to remove the commas when you run the query on Bex Web or in RSRT?
    Regards

  • Scribble some text on the image

    i am developing one application in applet.for my application i need to scribble some text on the image.the scribble text must displayed on the image when ever i open the image

    We do not support this functionality. I suspect you are talking about watermarking?
    I would suggest you send a message to [email protected] , the product manager for interMedia and describe your application. This would be helpful in defining future requirements. He may also know of partners that can supply this technology.
    You can add text to an image using JAI or some other packages before the image goes into the database, or when it goes out.
    Larry

  • Time when the waveform value cross a determined level

    Hi all,
    I'm using PCI-5112 with Labvew to capture a waveform and i'm getting a triangle form waveform type. How to find the time when the waveform value cross some predetermined values. To put it more clearly, I attached a picture. In my picture, I want to know TH (time interval when the Y value cross 100), TM ( time interval when the Y value cross 50), TL (time interval when the Y value cross 20). How to put these measurements through Labview program? Any clue or example would be very helpful. Thx  
    Attachments:
    description.jpg ‏22 KB

    You can do this using the built-in NI-SCOPE functions or the LabVIEW pulse waveform measurements VIs by tweaking the reference levels appropriately.  However, given the noise level in your signal, you may not be happy with the result, since these measurements are done essentially on a point-to-point basis.  A more robust option is to find the approximate location of the level crossing, take N points on either side of it, do a simple curve fit to this data, then use the curve fit to determine the actual level crossing.  A line fit would work on the first part of your curve, an exponetial or parabolic fit on the second.  A further optimization would be to use a robust fitting method, but it does not look like you need to go that far.
    If you need more details on any of these methods, let us know.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How do I select the entire text when the focus is moved to one TextBox?

    How do I select the entire text when the focus is moved to one TextBox?
    There are three TextBoxes.  I use <TextBox TabIndex="1"/> to set the order they are selected.  When I enter one specific TextBox, I would like to have the entire text selected ... one key stroke removes all of the text in that TextBox.
    bhs67

    I do it the following way:
    1.  Override the OnStartup for the application.  Use the following code: (VB.NET)
    EventManager.RegisterClassHandler(GetType(TextBox), TextBox.GotFocusEvent, New RoutedEventHandler(AddressOf TextBox_GotFocus))
    2.  In the event handler use this code (again VB.NET)
    Private Sub TextBox_GotFocus(ByVal sender As Object, ByVal e As RoutedEventArgs)
    _theTextBox = CType(sender, TextBox)
    If setFocusTimer IsNot Nothing Then
    RemoveHandler setFocusTimer.Tick, AddressOf setFocusTimer_Tick
    End If
    setFocusTimer = New DispatcherTimer
    setFocusTimer.Interval = TimeSpan.FromMilliseconds(10)
    AddHandler setFocusTimer.Tick, AddressOf setFocusTimer_Tick
    setFocusTimer.Start()
    End Sub
    Private Sub setFocusTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
    setFocusTimer.Stop()
    _theTextBox.SelectAll()
    End Sub
    What this does is register a handler for every textbox in your application.  This will execute when the GotFocus event is raised and will allow you to do whatever (in this case select all) you want.  A great way of handling things at the application
    level.
    Lloyd Sheen

  • My ipad has died! I was deletng some emails when the email, safari, settings all went dead. Now i can't turn it on. it is charged but i have plugged it in and again have no symbol to say it's charging. What has gone wrong?

    my ipad has died! I was deleting some emails when the email, safari, settings all went dead. Now i can't turn it on. it is charged but i have plugged it in and again have no symbol to say it's charging. What has gone wrong?

    that worked - thank you! Do you know why it happened? did i do something wrong? i was just deleting some emails with attached photos.

  • ERROR in  MR8M - The acquisition value is negative in the area 02

    Hello,
    I am not able to reverse by MR8M a document released in MIRO, of an error: "The acquisition value is negative in the area 02 - AA617 message. "
    Can anyone help me?
    Thank you in advance,
    Luiz Henrique

    Hi,
    The reason wold probably be that the Asset master would have been already capitalized or it would have been de-activated.  Kindly check with your finance team before processing MR8M.
    Regards,

  • How can I paste a part of a sheet from Numbers in Pages as text, without the formulas.The reason I need this (and was used to in Office) so that I have the freedom to delete something in one cell (in pages document) without causing changes.

    How can I paste a part of a sheet that I copied in Numers in a pages document without the formulas, simply as text. Used this a lot in Office. When I make some changes in the pages document. f.i. deleting a cell, I don't want to change other cells. Also when I copy a part of a sheet from Numbers and one of the cells that is part of the formula is not also copied, when I paste in Pages it shows as an error.
    Hope that You can me help with this.

    Leon,
    There are two solutions to the first question, narrowing to one solution when you have a broken link causing an error.
    Here's the "works always" solution.
    Copy (Command-C) the table or range in Numbers
    Click off the table on the blank canvas of the sheet.
    Edit > Paste Values
    Command-C
    Switch to Pages
    Command-V
    Regards,
    Jerry

  • Show some text when mouse hover over a component

    Hi,
    I would like to show a couple of lines of text, just to the right hand-side of the component (kind of a mini-pop up menu) everytime the mouse hovers on that component. The focuslistener is in place and working, but I don't know how to implement this 'popup' menu. I don't need to select any of the lines or perform any action on them, just showing them
    thanks

    thanks, that's the component I was looking for (assuming I can now change the fonts, colour etc)
    I have done the following and it kind of works: it should highlight the text and show the tooltip. However, it kind of gets stuck every now and then...two things: it takes some time before the tooltip appears (1 sec): is there a way to make it immediate, simultanous to the highligh? also, I have a few Jtextfield, as you may remember..as I hover the mouse over each of them, it all works fine, but when I go back to a jtextfield previously hovered over and highlighted, nothing happens, until I randomly click around and then works again. Any ideas? thanks a lot
    myJTextField.addMouseListener(new MouseAdapter(){
                     public void mouseEntered(MouseEvent e) {
                        ((JTextField) e.getSource ()).requestFocus();
                        ((JTextField) e.getSource ()).selectAll(); // highlight the text
                        ((JTextField) e.getSource ()).setToolTipText("text");
                       

  • Binding textbox to combobox selected value when the selected value is blank

    I have a simple form that binds data to a combobox and when one of the values in the combobox is selected it fills a textbox with the corresponding column in that table.  However, if that combobox value is empty(meaning that table cell is empty) then
    the textbox will not fill with the correct value.  I am finding this hard to explain so I will lay it out.
    The table[COA] is as follows:
    ID
    Fund
    Fund Description
    Bus Unit
    Bus Unit Description
    Obj
    Obj Description
    Sub
    PEC
    1
    2789
    Account Refund
    10000
    General Fund
    1500
    ASC Voucher
    10
    2
    2789
    Account Refund
    10000
    General Fund
    1500
    Voucher
    The following is my code:
    private void subComboBox_SelectedIndexChanged(object sender, EventArgs e)
    pECTextBox.Clear();
    using (SqlConnection connection = new SqlConnection(@"Data Source=MARYANNEBORJA\SQLEXPRESS;Initial Catalog=jdeDatabase;Persist Security Info=True;User ID=Jordan;Password=*****"))
    SqlCommand command = new SqlCommand("SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] ='" + subComboBox.Text + "'");
    command.Connection = connection;
    connection.Open();
    SqlDataReader read = command.ExecuteReader();
    while (read.Read())
    if (!read.IsDBNull(8))
    pECTextBox.Text = (read["PEC"].ToString());
    else
    pECTextBox.Text = "";
    obj_DescriptionTextBox.Text = (read["Obj Description"].ToString());
    read.Close();
    I fill my combobox with Sub values based on the Bus Unit and Obj.  Since the Bus Unit and the Obj in both rows are the same the combobox is filled with 10 and "".  
    Here is where the problem occurs.  When I select "10" in the combobox I want a textbox to fill with correct Obj Description field.  So selecting "10" would give me 'ASC Voucher' in the textbox and selecting "" should
    give me 'Voucher' in the textbox, but this is not the case.  I can only get 'ASC Voucher' to fill the textbox.  When I select "" it keeps the textbox at 'ASC Voucher'.
    My guess us that is has something to do with the value being empty in that table cell because when I am selecting other values it works.  
    Any guess as to what I should do?

    Hi objectifyThat,
    When Your subComboBox.Text is null, you should use "Sub is null" in your SQL like below.
    private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
    pECTextBox.Clear();
    using (SqlConnection connection = new SqlConnection(@"Data Source=MARYANNEBORJA\SQLEXPRESS;Initial Catalog=jdeDatabase;Persist Security Info=True;User ID=Jordan;Password=*****"))
    string cmdstring = "SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] ='" + subComboBox.Text + "'";
    if (string.IsNullOrEmpty(subComboBox.Text))
    cmdstring = "SELECT * FROM [COA] WHERE [Bus Unit]='" + bus_UnitComboBox.Text + "' AND [Obj] ='" + objComboBox.Text + "'AND [Sub] Is Null";
    SqlCommand command = new SqlCommand(cmdstring);
    command.Connection = connection;
    connection.Open();
    SqlDataReader read = command.ExecuteReader();
    while (read.Read())
    if (!read.IsDBNull(8))
    pECTextBox.Text = (read["PEC"].ToString());
    else
    pECTextBox.Text = "";
    obj_DescriptionTextBox.Text = (read["Obj Description"].ToString());
    read.Close();
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How can add some text on the image

    I have images in the gif format.
    How can I add some text in specified point on the image?
    Fpor example, by using Intermedia plugins?

    We do not support this functionality. I suspect you are talking about watermarking?
    I would suggest you send a message to [email protected] , the product manager for interMedia and describe your application. This would be helpful in defining future requirements. He may also know of partners that can supply this technology.
    You can add text to an image using JAI or some other packages before the image goes into the database, or when it goes out.
    Larry

  • How to underline the text when the mouse is over the text

    I want to underline text when I move a mouse over it? Is this possible with JavaFX event listener?

    Create some text, set style-class and add it to the scene.
    Text text = new Text("Hello World!");
    text.getStyleClass().add("text");
    In a stylesheet (e.g., my_styles.css file)
    .text:hover { -fx-underline: true; }
    Add the stylesheet to the scene:
    scene.getStylesheets().add("my_styles.css");
    Or, add a listener to the hoverProperty.
            text.hoverProperty().addListener(new ChangeListener<Boolean>() {
                @Override
                public void changed(ObservableValue<? extends Boolean> observableValue, Boolean oldVal, Boolean newVal) {
                        text.setUnderline(newVal);
    Or bind the underlineProperty to the hoverProperty
        text.underlineProperty().bind(text.hoverProperty());

  • If I send a text during a time restriction, will my phone re-send the text when the time restriction is over?

    In the family share program, I put a time restraint on my phone so that I couldn't use it during a certain period of time. If I attempt to send a text message during that time, the message won't be sent. But when the time restriction is ended and my phone is unlocked, will that message automatically try again? Or will I have to write and send a new message?

        That is a great question lsellnow! Messages are not save for later delivery. You will have to rewrite your message when the line is not under any restriction.
    AntonioC_VZW Follow us on Twitter at www.twitter.com/VZWSupport

  • Paste some text in the windows clipboard

    Hello,
    i want to paste some text within a customer-specific scenario into the windows clipboard (CNTRL+C automatically done in background); has anyone some ideas how to solve this issue? I am inside a BSP, so i cannot use the old frontend services anymore...
    Kind regards
    Christian

    Use - FM - CLPB_EXPORT - but it is obsolete.

  • Customize Basic Search iView with some text above the Search field

    Hello *,
    we are using the sap.km.cm.basicsearch iView for searching some things. Is it possible to write some text for description above the search field inside the iview?
    Regards,
    Björn,

    Hi Adam,
        U can add a description to the search field in the search iView by customizing the sap.km.cm.basicsearch iView.Download the PAR file from the server machine or from System Administration>support>Portal Runtime>Browse Deployment>Save the PAR file in local machine and import the same to NWDS and customize according to ur requirement.
    Hope this Helps.
    Regards,
    Vinoth.M

Maybe you are looking for

  • Can't transfer my ipod tunes to my laptop

    Hi all, just bought a macbook pro, and i took my ipod to put some tunes on it. but it won't let me transfer any of my tunes to my computer! what gives??!?!?!?!

  • GUI Configuration

    Hi All, What are the steps to configure GUI in Content-Cache Server? Thank You, Manoj

  • Leopard Vs. Safari and uninstall of Old OS

    I did an archive and install. everything is ok, so now how do I delete Tiger, or is it already deleted? Also I'm working with version 10.5.5 and every time I try to run safari it says it doesnt work with this OS. so I tried downloading the newest ver

  • Sample jsp servlet bean (MVC) code

    We want to look into the JSP/Servlet/Bean area for our next project. We wish to understand the technology and as such want to hand build simple applications, and as such do not want to use JDeveloper just yet. We have searched and searched for suitab

  • Text tool bug

    Just installed CS4. Using Flash on a new project. Whenever I try to change the font on my text tool options, Flash crashes on me. Is anyone else experiencing this? Does anyone have a solution?