Variance calculation at reporting level

Dear All,
There are two key figures in my report - Plan and Actual amount. Now user wants to see the variance between these two in % terms.
Formula is ( Acutal - plan )/plan *100 . Now this formula works when plan value is not zero when ever the plan value is zero the display will be X . Now user wants to put a check say whenever the plan is zero then display 100 % variance. How can we achieve this at reporting level.
Thanks and Regards,
Anup.

Hi Anup,
Try something like this:
(Plan = 0)*100 + (Plan <.> 0)*((Acutal - Plan) / Plan * 100)
I'm not sure but you might have to use the NOERR function in case of division by zero:
(Plan = 0)*100 + (Plan <.> 0)*NOERR((Acutal - Plan) / Plan * 100)
In both samples remove the "."
Hope it helps.
BR
Stefan
Edited by: Stefan Stefansson on Jul 21, 2009 1:49 PM

Similar Messages

  • Calculations for Key Figure at CUBE Level or REPORTING Level

    Hi Folks,
    What are the conditions to decide whether we need to go for keyfigure calculations at infocube level or at reporting level.
    How to achieve them if done at cube level.
    Could anyone provide some KT with examples?
    Regards
    Kittu

    Hi,
    I got your point.
    Could you tell me how to use below mentioned formula at transformation time?
    In brief the formula calculates the number of policies using field  " s endorsement type".
    Formula is as below:
    SUM(CASE WHEN S Endorsementtype IN ('004','015') THEN -1 WHEN S Endorsementtype IS NULL  AND S Gross IS NOT NULL  THEN 1 ELSE 0 END)
    No of policies is a calculated keyfigure.I dont have this field in my datasource.
    could you tell me the steps ?
    Regards
    kittu

  • BO/BW Report Level Calculation and Prompts

    Hi,
    There is an infoprovider in BI , delta enabled.Start Date and End Date are two fields in Infoprovider.
    The requirement is to have an Use Indicator Prompt having values Y or N.
    if the prompt input is Y , then display only those records where the current date is between start and end date,
    and if the prompt input is N, then display all values.
    Since the infoprovider will have delta loading, this needs to be done in BI/BO Report Level.
    If I have a Keyfigure in BI (using the above logic, having values 0 and 1), then this keyfigure needs to be selected in Web I Report(since the Use Indicator Prompt will be on this keyfigure), if not selected then all the keyfigures will be blank.
    I have changed the aggregation of the Keyfigure to 'None' in Universe, but still it doesnt work

    Hi,
    first of all you should not leverage the InfoProvider directly but instead use the BEx Query and this type of prompting could then be done as an EXIT variable in the BEx query.
    ingo

  • Percentage Variance calculation problem

    Hi experts,
    I have report with following scenarios:
    <h3>Account Name---ActualBudget---Variance --Variance Percentage </h3>
    Account Level 1______3400_______5200____-1800______________X
    -Account Level 2______2200_______4200_____-2000______________XX
    --Account Level 3______1000_______2000_____-1000_______________-50
    --Account Level 3______1200_______2200_____-1000_______________-45.45454545
    -Account Level 2______1200_______1000_____200________________XX
    This is how the report is now displayed. I have done a Hierarchical Grouping of database field (Field Account). Here the Actual and Budget columsn are the summary fields with "sum" and the Summarize across hierarchy checked.. The formula for Variance Percentage is
    if Budget =0 then 0
    else  ((Variance/Budget)*100)
    Now, all the output is displayed in Group Header. The problem here is the calculation of Variance Percentage of Levels above Level3 i.e. Level 2 and Level 1. Level 2 percentage should be the calculation of (Variance / Budget ) *100 of that Level only i.e. Level2 and same should be the case for Level 1. When I apply the summary field on this column, the percentage calculation is all wrong as the Level 2 will be sum of Level 2 variance percentages which is not correct output.
    I need a solution to this quickly.. if some more clarification is required please reply to this post..
    Thanks

    Don't use a summarized field. Instead create a formula field
    Right Click on the formula field which will be there in your Field Explorer --> Select New --> Provide the name for your formula field in the text box shown
    and put the condition there like
    if {test.Budget} =0 then 0
    else  (({test.Variance}/{test.Budget})*100)
    Once formula field is created place in the desired location where you need to show the Variance Percentage.
    Hope this helps!

  • Report level manipulation

    Hi All,
    I have a sales report, its a very simple report.
    I need to calculate revenue at the report level.
    Revenue = Price * Quantity.
    I have quantity Key figure in the column level, i need to calculate revenue(calculated key figure), but price key figure is an attribute of material characteristic.
    Material characteristic is present at the row level. Please let me know how to achieve this.
    Edited by: Raghavendraprasad.N on Nov 11, 2011 3:32 AM

    Hi,
    You can achive this using formula variable by processing type replacement path...
    Please go through below link for better idea...
    http://www.sd-solutions.com/SAP-HCM-BW-Replacement-Path-Variables.html
    http://help.sap.com/saphelp_nw04/helpdata/en/03/6ba03cc24efd1de10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/5f9ac61a205a459d0e7ef313d10321/content.htm
    Thanks
    BVR

  • Output price variance calculation

    Hello,
    I have a question on output price variance calculation in SAP.
    The help reads:
    "Output price variances are reported in the following situations:
    If the standard price has changed between the time point of delivery to stock and the time point when the variances are calculated "
    I do not quite understand this as when I have a standard price change between the delivery to stock and the variance calculation, I will already have a CO-PA entry for the price change. So why do I need another CO-PA posting for the variance?
    Looking at the simple example of having costs of 150 USD when producing a material of 150 USD. If nothing changes I have a variance of 0 USD.
    However if I receive the finished product to stock with a value of 150 USD and then revaluate to 165 USD before the variance calculation happens, I understand SAP would post an output price variance of 15 USD? But I also get 15 USD price variance from the stock revaluation into my books, so isnt that a double count?
    Thanks a lot for your help
    Kai

    Hi Kai Hoffmann ,
    As the SAP Help says...
    Output price variances are reported in the following situations:
    If the standard price has changed between the time point of delivery to stock and the time point when the variances are calculated
    With respect to the above point,  pls follow the example and let me know if you agree or not...
    Let us say, we have Standard Cost of Product X for the month of Feb as $100 per tonne.
    One Production Order is created for 100 Tonnes and you made Goods Receipt for 50 tonnes during Febrauray. (50 Tonnes posted to Inventory a @$100). Now, at the month-end, you estimated the Standard Cost once again and the new Standard Cost effective for the month of March is $110 per tonne.
    Revaluation of inventory is done for 50 tonnes (for GR posted alread and in stock) and $10 * 50 tonnes is posted to Price Difference Account.
    Now, during the month of March, you made the GR for balance 50 Tonnes on the Production Order. Inventory is posted @ $110. Once you do TECO and do the variance calculation, the system will post $10 * 50 tonnes as output price variance, which will flow to COPA and Price Difference Account.
    So, I dont feel there is a double count or duplication...
    waiting for your comments
    Srikanth Munnaluri

  • Variance Calculation and Settlement

    Hello Gurus,
    While performing period end closing, the variance calculated (KKS6) amount is not the same as the amount in settlement (KK87). Both are picking up the same variance categories for the material but with different values. can you please let me know the reason for this.
    Note: This error occurs only for one company code, other company codes calculate and settle the same amount. WIP and scrap is not being used by the company codes.
    Thanks in advance.

    Hi Friend,
    did you check whehter all your allocation and distribution cycles related to that company code are executed.
    in my opinion you need to check if that is executed and again compare the both reports
    Best Regards,

  • Variance calculation for production order with settlement receiver as SDI

    Hi...
    I have one query reference to Variance calculation for production order with settlement receiver as SDI(Sales document item).
    I am working on Varaint configuration with strategy 25(Make-to-order for configurable material) with requirement class 046.
    I have created sales order ref. to configurable material,subsequently created planned order & then converted to production order.
    In production order settlement receiver is SDI(Sales document item).
    While doing production confirmation ,variance has been created.
    Now during variance calculation KKS2, I have got error message as no suitable settlement rule found for object Order no.
    Is there any way to come out of this?Or variance calculation KKS2 is not applicable with settlement receiver as SDI(Sales document item).
    Pl. guide
    Redards
    Tushar

    Hi
    In case of non valuated material, concept of variance does not apply...
    Variance is Actual Cost - Cost of Goods receipt posted in stock.. If the later value is zero, your entire actual cost is variance... That is one way of saying it
    But, in SAP, var not calculated in case of non valuated material and that makes sense as well.. Since you are in MTO scenario, it would make sense to analyse costs vs revenues @ sale order level as each SO will be unique in itself
    Regards
    Ajay M

  • Creating a dynamic report level formula in Analysis

    Hello Experts,
    I have a requirement in Analysis to create a report level formula for "Number of days a Product has been on Backorder" which is a calculation based on existing report objects/elements i.e Current Date - Sales Order Creation Date.  The problems that I'm facing right now with this are :
    a) How to set up Analysis to only select current date automatically each time the report is run as oppose to selecting the current date manually each time ?
    b) How do i write the formula that adjusts the Column/Row(with the formula) itself if more objects are added into the report or moved out of the report.
    Please help folks.
    Thanks
    Gaurav

    Gaurav:
    a) How to set up Analysis to only select current date automatically each time the report is run as oppose to selecting the current date manually each time ?
    Why not do this in the BEx Query Designer?
    As for part b, I am not following; please include screen shots.

  • How to create keyfigure in Reporting level.

    Hi Experts.
    My question is How to create keyfigure in Reporting level {not
    calculated keyfigure, Restricted
    keyfigure and also Newselection,New formula}
    thanks&regards
    pradeep k pavan

    You can use formula variable to populate numbers. Again you can use virtual key figures if you want to populate values on fly. But what exactly is the requirement?

  • Reporting Level - Can someone please explain this attribute?

    All - I am a relative newbie to Siebel on Demand but creating reports with other tools for years. I recently came across some reports that I have inherited that are constantly giving us trouble. They are basic reports that look at the count of calls, meetings, etc. for a given user. What we are finding is that we have used this reporting level attribute to filter but depending on the level of manager logging in it is causing problems. Some people can't see the data and some get a massive amount of duplicated data.
    When it is all said and done we are looking for a simple manager-to-rep list of the counts of these activities. After looking at the reporitng level value it would look like an indicator of relative position from the lowest level in the reports-to heirarchy. We will generally filter for a level = 0 (or maybe 1) in most reports but what I want is a way to control that based on the user. My requirement is to have the level they can see and the detail at one level lower but I dont' fully understand how that gets created or how I can use system variables to find the user's level to control it.
    Anyone that has any background info on this or how I can control a basic anaylytic report in a more maintainable fashion to show my stuff and subtotals at one level lower that would be greatly appreciated.

    Not sure if I can help with the specific report, but I will try to shed some more light on Reporting Level.
    In any report where the Owned By User dimension is exposed, you can find the Reporting Level field. Each user is part of a reporting hierarchy, derived from the "Reports To" value in their user profile.
    The best way to see this is to create a simple report with the User Email, Reporting Level, and Manager Email. This will show you the manager at each level. You can use this to expose and filter on the full management hierarchy.
    Level 0 = the user. All users have a value of themselves as Manager at Level 0.
    Level 1 = Reports To - who the user directly reports to.
    Level 2+ = Up the chain...
    You may want to take a look at some of the pre-built reports to see how this can be used to achieve Team based reports, such as "Team Pipeline Analysis", "Team Sales Effectiveness Analysis", and "Team Activity Analysis". You can open any of the pre-buiilt reports to use as starting points as well.

  • Changing date format at reporting level

    Hello,
    Will u plz tell me how can i change the date format at reporting level?
    I want to display date in dd/mm/yyyy, but by default its showing mm/dd/yyyy.
    Delta is already loaded in the system, so i don't want to disturb regular data loading.
    Is there any way so that i can change the format of date.
    Plz help me out.
    Thanks,
    Regards,
    Steve

    Hi steve
    There r so many postings on the same topic
    go through these previous threads
    date format
    Date format
    u can find solution
    regards
    Ravi Kiran

  • Logic at reporting level to compare two dates .

    Dear Friends,
    I have a scenario here , where i have a counter keyfigure in my DSO which has constant value 1 . there is two dates : Stock issue date & stock receipt date .  At the reporting level , in selection screen there is an input on stock receipt date . Now i want to show key figure counter for which stock issue date lies between the stock receipt date which the user enters .
    Kindly suggest on this matter .
    Thanks & regards,
    Ashutosh Singh

    1. Create a customer exit variable on Stock issue date. Pass on the value the user enters through exit to this variable.
    2. Create a New formula with the counter keyfigure and restrict it based on the customr exit variable.
    This will work correctly if Stock issue date and stock receipt date are not displayed in the report.
    If it is displayed, then if the stock issue date lies between the stock receipt date it will have the value as 1 else 0.
    Hope this helps.
    rgds, Ghuru

  • Text data is not displaying at Report level for an Infoobject Item name

    Hi All,
    Texts data is maintained at Info object level but text information is not displaying at Report level for an object.  I have set the property at query level as "Text", but at report level it is displaying key values of the object, not displaying texts information.  This problem occured in QA(Quality) system but not replicated in Production system.  I have checked all properties at backend and query level and compared the same between QA and Production system didn't find any difference.
    Please suggest what might be the cause: at report level it is displaying key values instead of the textual information even text data is mainintained at backend.  In production it is displaying textal data for the IO.
    Thanks in advance.

    Hi All,
    Thanks for your valuable information.  I have changed the setting under Advanced tab as "Master data" for Access type for results values, but didn't solved the problem still it showing key information for the IO.
    In Production system the report displaying texts information for the IO, but in QA its displaying key information. The problem exits only in QA, its working fine in DEv and Production.
    As per my understanding might be the issue with Patches will be checking with Basis team on the same.
    Please suggest if you have any alternatives to fix the issue.

  • How to improve the query performance in to report level and designer level

    How to improve the query performance in to report level and designer level......?
    Plz let me know the detail view......

    first its all based on the design of the database, universe and the report.
    at the universe Level, you have to check your Contexts very well to get the optimal performance of the universe and also your joins, keep your joins with key fields, will give you the best performance.
    at the report level, try to make the reports dynamic as much as you can, (Parameters) and so on.
    and when you create a paremeter try to get it match with the key fields in the database.
    good luck
    Amr

Maybe you are looking for

  • How to display data in table

    Hi all, can any one tell me how to display data in a table when user click on a button. i have created a node with a set of fields from different tables now how to write the logic to display data in that table. Thanks & Regards, Naveen

  • How do i transfer my data from my old ipad to my new mac

    how do i

  • Music skips and pauses during work out

    Ciao a tutti, I like to use my iPhone when I'm working, stapping it to my arm with an XtremMac SportWrap, and listening to my playlists. I'm running for about 40 minutes and usually about halfway through my workout, or towards the end, the music star

  • Using mod in the calculation

    experts 810312301234X I need to calculate the x value in the above field . logic is as shown below. First we need to add all the odd numbers starting from left ie in our above example it is 4 because x we should not consider so first number is 4. var

  • SQ01 -Unable to upload query

    Dear Experts, I had tried to upload query in QA Client after downloading it from DEV Client. But still I am unable to find query in QA client. I can only see User Group & infoset which are uploaded successfully. I checked in both standard & Global ar