Post Calculation Item Formatting

I have a form item that is not a database column. The data is a number and I would like to format it as currency. I have entered the following in the Post Calculation Computation area but am getting an error message:
TO_CHAR(TO_NUMBER(:P25_RO_BASE_RENT), 'FML99.99')
I have also tried without the TO_NUMBER.
Any suggestions? Thanks.

This is what I have under Source:
Source Used: Always, replacing any existing value in session state
Source Type SQL Query
Maintain session state: Per Session
Source Value:
SELECT new_base_rent
from v_las_last_change_values
where lease_id = :P25_ID
--Charlotte                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Data format in pivot table calculated item

    Hi All,
    I've got a pivot table with a dimension on rows and a dimension on columns and a measure. I have a "new calculated item" based on the dimension on the columns which does the following: ( ($2-$1) / ($1) ) *100
    I want this calculated item shown as a percentage like 1,2% but the measure must stay a whole number like 1234 (no decimal places or percentage symbols) any suggestions on how to achieve this?
    Thanks in advance!
    Gilles

    Hi Kishore,
    It is not helpful, I mean, it doesn't solve my problem. But nice post!
    What I have is the following:
    --------C1------C2-----C3
    R1|--123--|--345--|--678--|
    R2|--124--|--346--|--679--|
    R3|--125--|--347--|--670--|
    What I want is the following:
    --------C1------C2-----C3---------calculated item
    R1|--123--|--345--|--678--|--(($2-$1) / ($1) ) *100)
    R2|--124--|--346--|--679--|
    R3|--125--|--347--|--670--|
    the column results must remain in the same format, but the calculated item must be in the format %9.99 (to see the percentage change)
    any other suggestions?

  • Conditional Formating in New Calculated Item??

    Hi there,
    In pivot table I've created a new calculated item in column that is % calculation of measure value A and B.
    I need to apply conditional formatting on new calculated value only. I also want to add % sign on the calculated value.
    Previously I modified the data format of measure values to percentage and manage to bring % sign in calculated item. Now I need to show both measure and calculated item in report with measure without % sign and calculated item with % sign
    Thanks

    No, I don’t think you can do that in New Calculated Item in Pivot Table.
    What you can try is pulling another column in your report and try using this formula (case when stmt) in column fx and insert it in pivot table.

  • Post calculation on database column in form

    I have a form created. for post calculation I convert text to upper case.
    upper(NAME);
    When I edit existing data in the form, and save the record. The data is converted to upper case. However when I create a new record and save it, everything is in lower case? What am I missing?
    Thanks,
    Bob

    By saying "Post calculation", do you mean a Calculation with Computation Point "After Submit"? At the Edit Page, your calculation should be in the second column - Page Processing.
    Did you go to:
    1)Edit Page
    2)"Create" icon in Page processing/Computations region
    (There is also a "Post calculation computation" property at the item level (item properties - region Source. But this function is executed at page rendering - after the data is read from the source. It is not executed when the page is submitted. This will not work the way you require.).
    If you are using Computation with processing point After Submit, go to the properties of this computation and look for Conditional Computations - there shouldn't be any condition, or you should have there something like :REQUEST = 'SAVE' or :REQUEST='CREATE'
    Also in the Computation, you should have a colon in front of the item name. So if Px_ITEM is the name of your item, than the computation should look like:
    upper(:Px_ITEM)
    Check also, if you are using the same page for insert as for update. Some application wizards create a separate page for insert and separate page for updates and deletes.

  • Post Calculation Computation - Trim

    I have an item with the source type of Database column that's coming in with a single space.
    when display on the page the user has to delete the space to clear out the space.
    I've tried the "Post Calculation Computation" which is pretty straight forward with the Trim and the space still appears.
    What I've tried.
    Trim(:P8_FUND)
    Ltrim(:P8_FUND,' ')
    nullif(:P8_FUND,' ')
    Non of the above are working.
    When I tried the next statement just for a test, the space was removed and the xx appeared, so I can't figure way the above examples won't work????
    TRIM(:P8_FUND) || 'xx'

    I'm using Apex 3.2.
    I created a Trim function and added it to my Load_Start function and the item still has the leading space.
    Do you see anything in my code that's not right?
    HTML Body
    onLoad="Load_Start()";
    HTML Header
    function Load_Start()
    hide_item('P8_FRS_ACCT','P8_HIDE_COL1');
    hide_item('P8_FRS_SUBCODE','P8_HIDE_COL1');
    hide_popuplov('P8_FUND_CODE','P8_HIDE_COL1');
    hide_popuplov('P8_ORGN_CODE','P8_HIDE_COL1');
    hide_popuplov('P8_ACCT_CODE','P8_HIDE_COL1');
    hide_popuplov('P8_PROG_CODE','P8_HIDE_COL1');
    hide_popuplov('P8_ACTV_CODE','P8_HIDE_COL1');
    hide_popuplov('P8_ACCI_CODE','P8_HIDE_COL1');
    hide_popuplov('P8_LOC_CODE','P8_HIDE_COL1');
    hide_item('P8_FRS_OFFSET_ACCT','P8_HIDE_COL2');
    hide_item('P8_FRS_OFFSET_SUBCODE','P8_HIDE_COL2');
    hide_popuplov('P8_OFFSET_FUND_CODE','P8_HIDE_COL2');
    hide_popuplov('P8_OFFSET_ORGN_CODE','P8_HIDE_COL2');
    hide_popuplov('P8_OFFSET_ACCT_CODE','P8_HIDE_COL2');
    hide_popuplov('P8_OFFSET_PROG_CODE','P8_HIDE_COL2');
    hide_popuplov('P8_OFFSET_ACTV_CODE','P8_HIDE_COL2');
    hide_popuplov('P8_OFFSET_ACCI_CODE','P8_HIDE_COL2');
    hide_popuplov('P8_OFFSET_LOC_CODE','P8_HIDE_COL2');
    setFocus('P8_PAGE_FOCUS');
    trim('P8_FUND_CODE',' ');
    if ($x('P8_FI_ACCOUNT_TYPE').value != "F")
    {$x_HideItemRow('P8_FRS_ACCT');
    $x_HideItemRow('P8_FRS_SUBCODE');
    function trim(str, chars) {
         return ltrim(rtrim(str, chars), chars);
    }

  • Filter Pivot table data based on custom calculated item in obiee 11g

    Hi,
    I have requirement as below. Please provide your valuable suggestions
    Please note that "Diff" is the calculated item using the formula "$2-$1"
    Pivot table View:
    Sales ID 20120207 20120220 Diff
    1 0 0 0
    2 100 0 -100
    3 100 200 100
    4 100 100 0
    5 200 300 100
    6 0 0 0
    Requirement:
    1) Filter rows where measure for both Effective dates(20120207 & 20120220) is equal to 0
    2) filter rows where measure for effective date 20120220 is equal to 0 & measure for effective date 20120207 is not equal to 0
    3) filter rows where diff is equal to 0
    expected Output:
    Sales ID 20120207 20120220 Diff
    3 100 200 100
    5 200 300 100
    Please provide an workaround to implement in OBIEE 11.1.1.6.0
    Thanks
    Edited by: Nagendran Rajendran on Jul 19, 2012 11:42 AM
    Edited by: Nagendran Rajendran on Jul 19, 2012 11:54 AM

    Hi,
    Many thanks for your Response.
    Actually, I have only three columns in the *"Selected Columns"* Section of Answers and they are
    Opportunity Id Effective Date Current
    Effective Date is based on Dashboard Prompts with 2 Presentation Variables say Effective Start & End Date and that has been used in answers to have a Revenue Variation report for these 2 dates ONLY.
    So, As per my Requirement,
    1) I have created a Pivot table by having Opportunity ID in Rows Section, Effective Date in Columns Section and Current in Measures Section
    2) Created a Calculated Item for Revenue Difference using the formula $2-$1
    So, Everything worked fine so far.
    and Next Requirement is to filter the rows from the Pivot results which i have mentioned in the post and they are
    Pivot table View:_
    Sales ID 20120207 20120220 Diff
    1 0 0 0
    2 100 0 -100
    3 100 200 100
    4 100 100 0
    5 200 300 100
    6 0 0 0
    Requirement:_
    1) Filter rows where measure for both Effective dates(20120207 & 20120220) is equal to 0
    2) filter rows where measure for effective date 20120220 is equal to 0 & measure for effective date 20120207 is not equal to 0
    3) filter rows where diff is equal to 0
    expected Output:*
    Sales ID 20120207 20120220 Diff
    3 100 200 100
    5 200 300 100
    Please provide an workaround to implement in OBIEE 11.1.1.6.0
    Edited by: Nagendran Rajendran on Aug 8, 2012 4:53 PM

  • Calculated item doesn't show values

    Hi!
    I have created a report in which I'm showing number of vacancies for two different months (depending uopn the values of months selected in the parameter). I have created a calculated item in Desktop that is supposed to give me difference between the values for both months. In other words, this calculated column is supposed to show me if there is any increase or decrease in the number of vacancies.
    The datatype for values for both months is 'number'in the database and I've set it as 'default' in my report...and my report displays them correctly. However, when it comes to the calculated column, no values get displayed. I tried to experiment with the datatype for this column...like set it to 'none', 'default', number etc. But, no success! I tried to experiment with the datatype of the other two columns (values for months) as well...like setting them as 'number', however, this too brings no success!
    I don't think that this has anything to do with the joins as the other sheets in the same workbook display correct data with totals too.
    Can someone help me on this?
    Thanks and regards,
    Aparna
    Message was edited by:
    Aparna

    Hi !
    Let me post my calculations here: I'm giving them here in logical order.
    1) Total = No Female Required SUM+No Male Required SUM+No Mixed Required SUM
    Here 'No Female Required SUM' and the other two are from a table in the database. Puppethead, answer to your question: these three columns are from the same table and thus, form part of the same folder and BA. Their datatype in the db table is specified as 'Number'.
    And this calculation is supposed to give me total of vacancies whether for female candidates or male or for those where no sex is specified.
    Please note that problem persists even if I select 'details' instead of 'sum' as aggregation for all the three columns.
    Please note that I do not directly display this calculation in my report.
    2) Month 1 Vacancies = CASE WHEN ( "Month" = :From month ) THEN Total END
    This is where I reference the Total that I create before. Here I'm also using 'Month' which is created based on a date using Hierarchy functionality in Administrator. From month is a parameter. Thus, the Total that I display should be for the month that the user selects as a parameter value.
    This column 'Month 1 Vacancies' displays correct values.
    3) Month 2 Vacancies = CASE WHEN ( "Month" = :To month ) THEN Total END
    Same logic as calculation no. 2. Please note that this column too displays values correctly. To month is a parameter.
    4) Change = "Month 2 Vacancies"-"Month 1 Vacancies"
    What I would like to see here is the difference (whether positive or negative) between the vacancies for two months. This column is displaying nothing. And that's where the problem lies.
    Please note that all the four calculations are being created in the Desktop while creating the report.
    Could you please advise me?
    Thanks and regards,
    Aparna

  • Discoverer Migration issue - Calculation item changes

    Hi All,
    In the development environment, I made some changes to the Calculation item in the existing Discoverer Workbook. It works in fine in DEV. But when I try to migrate (overwriting the existing workbook) it to ST environment (by opening it in Discoverer Desktop, and saving it to the Database) , it throws the below error
    'Inconsistent or invalid data types used in arithmetic operation.'
    Attempt to open workbook failed'
    I have also tried by exporting/importing thru Admin, but while opening in the Desktop it again throws the same error.
    When I am undo the changes(one by one) what I did to the calculation item, it is still throwing the same error, even when I come to a point that the formula for the calculation item is same as before.
    But when I am trying to save back the last working copy of the workbook into ST environment, it works fine.
    It looks like the environment issue/tool issue(Discoverer Desktop).
    We are in Discoverer 10g. Please let me know if any of you faced this problem and any suggestions to overcome this issue.
    Thanks,
    Gowri.

    Hi Gowri,
    Have you compared the item format between DEV & ST? Are they the same?
    Without seeing your actual calculation, I can only guess that you may try adding "TO_NUMBER" in front of the field that is causing issues.
    That has helped me in the past.
    Thanks,
    Janet

  • Some basic post-calculation computation

    maybe I just have the syntax wrong....
    I'd like to default a field to the value of another field entered earlier in the same page.
    Say a customer has a short name and a long name.
    I don't want the long name to be blank, so it should contain the short name unless something better is entered.
    My ideal scenario is that if no long name is entered (ie the user leaves the field empty and moves onto the next field), the short name should be defaulted into the long name (and redisplayed, ideally). If this is not achievable, I would settle for pushing the short name into the long name field (and displaying it) to serve as a default before the user even has a chance to enter or skip the long name.
    I tried the following post-calculation computation
    IF P12_LNAME IS NULL THEN
    P12_LNAME := P12_SNAME;
    END IF;
    This gives a runtime error, complaining about the unexpected IF. (As an aside, can't the sysntax be checked at definition time instead of waiting until run time?)
    I'm not quite clear on whether these page items need a preceding colon or not, but the "IF" problem prevents me from experimenting with both naming conventions.
    I'm sure I could write a function to achieve the defaulting, and maybe I could also do something in the validations, but I suspect a more straightforward solution exists and I hope a more knowledgeable practioner can show me how silly I am.

    Sure. Now that I know how to validate with ease, I will be tightly checking all the user entered fields. I will default as we discussed earlier when fields are null, and other fields will be converted to upper case. all these fields will be entered into a series of fields in a single page region.
    what I'd like to do, before saving to the database, is to redisplay the same group of fields the user has entered, showing the modifed entries after my validations and post-calc computations, so that the user can see exactly what is about to be saved. I'd rather not have to create a whole new page just to do this if possible.
    I guess I just want to re-render the same page with the current page field values.
    CS

  • Post Calculation Computation for Date/Timestamps

    Hello,
    I would like to know how to apply Post Calculation Computation for Dates/Timestamps?
    I had trouble trying to add this to the Post Calculation Computation area:
    TO_CHAR(:P1_TARGETDATE, :DEFAULT_DATE_TIME_MASK);
    or should it be something more like:
    SELECT
    TO_CHAR(:P1_TARGETDATE, :DEFAULT_DATE_TIME_MASK) FROM DUAL;
    What would be the correct code to allow me to format a date/Timestamp where a Application Variable of DEFAULT_DATE_TIME_MASK could be used as well. (I dont want to use the existing Format Mask.)

    Just a hunch, but you might be having a problem because of the double quotes. Oracle likes single quotes. You also might want to forgo the quotes entirely.
    As for an invalid number, is it possible that one of the values that you are adding might be NULL. You can't add NULL to a number or you get an error. There are two solutions to that. One would be to do an NVL around each number you are adding (changing it to zero if the value is NULL). The second option (and easier option) is to use the SUM function. Mathematical functions like SUM and AVG ignore those values that are NULL.

  • Calculated Items and Action Links (OBIEE 11g)

    Hi,
    On OBIEE 11g here...
    I have an anaylsis which shows a pivot table with only 6 columns of calculated items, with all of the standard columns hidden. The split of the pivot has been achieved using a variable created using the bin function.
    I have set an action link on the measure shown in the pivot table to navigate to another analysis and, while clicking on one of the measures in a pivot column runs the specified report, it is not run using the the necessary parameters required to match the dataset shown in that particular column.
    Is it possible to drill to a separate report and pass through the required filters from a measure showing in a calculated item, as it would be on a measure showing in a standard pivot table column?
    Thanks,
    Ang

    You need to have 'Is Prompted' for that specific measure. I would suggest to use action links on other columns instead of metrics.
    Pls mark as correct/helpful if helps

  • Error in net price calculation, item 000010 (Please correct)

    Hi
    Can you tell me error and correction for the same ? It occurs during creation of Std.PO. whom RM1000 prcing procedure is assigned.
    Error in net price calculation, item 000010 (Please correct)
         Message no. 06213
    Diagnosis
         Possible causes:
         o   The net price is negative.
             Check the prices and conditions entered.
         o   An error has occurred during currency translation.
             Check whether the foreign currency is defined in the system.
         o   The unit of measure of an item is not allowed.
             Check the units of measure entered.
         o   An internal error has occurred during the price determination
             process.
             A mandatory condition type is not defined in the system. Please
    In the analysis under item details condition tab I got message 301 as Acess 0002 12 is missing.
    Acess seq. 0002 is assigned to condition type PB00.

    I know this thread is very old but I had the same issue and found the solution.
    Enter the SubTotal in the pricing scheme for condition P101 (in my Case 9 - Copy values to KOMP-BRTWR (gross value)).
    Than it works for my case.
    Hope this helps.

  • Post open items with clearing for a account nt previously open item managed

    Hi,
    We have a current VAT account which was not open item managed till April 2008. Since the account has a zero balance we were able to make it open item managed from May onwards.
    Using transaction code FS10N we see that there are some items which are open  (type SB and SA). We want to post these items with clearing.
    Moreover the postings made in the vat account are done every month but they are manual postings only using T.Code FB50 and as checked using the transaction code OB40.
    We are not also allowed to run program RSEPA02. as this is not a standard program and not recommended to be run by SAP.
    Could anyone please sujjest how can we post the previous items with clearing.
    Thanks and regards,
    Priyajit.

    Hi,
    In this case when you are shifting account from open item to non open item all the open item debit and credit side to a dummy account and when account is converted into open item you have to reverse the earlier entries.
    Check this with what exactly you have done.
    Assign points if solved the problem.
    Warm Regards
    Edited by: MILIND on May 20, 2008 10:29 AM

  • GL posting clearing item amount and do not show doc status on the header

    Hello,
    GL post clearing amount both side and increase the no of items in the GL balance display. Inaddition, these clearing line item document header does not show document status field.  I have another GL which does not post extra two lines and clearing item document is empty and header shows document status as A (cleared item).
    Could you let me know what the difference and what need to be changed to make it not to post clearing items + and - and show doc status.
    Both are same FSG and only difference tick mark not done for balance in local currency.

    Thanks for your reply...but thats did not work. As I said earlier, I have a Structure in my rows and 2 characteristics in my free chracteristics and in my columns I have a selection of key figures...
    What I want is when I drill down on one of my 2 free characteristics, I do not want to see rows with amounts (KFs) zero or space.
    RR

  • How to post open item balance in mass ( ECC6.0)?

    Hi experts,
    In order to change alternative account in a principal account, I have to post a lot of open item to zero. After changing the alternative account, I have to reverse this open item and display the original open item.
    How to post open item balance in mass?
    For your information, my SAP system=ECC6.0
    Thanks for your feed back
    Rgds

    Hi,
    thanks for you information. I check also with Ecatt.

Maybe you are looking for

  • IMac 24" mid 2007 video card

    If my video card is bad will the mini dvi port work for an external monitor. My screens glows around the edges and flickers colors along edges also, no video at all. Thank you in advance.

  • Access swf metadata

    Compilation flags allow the embedding of metadata into the swf file. metadata.descritpion and metadata.date are examples. How can the swf programatically extract and examine this data?

  • Row template showing always additional empty row

    Hi everybody, When I used row templates with apex 3 it worked fine. With apex 4, I always get an empty row in addition to the ones I query. This behavior appears with firefox 3.6.7 as well as with ie 8. The standard report template "value attribute p

  • Change what data type data socket requests from OPC server

    I suspect this is a foregone conclusion, however just in case; is there a way to make Datasocket request items from an OPC server in a different data type than variant? I have a server that scales integers (native data type) and offers tham as floati

  • How do I see the apps I have purchased

    How do I see the apps I have purchased on my iPad please.