Display decimals in Formula variable

Hello Experts,
I have a CHAR field(Say A) which has only numbers coming in such as 10.85 , 12.78  etc . Now I have created a Formula variable (Say B) in Bex so that I could use this in some calculations . The formula variable is defined on this CHAR field with following properties : Replacement on A , Dimensions to Number.
When I run the report , I get values rounded in B as 11 , 13 instead of 10.85 and 12.78 . I checked the display properties of formula variable ,made it to 3 decimals...but still the out put remains rounded values.
Appreciate for any help,
Jb

Hi JB:
   I think you need to change the definition of InfoObject "A" to use "Key Figure" Type instead of "CHAR".
Take a look at the document below, it might help.
>"How to... Calculate with Attributes"
>http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc?quicklink=index&overridelayout=true
>Page 2.
"...KHMAT2 has defined an attribute KHPRICE (u201CPriceu201D), of type Key Figure..."
Regards,
Francisco Milán.

Similar Messages

  • How can I display a formula variable in the report?

    Hi,
    I have a requirement to display a formula variable value in the report. When the user runs a report this variable value should be called once and displayed below the report title or in a specified cell. Is it possible something like this could be done? if yes, can someone tell me how can I achieve this functionality. I appreciate your time and effort with points.
    Thanks,
    Rao.

    Hi Bhanu,
    In the query properties you can only see text variables and not the formula variables. If I define my number of working days as text variable and I can display in the report. However, I need to use this variable in some calculation in the report, so it has to be formula variable in order to use in calculations. I appreciate your input with points.
    Thanks,
    Rao.

  • Issue in displaying Overall Result of a formula variable

    Hi All,
    I have a fields as Years of Sevice in my report. This is defined as char. I am bringing this in the report by creating a calculated key figure and then using a formula variable that is defined as the replacement path of the Years of SErvice.
    Now when i execute the report , I dont see the Overall Result. I checked the porperties as Summation.
    The overall result is displayed as X for all the columna
    Report has
    Rows - Leaving Reason - defined as Char
    Columns - Years of Service  >3
                    Years of Service 3-6
                    Years of Service 6-10
    Can someone shed some light where i am going wrong?
    Regards,
    Harika.

    You have said years of service is declared as a characteristic. Is it brought into the report as an formula variable through Calculated key figure ???

  • Formula variable in 2004s displays '?No/Value'

    Hi,
    I have created a formula variable to display characteristic value in a query. it works fine in 3.5 version but when i migrated this query in 2004s. It displays "?No/Value" in report. I tried to look at couple of settings but i didnt find anything. Is there any setting i missed out in 2004s?
    Thanks
    Abhijit

    <FONT FACE = "Tahoma", Font Color = "Blue">
    My Dear Friend<br>
    <u>Please try the below code:</u><br><br>
    Case vnam.<br>
    When 'Z_OPT1'.<br>
    check i_step = 2.<br>
    <br>
    read table I_T_VAR_RANGE INTO loc_var_range with key vnam = 'Z_OPTSEL'.<br>
    <br>
    if sy-subrc = 0.<br>
    Clear l_s_range.<br>
    if loc_var_range-low = '1'. <br>
    l_s_range-low = '2'.<br>
    endif.<br>
    if loc_var_range-low = '2'.<br>
    l_s_range-low = '0'.<br>
    endif.<br>
    endif.<br>
    l_s_range--sign = 'I'.<br>
    l_s_range-opt = 'EQ'.<br>
    APPEND l_s_range TO e_t_range.<br>
    endcase.<br>
    <br><br>
    Hope it helps.<br><br>
    Cheers Abhijit<br>
    </FONT><FONT FACE = "Verdana", Font Color = "Red">
    Removed
    </FONT>

  • Formula variable not displayed in proper format

    Hai,
         I used a keyfigure formula variable, that gets current date, in a query (In columns, key figure structure to calculate no. of days). The no. of days are calculated peoperly and everything is just perfect.
    But after executing the query, when I display text element=> variables, the system is displaying the variable as 20,060,803 as opposed to date format like 8/3/2006.
    Question: Is it how the date formula variable is displayed or there is a system error?
    I remember seeing it in date format.
    Can somebody comment on this or suggest a solution.
    I couldn't find notes on this too!

    In the restricted key figure formula definition, use the Data function "Process Value as Date DATE" and enclose your restricted key figure calculation inside the date parenthesis.
    I have another related problem.  I am trying to use dates to calculate 30 days before a (date formula variable), 60 days after, etc.  Some of the dates are calculating correctly, but some are just returning an X.  All appear to be extracting with the same format.
    Anyone have a similar problem?

  • Display Formula Variable in Web Query or RRMX

    Hi, 
         I'm calculating a Formula Variable for Shipping Days in my query.  I would like this to display in my web page in the upper right of my screen.   I'm mostly interested in doing this for the web.  How would I access the value of this variable and display it on the web page outside of the table web item?
    Any ideas are greatly appreciated!...
    Thanks,

    Hi,
    use the web item Text elements
    and specify your variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/4e9d39d44cd45ee10000000a11402f/frameset.htm
    Heike

  • Formula variable display format

    Hi,
       I have created a formula variable to display date in the columns section. The problem is that this value is being displayed as amount. ( eg: '20.100.304,0000000'. required output - '2010.03.04' ).
      I have tried different display settings but still not able to get it right.
    Regards,
    P.D.

    Hi,
    You need to maintain the settings in Formula variables,
    See how we need to maintain for Data
    Calculating the Ageing of the Materials
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/calculating%20the%20ageing%20of%20the%20materials.pdf
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Thanks
    Reddy

  • Formula Variable in WAD (Counts) Not Displaying

    Hi Gurus,
    I am using BI7.0.  I have a query that analyzes a charactersitic, such as Priority, uses 2 date (charactersitic[Create Date and Close Date) fields.  I created a new forumla variable, using a Replacement path, to calculate the difference between the dates to derive the difference between the dates and a formula variable to derive the average number of days between the dates.  That is working well.
    However, when using the Bar Graph or the Pie graph I can not see the value of the formula variable that contains the average number of days. 
    I am assuming that because the key figure is a formula variable and not a 'key figure' then I would need to remodel my date fields as Key Figures in order for the Web Items, such as Pie/Bar Charts to view them.
    Has anyone seen this before.....is there anything I can do at the query level in order for my formula variable to show up in the WAD?
    Thank you

    Pallavi
    You are correct.  I had to select the "show summary/total" on the Web Item properities and the results defaulted.
    Thank you

  • Formula variable in Report painter

    Hi
    Normally when ever you create a formula varibale for year or period system will
    check the period and year from current system year and period(S001 and S002)
    I am looking for a solution where i can create variable which is independent of
    current year and period.
    Lets Say if i give 2006 and period 7(of 2006)system has to give results
    in the predefined columns like 2006 of period 7 and 2005 of period 7 and 2004 of period 7 and 2003 of period 7(I have 4 columns)
    Can any one tell me how to create this using the formual variable,which will allow
    me to select in the input screen any period and year and display the results  as per my own requirement.
    Thanks
    Lily

    Hi Ramachandra
    Sorry for late reply
    As per your reply,i am not still clear,can i put in more clear my question again
    Selection screen 
    Year-2006
    Period-6
    I have 5 columns ,can you specify me the formula for 5 columns in your reply.
    Column1- (it has to display 2nd  quarter of 2006)
    Column2-(it has to display 1nd  quarter of 2006)
    Column3-(it has to display 4nd  quarter of 2005)
    Column4-(it has to display 3nd  quarter of 2005)
    Column5-(it has to display 2nd  quarter of 2005)
    Pls specify me FYEAR and Period from and period to which formula variable i need
    to use,how many variables i need to create for this purpose.
    Keep in view that selction screen i can give 2006,or 2005 or 2007,but system has to display 5 quarters back data in in 5 columns.
    This is urgent,can you pls help.
    Thanks
    Lily

  • Prompts issue and Formula variables.

    Hi,
    1. I have a variable in Bex report as Creation date, but when it comes to webi the default prompts comes as creation date(From) and Creation Date(To). Is there anyway to modify or delete these default prompts.
    2. In one Bex report , i have a formula variable purchase order, based on this only the report output(as a condition) is displayed.I think that the conditions are not transferred from bex to webi, because the webi output is standard for all values of the purchase order. Is there any way to delete the default purchase order prompt

    Hi
    Answer to Q1.
    There would be a Filters specified to prompts DATA as creation date(From) and Creation Date(To). You have to change the filter condition as REQIRED.
    Answer to Q2
    FORMULA variable is not transfer to WEBI. You have to define a NEW FORMULA in the WEBI Query Designer.
    Hope its a use ful info..
    Regards

  • Help with formula variable that will give me period #

    column A = $  for fiscal year period  variable  (using 0RMA_FIP,  SAP delivered variable for period)
    Column B = $ for fiscal year period  variable minus 1  (previous period)
    In Column C,  if fiscal year period entered in 0RMA_FIP was 001/YYYY  (january)  I want column C to be zero,  if not,  it will be a variance between column A & Column B.
    I think know how to do boolean logic:  (FV_Period == 1) *0 + (Column B % Column A)
    What i am having trouble with is creating FV_Period  as a replacement path formula varialbe so that it will contain the value of the period,   1 for January,  or 2 thru 12 for other months..

    While creating the Formula variable with replacement type, you need to mention the offset start and offset length.
    I believe if your Fiscal Period is displayed as 2010009 then
    offset start = 5 and offset length = 3 should give you the value 009 which is required.

  • Formula variable with replacement path to another input variable

    Hi @ all,
    i have a question regarding "Formula variable with replacement path to another input variable".
    My Problem is that in selection screen and for info-fields the input variable is shown with its key and not with its description.
    Scenario:
    A formula variable (X) is used to get an input value of a characteristic variable (Y) for 0Fiscper3 to realize a IF-Then scenario.
    The formula variable (X) uses replacement path by variable (Y) replace by "key".
    In selection screen of the query variable (Y) is named with its key "ZAB_BUPE01" and not with its description " fiscal period". Same as for info-fields where the description is "ZAB_BUPE01" and not " fiscal period".
    Does anybody have a solution to display the selection variable correctly?
    Regards
    Tobias

    Issue Solved!
    The input varaible (y) for 0Fiscper3 was saved globally on the InfoProvider. This results in that the formula variable with replacement path only shows its technical name. I put the input variable in the query itself and it soved the problem. The variable is displayed with its description in selection screen.
    Regards

  • Formula variable / Replacement path issue

    Hi Experts,
    I have a Field which has different status description.
    I want to bring the count of only one preferred description.
    Model Status
    A1     New
    A2     Open
    A3     New
    B1     Closed
    B2      Pending
    B3     New
    I want to view only the closed count of models
    Model Count of Closed
    A1     0
    A2     0
    A3     0
    B1     1
    B2      0
    B3     0
    I tried doing this using the formula variable and Replacement path with Status Field.
    But I'm unsuccessful in selection the desired status.
    Please help me to over come this.
    Thanks

    Hi Dear Prasad,
    I can't restrict the characterstic to Closed. If I do so the output will be only for Closed.
    But here I want to bring every model with value as 0 and 1 for model with closed status.
    Hi Dear Raju,
    The requirement what I have here is more complex. like, the result will be for 6 month displaying every single cal/day.
    and also I have to find out percentage of closed for every cal/day based on number of model we got.
    i have only asked a small portion of it, with this input i will manage to build the percentage etc....
    I  cannot bring counter inside. My report is already too wide to be displayed.
    I have tried similar kind of thing, using CKF, Formula Variable and Replacement path with the Char - InfoObj.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a&overridelayout=true
    But I'm not very sure how do I get only count of the my desired status.
    Please help.
    Thanks

  • How can I display char if a variable is null

    Hi All,
    How can I display char if a variable is null  in sap business object
    item name
    Office Visits
    Non-Emergency ED Utilization
    Non-Preferred Pharmacy
    above items are value and they are populating for this month but form next month "Inpatient Stays" a new item will add at database level
    i want to display this item with current month
    final result should be
    item name
    Office Visits
    Non-Emergency ED Utilization
    Non-Preferred Pharmacy
    Inpatient Stays
    i have tried with ISNULL function but it is not working
    please help i am using SAP BO 3.1
    Thanks in Advance
    Ranjeet

    You should be able to findout NULL using isnull([object]) function.. at report layer..
    Try with the below formula which should work for you
    =If Isnull(trim([object])) then "Inpatient Stays" else [Object]

  • BEX 7.0: Formula variable with replacement path not working after BW Upg

    Hi all,
    We have a formula variable using replacement path for 0MATERIAL characteristic that is used in a calculated key figure, in order to perform conversion factor to change measure units (0MATERIAL attribute).
    This was working pretty well until an upgrade from 3.5 to 7.0 EHP 1. The list that is displayed contains all key figures empty instead of the desired values.
    Can anyone suggest what could be the possible reason for this?
    Thanks in advance.
    CCS

    Hi all,
    Problem solved!
    The solution was based on the u201Chow to...Report Data in alternate units of measureu201D document (for 3x version) . http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b7b2aa90-0201-0010-a480-a755eeb82b6f?quicklink=index&overridelayout=true
    Basically, the upgrade has override the previous changes made in the program LRRSVF20, like the "How to" document refers. Namely, the reference to YBW_AUNIT_ENHANCEMENT program.
    We have carried out the changes and, apparently, the query is now working fine.
    Thanks.
    Best Regards,
    Cátia Coelho Silva

Maybe you are looking for

  • MP4 movies not playing on iPod with version 1.3

    I have iTunes version 7.6.1.9 and iPod firmware version 1.3. I have several movies converted to MP4 format via Nero which played on the iPod just fine up until about 10 days ago. Now the MP4 movies will no longer play on the iPod, i just get a blank

  • Data sources in deploying web app. to Oracle Application Server

    I am using simple web application - JSP with BC4J (JDeveloper 9.0.5.1). I want to configure my application to use Data Source instead of JDeveloper connection and deploy it to production database, so DB administrator will take care of username and pa

  • Work around for comatose Powerbooks?

    I know a lot of people have problems waking up their PBs. I have this problem as well and, though it's not a solution, this work around seems to do the trick about 98%. Close the lid, wait a few seconds, open the lid just 1" VERY, VERY slowly. When t

  • How to find the Minimum value of a Measure across a Custom Dimension

    I am having Trouble figuring the best approach for the given below scenario. I have a measure called Inventory which is basically by Product by Part by Geography across a Time period. Part dimension is 3 levels Deep. Part --Configuration_NAME - Part_

  • Guest Network

    I just purchased an Airport Express.  One of the reasons I bought it was the ability to set up a "guest" network in the house. I was able to successfully set up a secure network for my family, but can not figure out how to set up the "guest" network.