Formula definition if value is 0

Dear Folks,
To define the formula, I need to check the value first, if it is 0 then result should be 0 otherwise need to define the formula in formula definition area.
Please advise on this.
Thanks,
Ram

Try this.
The definition of the formula would be (field <> 0) * (The formula)
If it is not equal to 0, then the field <> 0 will return 1 and it is multiplied with the formula. So the result will be the formula value.
If it is equal to 0 then the field <> 0 will return 0, when multiplied with the formula it will be 0. So the result will be 0.
Hope this helps.
Thanks,
Meghana

Similar Messages

  • REP-2103: PL/SQL formula returned invalid value or no value

    Hi all,
    Before clone the report GEPS FA Prepare Mass Addition Report runs fine. But after cloned from production, it shows error:
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    REP-2103: Column 'G_MASS_ADDITION_INVOICE' : PL/SQL formula returned invalid value or no value.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-2103: Column 'G_MASS_ADDITION_INVOICE' : PL/SQL formula returned invalid value or no value.
    Actually I didn't have such column 'G_MASS_ADDITION_INVOICE'. This is a group name. I tried a lot, such as widden the formula column width or delete the formula column, but it still show this error. I didn't have any trigger or other formula column. Even I create a new report use the same name with a single query( select sysdate from dual), but it still shows the same error.
    Is there anyone faced this issue before or can help me ? Thanks
    ares
    Edited by: 930967 on Jun 13, 2012 12:46 AM

    Hi;
    Please see:R12 GL Account Balances Across Ledgers (GLRGCBGT) Report Errors With: REP-0004 MSG-00025 MSG-00104 MSG-01221 REP-2103 REP-0069 REP-57054, Program Exited With Status 1 [ID 1316929.1]
    Regard
    Helios

  • Categorize a table with more than 500 formulas or unique values.

    How comes you can't categorize a table with more than 500 formulas or unique values? Can you change this?

    This error appears in GeoServer and SQLPLUS.
    I have set up a completly new database installation to test this error and everything works fine. I tried it again on the previous database but I still get the same error. I also tried to restart the database, but with no luck, the error is still there. I geuss something is wrong with the database installation.
    Anyone knows what could cause an error like this "End of TNS data channel"?

  • Modify MVGR4 in formula for condition value

    Hello everyone,
    I want to modify komp-mvgr4 in a formula for condition value. Changes in komp structure are not saved, any idea which field I have to modify?
    Many thanks!
    Andreas

    Sure. I have a new formula for a condition value which checks a lot of things to calculate the condition value. The result can also be zero. In all other cases than zero, I want to set an additional flag on the position to show that the condition is used. For this I choosed the material group 4. Now I have to modify the materialgroup 4 MVGR4 in the formula, if I change komp-mvgr4 is does not save the changes...
    Andreas

  • If..then formula requiring numeric values

    Post Author: scd07
    CA Forum: Formula
    I have the need to create a formula that will analyze one field in order to determine the value of another field.  Below is a formula that follows the correct logic, but as it is a Boolean formula, it returns a  True/False answer, instead of the correct (numeric) data.  I do not know how to rephrase the formula that will return the numeric value.
    if {TLORDER.BILL_NUMBER} = previous ({TLORDER.BILL_NUMBER}) then {TLORDER.TOTAL_CHARGES} = 0 else {TLORDER.TOTAL_CHARGES} = {TLORDER.TOTAL_CHARGES}
    I appreciate any help!  Thank you!

    Post Author: scd07
    CA Forum: Formula
    Ok, this formula also works well, and I can now go in and create a Running total.  But again, I barely know what I am doing!  Here is what I put in the formula:
    Whileprintingrecords;Currencyvar Amount;
    if {LEGSUM.LS_TRIP_NUMBER}={LEGSUM.LS_TRIP_NUMBER} then Amount := Amount + {@Total Charges}
    This is providing a running total of the Last entry for each group.  It is not totaling All the records within the group.  I certainly appreciate your help with this.  I am actually a network person being impressed into reporting duty, and I am definitely experiencing "Trial by fire".  Thanks!
    Sara

  • In Report formula, IF no values then It is showing "0" (Zero)

    Hi,
    I have created a formula in Report. If the values are there then it is showing correct value. If no values for eg: blank + blank = 0, I want blank is required "SPACE" or " #" not the ZERO in the report .
    Regards,
    Satish
    Edited by: Satish Dora on Sep 9, 2010 8:05 PM

    Hi,
    I am not sure whether "display zero as" and "display blank as" is the same thing.
    I thought "display zero as" only controls the zero values and doesn't control the blank.
    Actually I think the author wants to distinguish zero and blank.
    If display both zero and blank as blank, I am not sure whether it's what he wants.
    Now that I check it in my system, it seems that blanks are still shown as blank though "Does not exist" setting is something else.
    This "Does not exist" seems to still be different than blank.
    Blank means there is no record in Infoprovider for certain restriction in my sample.
    What is the blank in your case, Satish?
    Regards,
    Patricia

  • Variable used in FOx formula should get value from user

    Hi Gurus,
    In my fox formula I want to multiply a keyfigure (say quantity) with a factor. For example if the factor is 10 then all records should get multiplied by 10.
    But the requirement is user shpuld be able to give the factor that should be multiplied. That is the l_factor used in the fox function should be a variable which gets value from user. I know we can give variables in filter and planning functions in IP. But can we give values in Fox formula.
    I would really appreciate the time and effort.
    Thanking you,
    Jerry Jerome

    Hello,
    May be you can try this solution.
    I think you have create a dummy character info-object(Z_Number) of same data type interget number.Create variable for Z_Number and restrict in filter(ZV_NUM).
    DATA Z_MAT TYPE 0Material.
    DATA Z_NUM TYPE Z_NUMBER.
    DATA Z_NUM_READ TYPE I.(Declate same as data type for Z_Number)
    Z_NUM = VARV(ZV_NUM).
    FORACH Z_MAT.
    Z_NUM_READ = Z_NUM.
    {Z_KF1,Z_MAT} = Z_NUM_READ * {Z_KF1,Z_MAT}.
    ENDFOR.

  • Customer Exit Variable in formula to get values for multiple keyfigures

    Hi to all,
    I have query as defined in following scenario:
    CHAR_X     C_KF1 (based on KF1)     C_KF2 (based on KF2)     u2026     C_KFn (based on KFn)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    C_KF = calculated key figure
    I need to create a customer exit variable that will search through selection e.g. CHAR_X/KF1 and give some result. I need this variable for every keyfigure (KF1-KFn). Using customer exit variable is the only solution.
    My question is: do I have to create formula variable (customer exit) representing every keyfigure separately (VAR1 u2013 VARn, like in below example)?
    CHAR_X     C_KF1 (using VAR1)     C_KF2 (using VAR2)     u2026     C_KFn (using VARn)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    Or is it possible to create one general formula variable since the way to retrieve the value in variable is always the same (like in below example)? In this case, how do I pass the value of the respective keyfigure to this variable?
    CHAR_X     C_KF1 (using VAR_X)     C_KF2 (using VAR_X)     u2026     C_KFn (using VAR_X)
    Value1                    
    Value2                    
    u2026                    
    Valuem                    
    Thanks for your replies, points will be awarded!
    Cheers

    That is my concern, the value of variable is not the same.
    What variable should do is:
    take KF1 id, go through values for CHAR_X, get back one value
    This value would always be different, and also "KF" part in code of variable should be different, based on the column where the variable is being used (so, in column C_KF1 ,variable should "pick up" id of KF1, etc.).
    I hope it makes it more clear. For now, I do not have the code for variable yet, I am just interested in concept whether it is possible to pass the ID of keyfigure dynamically so I can make decision how to model this request.
    Thanks

  • Fox formula - Copy variable value to a characteristic in IP

    Hi All,
    I have to copy the value of a variable to a characteristic in Fox formula in IP. In this scenario I am forecasting data using copy function. Whenever new data is copied I need to save it as a new version. So in the fox formula I have mentioned only 'version' as the field to be changed. I get the value of version automatically from a function module. In BPS I think it is possible but I am using IP.
    Example.
    Copied data
    Customer Material Version Year Qty
    c1            m1          0           2012  10
    c2            m2          0           2012  20
    c3            m3          0           2012   15
    This is the reference data got as a result of copy function. In the code I get the version computed from a function module in variable fm_version.
    I wrote the logic like this.
    data lv_version type version.
    foreach lv_version.
    {0quant_b, lv_version} = {0quant_b, fm_version}
    endfor.
    When it is execute it is showing error as records changed and deleted.
    Is it the correct method or is there any other workaround.
    I would realyt appreciate your time and effort.
    Thanking you,
    Jerry Jerome

    Hello,
    You can use either standard copy function or fox formula.
    So here I need to make the version as 1 since it is forecasted for the first time. I am trying to do it with a fox formula. In the fox formula I am trying to change the characteristic value of version from 0 to 1.
    You can not change the characteristic value of version from 0 to 1. The copy function or fox formula will copy the key figures from version 0 to 1.
    For example:
    The transaction data contains data like -
    customer     material            year     version    qty
    c1                 m1            2012     0           10
    c2                 m2            2012     0            5
    After copy you will get both version like this
    customer     material            year     version    qty
    c1                 m1            2012        0        10
    c2                 m2            2012        0         5
    c1                 m1            2012        1        10
    c2                 m2            2012        1         5
    Thanks.
    With regards,
    Anand Kumar

  • XSl formula for pulling values based on parameters or query strings

    Hello,
    I have a custom list in SharePoint
    List Column/Fields (any time a new item is created these are the fields that need values)
    Machine = ID2
    SpecLabel = text string value
    SpecValue = text string value
    Using DataFormWebPart
    I Filter values by Machine by creating a parameter with a query string as its source.
    And pull the values
    <xsl:value-of select="@SpecLabel" />
    <xsl:value-of select="@SpecValue" />
    On the browser I add the parameter to the URL sting to filter each machine ID.
    ?=Machine=1
    Back in the XSL i use the same parameter to pull the value of the string as my header title.
    <xsl:value-of select="$paramMachine"/>
    Problem
    I need a formula that will pull just the the SpecValue data for a specific item.
    Example: I have thee items below and I need to just pull the “SpecValue” for the Built Year which is 2014.
    Machine = 1
    SpecLabel = Speed
    SpecValue = 10
    Machine = 1
    SpecLabel = Color
    SpecValue = Red
    Machine = 1
    SpecLabel = Built YearSpecValue = 2014
    Any Suggestion? 

    Hi,
    According to your post, my understanding is that you wanted to the formula to filter a list item.
    You can create the formula similar like below.
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row[@City = 'Abington']"/>
    More reference:
    http://sympmarc.com/2011/08/15/compound-filtering-in-data-view-web-parts-dvwps-with-sharepoint-designer/
    http://blog.jussipalo.com/2012/01/sharepoint-filter-data-form-web-part.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Numbers 2.3 file opens in Numbers 3.0 with some formulas replaced by values

    Have others seen this effect? If so please post the expression that wouldn't import.
    The formula that imported as a value here is:
    =IF(ROW()-1<=MAX(TimeLog::D), INDEX(TimeLog, MATCH(ROW()-1, TimeLog::D), 2), "")
    Maybe we can find a common element.
    Thanks,
    Jerry

    I haven't noticed that values substitution case, but I have noticed that you can no longer reference an entire table in INDEX by just using the table name. Formerly you could write =INDEX(Data, 2,2) to reference Data :: B2.
    Now you would write =INDEX(Data::A:B,2,2), or =INDEX(Data::B, 1,2)
    Jerry

  • Conditional formula using NULL values

    Hi Experts,
    Here's the background using Query Designer.
    V1 = Formula Variable - Rep Path - converting master data attribute value into "number" (eg, attribute "status" = 02 becomes the number 2)
    RKF1 = Sales for Day 1
    RKF2 = Sales for Day 2
    CKF1 = (V1 = 2) * RKF1
    CKF2 = (V1 = 2) * RKF2
    CKF3 = (CKF1 <> NULL) * (CKF2 <> NULL) * (CKF1 % CKF2)
    My issue is with CKF3 where I need to void the entire formula for that row if EITHER CKF1 or CKF2 values are NULL.  I know in other reporting tools they have a "IS NULL" or "IS NOT NULL" operator but I know Query Designer does not.  Are there any ways around this?  This is something that needs to be dynamic which is why we can't calculate this during load time.  The values will differ depending on the variables assigned so the NULL solution seems to be the only way around this.

    RKF1 = Sales for Day 1
    RKF2 = Sales for Day 2
    CKF1 = (V1 = 2) * RKF1
    CKF2 = (V1 = 2) * RKF2
    CKF3 = (CKF1 NULL) * (CKF2 NULL) * (CKF1 % CKF2)
    In CKF3, you mean (RKF1 % RKF2) right? Other wise it doesnt make sense.
    Could you please state what is required?
    So - the formula is correct CKF3 = (CKF1 != NULL) * (CKF2 != NULL) * (CKF1 % (percentage share) CKF2)
    So if CKF1 is null, then it makes the formula equal 0.  Same thing with CKF2 - if CKF2 is NULL, then it makes the formula equal 0.  Which makes 0 % 0 equal 0% which is what I want (if either CKF1 or CKF2 are null).
    Edited by: Adam Rench on May 27, 2011 6:28 PM

  • Need help with formula that puts values in Field1 based on value of field2

    I have two custom fields in the Contact record - Date met and Time Known. Date met is a standard date field that is entered by the user. I then wanted Time Known to automatically populate with specific values based on a formula I wrote. However, the formula/function is not working properly.
    I'm also not sure if this should be a pre or post field formula, field validation, or workflow. Please help! Here's the formula I have so far. It worked for a new record created, but now doesn't work at all for some reason (probably from my testing).
    IIf(Today()-[<dResearch_Date_ITAG>]<365,"Less than One Year",IIf(Today()-[<dResearch_Date_ITAG>]<1095,"One to Three Years", IIf(Today()-[<dResearch_Date_ITAG>]<1825,"Three to Five Years",IIf(Today()-[<dResearch_Date_ITAG>]<3650,"Five to Ten Years","Ten Plus Years"))))
    This says the following:
    If Date Met is less than 365 from today, then enter "Less than One Year" into the Time Known field;
    if date met is less than 1095 (but greater than 365) days from today, then enter "One to Three Years"
    if date met is less than 1825 (but greater than 1095) days from today, then enter "Three to Five Years"
    if date met is less than 3650 (but greater than 1825) days from today, then enter "Five to Ten Years"
    otherwise, enter "Ten Plus Years" for all values greater than 3650.
    What am I doing wrong? I'm new to expressions and formulas in Oracle.

    Hi, You have to do @ 2 places. For setting the field value @ the time of creating a new record using the field default feature. Check post default as the calculated value is dependent on some other field that you are going to set @ the time of creation. For updating the field whenever the record is modified, use workflows
    -- Venky CRMIT

  • Chart formula with time values

    I am trying to create a chart with time values and have a formula where the time in cell A1 (6:15) is subtracted from time in cell A2 (17:23). When I enter the formula (=a2-a1) I am told the operator expects a number and that the cells contain strings. Any hints on how to do this formula?
    Thanks
    Pete

    Hello ComPete,
    welcome to the Pages Discussions. There is no easy way in Pages to calculate time like you want to have. In Pages you have to use values with the normal floating point separator (In Germany we have the comma. I think in Canada you have the dot, right?). But you type a colon into the field. Pages knows no time stamp as a calculating value.
    To get this to work, you have to place the hour value, the colon sign and the minute value into their own table cell. Than you have to calculate the hour and the minute of one time stamp into minutes. Do this for the second time stamp, too. Store the minute values into a their own cells and hide the values (make them transparent). Now calculate the two minutes values so you have one value and recalculate the result to hours and minutes. now write that to the result cells with a colon between them.
    You see, this is a huge expense to get what you want and it is not very practical.

  • Error in Formula - DB Null Value

    Hi,
    I am using the following forumula to print a tax column.  I want to print 0.00 if there is no value in database.  I am using Oracle 9i.
    Blinking where the things went wrong. Please find below the formula.
    NumberVar RequiredLength:= 9;
    NumberVar CurrentLength:= Length (TOTEXT({@FICATax}));
    (IF RequiredLength < CurrentLength
    THEN TOTEXT ({@FICATax}) [1 TO RequiredLength]
    else If IsNull ({@FICATax}) Or
       InStr(TOTEXT ({@FICATax}), " ") = 0 Then
    TOTEXT ({@FICATax})
    ELSE ReplicateString (" ",RequiredLength - CurrentLength) + TOTEXT ({@FICATax}))
    FICATax
    IF 'Federal' in ({TAX_INFORMATION.TAX_DESCRIPTION_2}) then ({@TAXAMOUNT3})
    else ({@TAXAMOUNT2})
    I have also tried the below forumula,
    NumberVar RequiredLength:= 9;
    NumberVar CurrentLength:= Length (TOTEXT({@FICATax}));
    (IF RequiredLength < CurrentLength
    THEN TOTEXT ({@FICATax}) [1 TO RequiredLength]
    else If IsNull ({@FICATax}) Or
       InStr(TOTEXT ({@FICATax}), " ") = 0 Then
    '     0.00'
    ELSE ReplicateString (" ",RequiredLength - CurrentLength) + TOTEXT ({@FICATax}))
    Can any one help me out?

    Dear Salahudheen,
    Thanks for your reply.  I have tried in my report but this too not working.  Something is sitting there in the DB field, but I am not able to figure it out. 
    PFB the formula I have used in Display string part
    if ToText ({@FIRTax}) = " " or isnull({@FIRTax}) or InStr(TOTEXT ({@FIRTax}), " ") = 0  then
    "0.00"
    else totext({@FIRTax})
    I am getting values like this
        0.00
    405.00
    705.00
                     //no clue on what is here !!!!!!
    405.00
    505.00
    Edited by: KARTHI..... on Nov 3, 2009 9:24 AM
    Edited by: KARTHI..... on Nov 3, 2009 9:24 AM

