Taking display value for calculations using structures in Bex query

Hi
I am using Bex analyzer to do a simple report with two key figures ‘Sales’ and ‘Plans’ from cube and two more calculated key figures ‘Abs Deviation’ and ‘% error’. The report displays at category and product levels. Category is higher and one category contains multiple products.
The simple formulas for the two calculated KF are,
1. Abs Deviation = Abs (Sales – Plans).
Abs Deviation is set with the property Calculate result as ‘summation’ to add up Abs deviations at product level to show at Category level.
2. % Error = Abs Deviation / Plan.
The issue is with the % Error value at category level. At product level, all the values are showing correctly.
To illustrate the issue with a simple test case,
CategryProductSale-PlanAbs Dev----%Error
C1--P1--100-60---40--
67%
C1--P2---50120---70--
58%
C1 Total--150180---110--
17%
Observe that in the output the calculation for ‘%Error’ at product level is correct all the way. But the summary
calculation for ‘Error%’ i.e. C1 total which is showing as 17% is wrong. The correct value as per the formula should be 110/180 = 61%.
SAP, through OSS replied that it is not a bug but the default behavior of OLAP calculation. OLAP processor first calculates the formula for % Error and then shows the display value at C1 total for Abs Dev. Meaning, ‘% Error’ is calculated first and next the summation for Abs dev is displayed. Abs dev 110 at C1 level is only a display value but not the value taken for % Error at C1 level. Instead OLAP calculates the Abs Dev at C1 level by Total sale – Total plan = 180 – 150 = 30 and the % Error calculation takes this 30 value in the formula and gives % Error = 30/180 * 100 = 17% at C1 level. But 17% doesn't make any sense to the user. Further, to display value of 61% at % Error at C1, it is being advised that by defining two structures, I can force the calculation to take display value of 110 in the % Error calculation at C1 level by using the cell editor.
Has any body tried to achieve similar result as above by defining two structures and cell editor in the query? If so, can you please throw some pointers of how to define two structures in a query and how to force the % Error at category level to take the display value of 110 in the calculation? I have gone through the documentaion on structures and cell editor but the approach is not at all clear.
Thanks in advance for your suggestions.
Prasad
Unilever Asia IT department

Hi,
Have u read aabout the Formula Collision.
Take a look on this link .
http://help.sap.com/saphelp_bw32/helpdata/en/d2/02223c5f00612be10000000a11402f/frameset.htm
Read the Formula Collision, and let us know , whether your pb is solved by changing the Formula Collision of % error formula.
With rgds,
Anil Kumar Sharma .P
Kindly assign points , If it really helps you.