Maybe you are looking for

  • HSDIO - Deterministic memory writing while generating

    Hello, I am using an HSDIO card (PXI 6542) to drive a device (DUT) with a predefined fixed length continuously running waveform. That DUT might actually benefit from some dynamic changes in the digital signals depending measurements made on the DUT i

  • Songs not showing up in the Music folder but in a playlist

    Hi, Something weird is happening with iTunes. Just before upgrading to 10.5, I had a problem where after opening a M3U playlist from the finder, the playlist was added as a regular playlist. I can play the songs, when I go in the Get Info of the file

  • Using VIEW inside a stored procedure

    Hi, So I have a View designed in one file that validates someone who is authorized. Then I have a stored procedure to display authorized stationeries created before a given date. Its takes a parameter @CreatedOn. How can I use VIEW in my stored proce

  • New Business Area Configuration

    Hi, I have an issue,Please support me! So far we have not configured Business Area and using company code only. However owing to business requirements we are planning to configure 4 (four) business areas. This project we are rolling out from 01-Apr-2

  • Update of Distribution Status

    Dear Experts, I’m working on SRM 5.0 Server 5.5. The problem I’m facing is that when I try to re-process the Idoc from SRM to the Back-end that failed before, on the back-end the contract is correctly updated but on SRM the status of the distribution