Similar Messages

  • How to restrict the Null Values for Key Figules in the Bex Query

    Hi Friends,
        I want to restrict the Null values of a perticular key figure in the Bex Query Output.
    I will explain in details. i have 3 key figures in my query.. let us assume.. key1 key2key3
    key1           key2                key3
    4                4                   100.00
    5                0                   200.00
    1                0                    19.00
    0                1                    10.00
    i don't want to see the the records for which key 2 is 0.
    we have a setting in the Bex Query for restricting the Zero values in the query properties. If we enable that setting it will show
    4               4          100.00
    but i want the report to display..
    4               4           100.00
    0               1           10.00
    can any body guide me. <b>i want to display the values if key2 <> 0.</b>
    Regards,
    Nagesh.

    Hi AVR,
    nice to see reply.
    can you eloborate your view...how can i put the condition.
    <b>i want to put the condition key2 <> 0.</b>
    Regards,
    Nagesh.

  • Sales Order form error  "Not able to retrieve Display values for Service"

    Hi,
    Few of our orders flash the below error message when the order is queried
    "Not able to retrieve Display values for Service"
    Below are the points I observed
    1.The orders I am referring to are imported order via EDI interface.
    2.The service reference type code has value of ORDER, however no other service related fields (like service reference line id) have any values.
    3. The item is not a service item (service tab in Item setup is disabled)
    4. Same item when imported with value of "Customer Ordered" in "service reference type code" field, does not throw an error.
    5. If I update "service reference type code" with value null or change it to CUSTOMER_PRODUCT, the error disappears.
    Can someone explain the significance of this column value and what could have been causing this error message?
    May be there are some dependent fields/setups which must have a value when service reference type code =ORDER.
    Thanks in advance,
    JC
    Edited by: user10174990 on Oct 25, 2012 10:58 AM

    Hi,
    Maintain the dafault values using Tcode OISF with respective to Planning Plant you have to maintain the following values like Order Type, Main Work Center, Maint. Plant,Group,Group Counter,Business Area & Task List type.
    or
    Apply these OSS note 150732 / 195993.
    regards,
    Venkatesan Anandan

  • Hide domain fixed values for future use

    We have  a custom domain with 7 fixed values.These Fix values will display if we click on f4 help in the screen.I dont want 4th value and 5th value in the f4 search help button.whether it is possible to hide those values for future use. if we delete the fix values from the domain fixed value list..then it is effecting the past data.Please help me on this.

    Hi Prashanth,
    Use FM : DDIF_DOMA_GET  to get the fixed values for that domain in an internal table, then you can process that internal table according to your requirement and display only those values, in AT SELECTION_SCREEN ON VALUE_REQUEST event in the report.
    I hope it resolves your problem.
    Thanks,
    Avinash

  • What is the use of transporting BEx query to production from development ?

    Hi !
    if create a query by copying an existing query and make some modification in production and sent it to client..and client is happy as it satisfies all his requirement .
    Then what is the use of creating Bex query in development and transport it in quality and then to production if we can create directly in production ?

    Hi,
    There is something called as SOX compliance..and three system landscape.
    First of all you are not suppose to make changes to standard qeuries.
    You can give it to the client a new copied query wirth required changes and it is very much accepted as well but how will it be tracked for future support.
    Suppose there is a change in the underlying cube...this will affect all the queries and the new copied query which no one knows about will be affected too.How will you test it if its workinf fine with the new flow.
    If you want to do the testing in production as well.... then you are not following SAP guidelines and may be you are violating the contract signed by you and your client.
    Thanks
    Ajeet

  • Asset value for Calculation of Tax Depreciation

    We have been told that many of the assets created as of 1/1/2008 have a different (lower) tax value than their beginning book value.  Book value is correct for standard book depreciation.     Is there a process to update the tax value of assets created in SAP similar to the transaction AS92 used to update values for Converted Assets?
    It was suggested that we use the method of Unplanned Depreciation tcode ABAA with TTY 642/652 to change the tax value of the asset.  When I tested this I found the various tax depreciation methods were calculated based on the beginning book value for year 1 and not using taking the special depreciation into consideration until subsequent years.   This is using Depreciation Area 10, MACRS, Dep. Key M200.
    Is there a better method of altering asset book value for tax purposes or a better way to alter the tax depreciation calculation so it takes Unplanned Depreciation into consideration during year 1?
    Current simplified tax depreciation example:
    Beg. BV $1,000
    unplanned dep posted $100
    tax depreciation for year 1 $100
    tax depreciation for years 2-10 $88.88
    The preferred depreciation is $90 years 1 - 10.
    Thanks for your assistance,
    Jeff

    I think I had the cart before the horse on this problem.  The correct way to look at this is what is the best way to get the correct "Net Book Value" and not the correct tax depreciation posting as it never actually gets booked.  
    By knowing the incorrect Beginning BV, the rate depreciation is applied in year 1 and finally the desired Net BV value at the end of year 1 for tax purposes I am able to calculate the correct Unplanned Depreciation for tax to make everything work out correctly.
    correct beginning tax BV $1,200
    Beginning Asset Book Value $1,800
    depreciation $360 (20% of BV)
    Unplanned depreciation  $?
    Net BV for tax at end of Yr1  $960 ;  or  1,200 - (1,200*.2)
    With the know values above that makes my unplanned depreciation for Yr 1 to be $480.  Year 1 and all following years depreciate correctly after the Unplanned Depreciation is posted.
    I am marking this as resolved unless someone sees an error in my thinking.
    Thanks,
    Jeff

  • How  to set default value for Zfeild using statusprofile

    hi experts,
    I need to set a default value for a zfeild using status profile.Although we can default the values,using getter and setter methods,but in my requirement,the feild will be defaulted when the page is locked,also in display mode,which will require me to write code to unlock then set the value and then write a commit,as there wont be any user action performed.
    I have created a zstatus profile and have set the required status to inital,but no luck
    please suggest if this canbe achived through status profile.
    Regards
    Anu.

    Hi,
    You can check in the getter if the Page is locked and then display the value to want to display. Note that this will be just Displaying the default value for the Zfield and it will not set the default value into  the Zfield in DB, because when the document is locked ( means locked for editing - mostly when system status is completed ) , setters are not called and so you can display the value but cant set it. This is fine if the value you want to display in Z field is just for user's informations and its not required to save this default value.
    The best approach would be to set the value in the Zfield before the page is locking. For example, If you wat to set the zfield value when status is set to "Completed" , then you can configure an action that is 1) triggered during saving of the document with 2) start condition "When status is completed"  ( both 1 and 2 you can mention in action defination ), then Implement this action badi in which you can set the Zfield to default value.
    This will ensure that default value is always set whenever the page is getting locked for editing ( i assumed that page lock means status completed ).
    Thanks & Regards
    Suchita

  • Clearing the displayed value for a SELECT-OPTION

    How do I clear the displayed value of a SELECT-OPTION? 
    I have 2 SELECT-OPTIONs on my screen (standard basic report program screen).  I use code like this to populate the drop-down boxes for each one. 
    =====
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prgrp-low.
      PERFORM fill_prgrp_values.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_prctr-low.
      PERFORM fill_prctr_values.
    =====
    The value the user picks for the first SELECT-OPTION will affect what values I put in the drop-down list for the second SELECT-OPTION. 
    If a user enters a value for the second SELECT-OPTION, and then goes back and changes the value of the first SELECT-OPTION, then I want to do two things:
    1.  Create a new set of values for the drop-down list for the second SELECT-OPTION (no problem; working fine);
    2.  Clear the displayed value from the second SELECT-OPTION that the user entered previously.  That value became invalid when the user picked a new value for the first SELECT-OPTION. 
    How do I clear that second displayed value? 
    I have tried CLEAR and REFRESH for the second variable using the formats s_prctr, s_prctr[], and s_prctr-low.  They will erase the values of the internal table or part(s) of it, but the displayed value stays on the screen. 
    I need to clear out the displayed value so the user will either leave it blank or enter or select a new value. 
    I am using F4IF_INT_TABLE_VALUE_REQUEST to build the drop-down lists, and it works fine, but I do not see any function module to clear the displayed value off the screen. 
    Thanks for your help.

    Sorry, but calling DYNP_VALUES_UPDATE did not work.  This is how I coded it. 
    fld_reset_rcd-fieldname  = 'S_PRCTR'.
      fld_reset_rcd-stepl      = sy-stepl.
      CLEAR fld_reset_rcd-fieldvalue.      "  re-initialize s_prctr
      CLEAR fld_reset_rcd-fieldinp.        "  what goes in here?
      APPEND fld_reset_rcd TO fld_reset_tbl.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          dyname = 'ZFI_GL_BALANCE_NGL'
          dynumb = '1000'
        TABLES
          dynpfields = fld_reset_tbl
    <Added code tags>
    I have discovered that CLEAR and REFRESH of s_prctr will clear it somewhat.  If I enter multiple values, ranges, etc., they will all be cleared, EXCEPT for the one single value that is displayed on the main screen.  It is not cleared and it remains if you push the button to display the pop-up to enter ranges, etc. 
    To devrath.sampat  --  Thanks for your example for building the drop-down list, but that is not the problem I am having.  I am already able to build it just fine. 
    To repeat my problem, if I: 
    1.  first enter / select a value for the first SELECT-OPTION s_prgrp
    2.  then enter / select a value for the second SELECT-OPTION s_prctr
    3.  And finally go back and select a new value of the first SELECT-OPTION s_prgrp from its drop-down list,
         when I do, the program needs to clear the value displayed on the main screen for the second SELECT-OPTION s_prctr (any additional values, ranges, etc., are cleared by CLEAR and REFRESH, if I go look; but not the value shown on the main screen).
    Edited by: Scott Crosby on Feb 14, 2012 4:20 PM
    Edited by: Suhas Saha on Feb 15, 2012 12:03 PM

  • Display values for logical columns with several physical sources

    Hi all,
    I'm enocuntering some strange behaviour with the values displayed for a column (when we want to add it a as a filter, and in the dialogue box select 'Show All' values).
    Basically the logical column is mapped against several physical columns as the base fact table is aggregated to different levels. Additionally, one column in the fact tables has an attribute value, and these vary between the aggregated and non-aggregated table. This is not a problem.
    In the production environment, when we display the all values in the filters prompt for this column we are seeing the values being taken from one fact table. Naturally this means that not all the values possible for this column are being shown (i.e. values from the aggregated fact tables are missing). Now in one of our test environment where those fact tabels have additional data loaded, the values are being taken from one of the other fact tables. Unfortunately it is not necessarily the fact table with less data.
    My questions are:
    a) What dictates which fact table the server will use when the query in Answers doesnt use any dimensions (i.e. we are selecting just this attribute and selecting all the possible values by which it can be filtered)?
    b) Is there a way of obtaining all the values from the differente physical columns? I.e. that the display values shows the values of that logical column across all the physical fact tables? Maybe we would need to model that attribute as a logical dimension just for that attribute? Im not really sure this would work, as at the physical level the join between the dimension and fact would still have to go to only one particular fact table.
    Any info or help is much appreciated.

    Hi,
    Aggregate tables exist at physical level and are created by ETL procedures. Although i am aware that the dimension come into play when the application needs to decide which source aggregate table to use, it is not an issue here as in our query we are not involving dimensions. We are selecting just this one columen, and then the filter option on this column, then in the dialogue box we select 'All Choices', only the values from one of the source tables is being shown.
    This is not a probelm within reports, i think it is a product limitation in that in that option to list all values a user can filter by, it is not possible to display all the values from the different fact tables to which that column is mapped.
    Has anyone else encountered this behaviour?

  • SP Online - Managed Metadata column Default Value for folders (using CSOM)

    Hello,
    I am working on setting default values (metadata columns)  for different folders on my document library. As so far, I've found solution about how to set default values on whole library and many solutions which works for folders, but not for sharepoint
    online (using metadataDefaults object).
    The only working solution for folders in SPO I've found is editing file library/Forms/client_LocationBasedDefaults and add some data here.
    My question is: is there any easier method to set default values for each folder in document library without manually editing this file? 

    I second that, I have a client looking to do the same thing but I don't see a way to automate this.

  • Display values for multiple selection

    In the code below, I am trying to display multiple values for Drop down list. when i run the code below the value "AA" is only selected on the screen but not BB.
    I want to display both AA and BB selected.
    Please any help/suggestions:
    <%@ page import="java.util.*"%>
    <jsp:useBean id="ab" class="com.a.b" scope="session"/>
    <select name="lstTyp" multiple>
    <%
    String Type[]= ab.getTyp();/*(VALUES ARE "AA-AA,BB-BB,CC-CC,DD-DD")*/
    String choiceType;
    String getTyp1 = "AA,BB";
    String getTyp = "";
    StringTokenizer parser = new StringTokenizer(getTyp1,",",false);     
              int numTokens = parser.countTokens();
              for(int j = 0; j <numTokens; j++)
                   getTyp = parser.nextToken();
                   for(int i=0; i<Type.length; i++)
                   {   choiceType = Type[i].substring(3);
                        if( getTyp.equalsIgnoreCase(Type.substring(0,2)) )
                             out.println("<option value=\"" + Type[i].substring(0,2) + "\" SELECTED >"+ choiceType );
                        else
                             out.println("<option value=\"" + Type[i].substring(0,2) + "\">"+ choiceType );
                   System.out.println(getTyp);
    %>
    </select>

    <select name="lstTyp" size="5" multiple>

  • Display Value for a Horizantal Bar Chart

    My Horizontal Bar Chart is not displaying values that are less than 6 figures since most of the column values are greater than 7 figures. it won;t show even when I hover over the column bar.. Any idea on how to display them.
    -Sam
    BOBJ XIR2

    Sam,
    I have not come across such scenario...anyways..let me give it a thought and will let you know if i find some solution..:)
    Undoubtedly i still say it as a powerful tool when compared to any other dashboard development tool. Most importantly, anyone can develop a dashboard and show their analysis in visualization in minutes... that is the beauty of Xcelsius
    I understand some important features are still missing and i am sure product development team will work towards it. No tool is perfect.. It is only people like you and me who will be able to make it better by suggesting different ways to improve
    Cheers,
    -Anil

  • Taking my money for not using it.

    I have been lucky in the past that I caught the email that Skype sent me letting me know if I did not use the amount I deposited for Land Line and Cell Phone calls if I did not have activity.  So I just placed a quick call to my mother's home and then told her I would call her back on my cell and that took care of it but how sly is it to take your money and you loose it if you do not use it.  That I do not think is fair and one reason I do not put more than just a few dollars on my account.  Ya it has come in handy in the past bvut to take my money for not using it is just WRONG!!!  I think it is a gimic to get you to spend your money and then expect that you will deposit more and do that over and over so they make a larger profit.  I think it should be, if you deposit money that it stays in your account until you use it.  Sometimes I place Skype calls when I can not get reception on my cell phone.  I live in a very rural area.   Hee Haw!  A one mile, one horse town and over 130 miles to the nearest major city.  I am used to living close or in a city.  I grew up here and let me tell you small town life is not all that it is cracked up to be. So cell reception can be iffy and every once in a while I have to turn to skype but seems not enough usage for them so they want to take it all.  In all normal minded thinking people would agree with me that it's not fair.  So after I use up my money that I can not withdraw, It will be pay as I go. Put a dollar or two, just enough to make my call and no more deposits of $20.00's and expecting it to stay there until I am ready to use it.  Cearly they do not work that way and there is a time limit that your money can sit in your account before they take it for non usage. 
    Post transferred to create its own new topic;
    subject/title amended accordingly.

    Hi, OnATorrent, and welcome to the Community,
    Please see this FAQ article related to reactivating credit; Skype does not "steal" your credit: https://support.skype.com/en/faq/FA10378/what-do-i-do-about-inactive-skype-credit
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • (Un-) Displaying Values of an COMPOUND InfoObjects in BEX

    Hello,
    I have a Mastadata InfoObject with one Attribute and
    one Compound:
    <b>Masterdata - InfoObject:</b>
    IO_MASTER, with masterdata, CHAR(30)
    <b>Attribute:</b>
    IO_ATTRIBUTE, CHAR(29), ...
    <b>Compound:</b>
    IO_COMPOUND, CHAR(29), ...
    ...which means logical Primary Key is:
    <b>IO_MASTER, IO_COMPOUND</b>
    In BEX the Masterdata InfoObjects displays values with "/".
    For Ex. as:
    <<i>IO_MASTER Value</i> / <i>IO_COMPOUND Values</i>>
    I want to Display only as:
    <<i>IO_MASTER Value</i>>
    How  ?
    Thank You
    Martin Sautter

    Hello,
    for Your info:
    Put the Compounded InfoObject <b>IO_COMPOUND</b>
    into the rows or columns ( and mark it as undisplay)
    Please compare:
    Re: Exclude compound object data in report
    Martin Sautter

  • How make default values in the selection criteria of BEx query????

    Hi all
    I have to create a brand new query, in the selection criteria(Prompts) I have two prompts. one prompt should show current budget year and second prompt should show next budget year, both prompts are mandatory and default.
    Can any one please let me know how to obtain current and next budget year??? do I need to write any customer exit or do i need to create a offset???
    Two prompts are using same infoobject 0fiscper which is mapped to ECC Table MBEW and field is LFGJA.
    Thanks

    HI sathiyaa,
    so you want to show user with two prompts one will show current year and the other next year value by default.
    //tell me that if you user change the current year value for ex: it will show 2011 by default.. and user changed it to 2009.
    you want to show 2009 year results or 2011 even though he changed the prompt.
    Here i'm considering that even though user changed current year to some other year still you want to show the current year results.
    Create a customer exit variable for calyear with ready for input (checked).
    customer exit code in CMOD :
    when ' customer exit var for cal year'
    IF I_step = 1.
    clear l_S_range.
    l_S_range-low = sy-datum+0(4).
    l_s_range-sign = 'I'.
    L_s_RANGE-opt = 'EQ'.
    ENDIF.
    if i_step = 2.
    data: zyear(4) type c.
    zyear = sy-datum+0(4).
    ex: l_s_range-sign = 'I',
    l_s_range-opt = 'EQ'.
    L_s_range-low = zyear.
    appen l_s_range to e_t_range.
    after this create a variable offset
    create a new selection in the structure, drag the KF and calyear restricted by current year variable . Copy the same selection and insert it as a new selection, go back to the calyear restriction, right clik on the variable. specify variable offset and enter + 1.
    or search in sdn how to create variable offset it will help you
    Regards,
    Ranganath.

Maybe you are looking for

  • Copying data to its corresponding type folder is mandatory...?

    hey ...if we copy data into our playbook from other source....than we must copy it to its corresponding folder for ex. if want to copy video into PB than we have to copy it into the videos folder of the PB ....why is it so..?no alternative is there..

  • Address Book enteries list

    There must be a bright spark who can advise me how to make a list of names, addresses, phone, emails etc from my Address Book (3.0.3) database. All that info and I can't seem to get a hard copy. Not just the 'either or' option of phone list or email

  • I signed up for free trail 1 day ago and went to use it today and it says expired

    i signed up for free trail 1 day ago and went to use it today and it says expired

  • 7310 copy function won't work.

    I just installed a new black cartridge and I can print from my computer.  But I cannot copy, fax. The message reads "new cartridge successfully installed, press OK to continue".  I press OK, but the whole panel appears dead. The power light no longer

  • Regional Format

    Hi all, it's not a massive issue but one I'd like to fix if possible. I live in United Arab Emirates and use Awesome Note as calendar application on my iPad. ANote does not offer support to change first day of week to Sunday, it operates off the loca