Apply formula at result level

Hi,
I need to build a report to get a KF of inventory turnover, the formular used is:
<i>turnover =total consumption / average stock</i>
while we use the formular below to get the
<b>average stcok =(begin of stock + n stock at month's end)/(n+1)</b>
what I need is to based on user's date input(let's say 09/2005 to 11/2005 for example),
1,get the "total consumption" for Oct and Nov,
2,and also get
"average stock" = (Stock at Sep + Stock at Oct + Stock at Nov)/(2+1)
3, get the turnover = "total consumption" /"average stock"
let's say KF "Total cnsumption" for 10/2005 is 10, for 11/2005 is 20. so <b>"Total cnsumption" for Oct and NOv</b> will be 10+20=30;
and if KF "Stock at Sep" = 12, "Stock at Oct" is 24,
"Stock at Nov" = 30
then <b>"average stck"= (122430)/(2+1) = 22</b>so the "turnover" will be
<b>"Total cnsumption"/"average stck"= 30/22= 1.36</b>
I am not sure how the report lay out will be, but as long as i can get the turnover based on teh user input's month during, that would be good enough. so probably the report will look like:
"Month"  "Totalcnsump" "Stck"  "averageStck" "TurnOver"
09/2005                  12
10/2005       10         24       
11/2005       20         30        
<b>result:       30         66       22         1.36</b>
Does any one have any idea how to make it done???
Your input is very much apprecieated,
ping

Dear Ping,
  This may not suit your requirements perfectly.
  But if your report layout is "fixed," how about adding a formula in the XLS workbook for example at column "G" such as:
  = IF(cell = "Result", apply the turnover formula cell1/cell2, else 0).
  As I have said, this is not the best way to do it.
  How about defining 2 structures in your query and try the options using cells definition in the query designer. You may wish to try and have a look at it for other possible solutions.
  Thanks a lot.

Similar Messages

  • How to use total/sum of values obtaind by applying formula on restricted KF

    Hi all
    I am using formula on restricted keyfigure i.e I want to apply formula on quantity for particular material say 100007,100990.I want to use total of values in some other formula,obtained by aaplyin formula on their respective quantities(obtained by using restricted keyfigure). if I use SUMCT or SUMGT it is not taking total of these 2 values instead taking value obtained by applying formula on result row.
    Is there any other way to use this 'total ' value in some other formula
    KIindly help
    Regards
    Megha

    have you tried: key figure properties -> calculations -> calculation directions
    hope it helps,
    Leo

  • Logical Formula at query level?

    I have requirment like if D =  0 then ' ' (SAPCE) else E / F.
    I dont know how to get space ?
    please help me to create this formula at query level?

    hi Hari,
    I am not really sure ,but u can try this...
    if D = 0 then ' ' (SPACE) else E / F.
    use the same formula and make it Zero instead of space and then in the Query properties replace Zero with Blank or Space Values.
    Rgds
    SVU123
    Edited by: svu123 on Sep 30, 2010 6:53 AM

  • BSEG table value can't apply formula

    I download amount column for BSEG into excel, for example, in excel, the document number 400000235 has amount 51.866,60,
    when I apply formula column X=1.5*amount column, it shows #value!, if I change to 51866.6, it works fine, I have more than 2000 lines to change, I can't do it one by one, any one got idea how to fix this issue. thanks

    Hi,
    before you make the download from SAP, change the user parameters in su3 transaction (Defaults / decimal notation) to the decimal notation you need (eg. from xxx.xxx,yy to xxx,xxx.yy) . In MS Excel, you can try to do the same and convert the figures to values by using the formula "value" but the easier way is to change the setting in the source system.
    Best regards, Christian

  • Can a target value for KPI calculation be loaded at the Result level in SSM

    Hello
    we are working on a POC where we are loading data at the input level of a dimension for a measure. that measure is averaged up to the result level passing through 1 output level.
    Now my problem is that we can load the target data using Entry and Approval at the same level as we load the actual data i.e at the input level. But our requirement is that the client needs to load the target values at the result level but not at the input level.. how can this be done ?
    Vijay
    Edited by: vijay kumar on Mar 20, 2009 7:20 AM

    Hi Vijay,
    If you are using the BICA to define your KPIs, you can create there Actual and Target Measures with different Dimension Consolidation options. In order to be able to also load data at the output or result level, you can choose from the dropdown the option "ENTER" as the Dimension Consolidation option for the target measure you are creating.
    But if you are using the Cube Builder to create your KPIs, then unfortunately it isn't possible to define different Dimension Consolidation options for the Actual and Target measures of one KPI. In this case, and in the case you are creating your measures directly in PAS, you have to edit the CONSOLINFO document in the PAS model in order to allow for the entering of data in E&A at the output/result level.
    You can set this option by locating your measure in that document and replacing the string "INPUT", at the end of that line, with "ALL". If no line exists yet for your measure (which will happen if you created the measure directly in PAS), then you will need to add it, as in the following example:
    EXAMPLE_MEASURE_ACT,consvar_pmdb.pro,INPUT
    ...in case the actual measure should be consolidated as SUM
    EXAMPLE_MEASURE_ACT,calcavg_pmdb.pro,INPUT
    ...in case the actual measure should be consolidated as AVERAGE
    EXAMPLE_MEASURE_TAR,NONE,ALL
    ...in order not to consolidate the target measure and allow E&A to plan on all levels of its dimensions
    Hope this helps!
    Best regards,
    Ricardo

  • Formula "At Current Level"

    Post Author: mlowrance
    CA Forum: Formula
    Is there a concept in Crystal to have it calculate a formula "at the current grouping level".  In our report we have several formulas that calculate a number of statistics.  The report has a sum for the fields at each group level and then uses those sums to calculate the formulas. However since this sum field is different, or at least has a different name at each group level, we have to create a copy of the formula for every level of the report we want it to appear at (Group 1, Group 2, Grand Total,etc.)Is there any way in Crystal to tell a formula to calculate "At the current level".  This way we could have one copy of the formula that would just plug inthe total field for the current group it is working in.This obviously is a really pressing issue since we can fix it by just having multiple copies of the formula, however it would be nice to not have to modify each one or create new ones each time the grouping is changed. I hope this made sense, it was the only way I could come up with to explain it.Thanks,matt 

    Post Author: yangster
    CA Forum: Formula
    what you've described it not feasible or a way to calculate to begin withthe sum/count/etc at a particular grouping will differ at each group level for the exact reason that you are grouping to begin witheach group level represents a distinct break in the dataif you are using crystal reports xi release 2  you can use the insert summary into all levels to speed things upbut if you are doing a statistical calculation at each level you will need to evaluate it at each group level

  • How to apply sorting for each level of a hierarchy?

    I'm using SSAS OLAP and I want to apply sorting of the levels of a hierarchy.
    I know that I can sort the whole hierarchy via ORDER function (I have some issues when I'm trying to apply DESC sorting
    on the whole hierarchy), but what I really want to achieve is sorting of a specific level. For example in the [Date].[Calendar] hierarchy (Adventure Works Cube), I want to have ASC sorting
    of years, DESC sorting of Quarter, ASC sorting
    of Months, etc. I do not want to break the hierarchy (using BASC or BDESC), I just need them sorted on the same level. Do you have an idea if this is possible at all?
    My idea is to sort the levels based on their key, not by the measure. For example if we have the following structure:
    -2009
     -Q1
       -Jan
       -Feb
     -Q2
       -May
       -June
    -2010
     -Q1
       -Jan
       -Feb
     -Q2
       -May
       -June
    I would like to be able to sort the data in the following order (DESC for years, ASC for Quarters, DESC for months):
    -2010
     -Q1
       -Feb
       -Jan
     -Q2
       -June
       -May
    -2009
     -Q1
       -Feb
       -Jan
     -Q2
       -June
       -May 
    Thanks in advance for your help!

    Hi Rosen,
    According to your description, you want to sort the different hierarchy members in different order, right? Generally SQL Server Analysis Services doesn't provide a way to sort dimension members in Descending order. SSAS provides only Ascending order. We
    can achieve this sort functionality by using a simple trick. However, the order is used for all the members of different hierarchy under this dimension. So I'm afraid that your requirement cannot be achieved. 
    Reference:Sort Dimension Members in DESCending order
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Web report - apply specific formula on result rows

    dear all,
    I would like to apply a specific formula for a result row in a web report.
    formula like this (a1b1 + a2b2 + ...)/(a1+a2)
    With excel report I know that a vba excel can do this job.
    I suppose that with web report a javascript should be helpful to solve this issue.
    Is there anybody who could propose me a solution to solve this issue, or a source code example of javascript to do this ?!
    Thanks !

    Hi Guru Prasad,
    One possibility is that you are doing some calculation with the user parameter that occurs in the before parameter form trigger.
    When running in the normal client-server Reports runtime environment, the report triggers are executed in this order:
    1. before parameter form trigger executes
    2. parameter form is displayed)
    3. after parameter form trigger executes
    4. data model is validated and queries prepared)
    5. before report trigger executes
    6. report is formatted)
    7. after report trigger executes
    When running on the web, the display of the parameter form and the execution of the report occur in two separate sessions as Reports is "stateless". So, it goes like this when you request the report via a URL:
    1. before parameter form trigger executes
    2. before parameter form is displayed)
    At this point, the user enters in parameters into the web page, and submits the request. As far as Reports is concerned, this is a new report request with parameters fully specified and no parameter form. So, it now does this as a new report request:
    1. after parameter form trigger executes
    2. data model is validated and queries prepared)
    3. before report trigger executes
    4. report is formatted)
    5. after report trigger executes
    So, if you have logic that sets up default values in the before parameter form trigger, it won't get executed on the web. If so, you should move this logic to the after parameter form trigger.
    regards,
    Stewart

  • Applying formula to two columns of data

    Hi,
    I've started to use DIAdem and it appears very powerful.  Comparision between different data channels
    is straightforward and the built in functions are useful.  What I'm comparing with with the older way I
    analysed data within EXCEL.  To deduce INL and DNL from raw data of a DAC.  See attached how the
    formula has been applied to some dummy data I made up of a 3 bit DAC!  Anyhow I'm wondering if there
    is a correspondingly easy way to implement this formula in DIAdem.  Any help appreciated.  I'm played
    around with the calculator a little but to no avail.
    Thanks,
    Mike
    Attachments:
    INL+DNL results.xlsx ‏14 KB

    Michael,
    I took your Excel file and tried to recreate the exact same thing in DIAdem 2010.
    Here's what I did:
    The Excel function that subtracts values within a column from each other can be replaced by the "Calculate Differences" function in DIAdem ANALYSIS (ANALYSIS > Basic Mathematics > Calculate Differences). That creates a new Channel I called "Delta" in my DIAdem Data Portal.
    The next thing I did was add the LSB value as a property to a data channel (in my case I added it to "Readings" as a custom property).
    The next step was to go to ANALYSIS and select the Calculation Manager from the toolbar. I added two calculations to the calculation manager, one for DNL and one for INL.
    And here is the INL calculation:
    That's what got me the same results you have in Excel ...
    Ask if you have further questions,
          Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • How do you apply a gradient to Levels Gamma in CS2?

    In Adobe Photoshop versions 5 and 7, while retouching photographs I was able to change a levels gamma setting on a selected area, then make the levels change gradual from one side to the other by using the gradient tool. This enabled me to compensate for a gradual fall-off in brightness across an area of the photo. But in version CS2 (Windows XP Professional), the gradient tool seems to work only for added colors, not for the levels gamma.
    Does anyone know how to apply a gradient to a levels gamma change in CS2?  I can't seem to get it to work either on non-layered levels or on a levels layer.
    Cordially,
    Oliver Dean
    Browser: Mozilla
    Operating System: Windows XP Professional
    Has it ever worked? If so, what's changed? (provide comments in description field): No
    Same results with different file?: Yes
    Same results with different computer?: Yes
    Recent System Hardware or Software change?: Not Applicable

    Thanks for your reply -- this is a novel approach I haven't enough experience to figure out for myself!  Chalk one up for the forum!   In the meantime, I think I've found the "missing link" from the simple way I did it in Photoshop 5 and 7 to a similar way in CS2 -- I surveyed all the Gradient Presets, and found one which lookied exactly like the oft-repeated black-to-white preset, but which the tool-tip revealed is actually a "levels" preset.  By selecting it, I was able to use the gradient tool to apply my levels change gradually across a selected area (or across the whole image if nothing is selected).  This way I avoid having to edit masks.
    But thanks for steering me on to a new way of thinking that I need to explore!
    Cordially, Oliver Dean

  • Query Designer - Formulas in Results Row

    Hi,
    Is it possible to have a formula based purely on values in the results row? e.g.
                              Col A      Col B           Col C   ColDl
    Results Row       4             5                 1          40%
    Where Col D is Col A as a percentage of the total. I can create a formula for individual rows but not for the results row where it just seems to sum individual percentages.
    Thanks

    Hi Gaurav,
    i have done what you have suggested:
    In query designer > Properties for a Key Figure > Calculations > Calculate Result As > Nothing Defined,
    I have set that, despite the rows are calculated as per formula defined in the key figure but the result field is not. The formula is only applied for the rows but not for the result. The result is olthough i have the setting you suggested a summation of that whole column and thats wrong.
    Can you or anybody else help.
    Thanks and regards,
    Murat

  • Formula at Transformation level

    Hi All,
    One formula has written at transformation level for the infoobject Zvendor. 
    Formula is as follows RIGHT( 10, REPLACE_FIRST( '2VEN', '0000', GN_VENDOR ) ).  As per my understanding Vendor number will take 10 digits and it is replacing with '0000' if the value is '2VEN'
    Can you please confirm whether my understanding is correct or not?
    Thanks in advance.

    What i understood is:
    It will replace the first occurance of 2VEN with 0000 and take first 10 digits of the resulting string.
    Edited by: Pravender on May 26, 2010 1:26 PM

  • Spreadsheet question: How to apply formula to entire row?

    I am updating cells which already contain formulas. Can I select the entire row, and apply an additional formula (i.e.: 1.5*) or do I have to do it individually for each cell (there are hundreds)? I need the original formulas to stay in place, and they vary.

    Hi Pamela,
    Welcome to Apple Discussions and the AppleWorks forum.
    (The following was begun before Niel's post, and completed, with a few breaks, some time after it. It addresses a shortcoming with the solution suggested above, so I haven't altered it beyond adding this paragraph.)
    I'm not certain as to exactly what you're requesting here. Do you mean you currently have the same formula in these cells (eg. =(A1-A2) ) and you want to change all of those formulas to (same eg. =1.5*(A1-A2) ). That's cetainly possible if the formulas are in contiguous cells (or in separater groups of contiguoous cells). For the example, select the first cell containing the formula and all the others contiguous to it. Make the change in the entry box, then press command-R to fill the changed formula to selected cells in the same row and to the right, then command-D to fill the formula to all selected cells below the row containing the edited cell.
    OTOH, if you want to make the change to separate (ie. non-contiguous) cells, or to cells which do not contain what's essentially the same formula (with only the cell references changed to reference a cell located in the same relative position), I don't see any way to do it directly within the spreadsheet.
    If the existing formulas are such that you can write a description of where to insert the change, it may be possible to make such a global change through an AppleScript, or through transferring the spreadsheet content to a word processing document, using Find/Change to make the revisions there, then transferr the result back to the spreadsheet (or more cautiously, to a new spreadsheet).
    An AppleScript is someone else's territory. Here's how it could be done using the word processor.
    For the example, I'll assume you want to change ALL formulas in the spreadsheet by adding the instruction to multiply the (result of the) current calculation by 1.5.
    • Open the spreadsheet.
    • Go Options > Display...
    • Check the box "Formulas", Click OK.
    • Select ALL of the cells containing data or a formula.
    • Copy.
    • Open a new word processing document.
    • Paste.
    • Press command-F to open the Find/Change dialogue.
    • Enter "=" in the Find box, press tab, enter "=1.5*" in the Change box (no quotes in either case).
    • Click Change All. OK the two alerts that follow. Close the Find/Change dialogue.
    • Press command-A to Select All. Copy.
    • Open a new spreadsheet document.
    • Paste.
    • Done.
    Limitation: This will work only if the amended formula will give the expected result. Consider the example above, =(A1-A2) with 2 in A1 and 1 in A2.
    As written, the original formula ( =(A1-A2) ) returns a result of "1", and the amended formula ( =1.5*(A1-A2) ) returns the expected result 1.5.
    But it's unlikely the original will have included the parentheses,as they're not necessary to a correct result.
    If the original is =A1-A2, the result is still 1, but the amended formula ( =1.5*A2-A1 ) will return the result "2", not 1.5.
    Revising the beginning of the altered formula to add an opening parenthesis is easy. The difficulty here is telling Find/Change (or AppleScript) how to add the matching closing parenthesis to fomulas but not to the contents of cells containing labels, other text, or nothing at all..
    *An alternate approach:* Rather than revising the existing spreadsheet's formulas, this method transfers the labels and results to a new section of the spreadsheet, multiplies the original results by 1.5, and displays the new result.
    For discussion purposes, I'll assume the current spreadsheet contains 25 columns (A..Y) and 100 rows (1..100) of data and labels.
    • Go Format > Document...
    • Change the default 40 cells wide to 52 (or enough to accomodate twice as many columns as you have containing data now).
    • Click OK
    • Select a cell to the right of the cells containing data in the current spreadsheet. (For the example, choose cell AA1)
    • Enter the following formula:
            =IF(ISTEXT(A1),A1,IF(ISBLANK(A1),"",A1*1.5))
    • Select the block of cells extending right and down from AA1 that matches the size of the original block (for the example, AA1..AY100).
    • Fill the formula Right (command-R) and Down (command-D).
    The formula will copy the text from cells containing text, keep cells blank ("") where the originals were blank, and enter the results, multiplied by 1.5, for cells where the originals contain a formula with a numerical result or a number.
    Limitation: The formula does not distinguish between an entered number and one generated by a formula contained in the referenced cell. All numeric values will be multiplied.
    Regards,
    Barry

  • Date not coming in proper format after applying formula in Update Rules

    Hi All,
    I have two time characteristics "Goods Issue date" and "Goods Return date" and One key figure "No. of days elapsed".
    The key figure "number of days elapsed" is being calculated by taking difference of "goods issue date" from "goods return date", but the format for that is not coming proper for example:-
    Goods Issue Date is 21.06.2006
    Goods Return Date is 22.08.2006
    According to formula No. of days elapsed shud be 62
    but it is coming as 04.03.0001.
    Please help as it is a urgent requirement.
    Much Appreciated,
    Sunil Morwal.

    Dear Sunil,
      Kindly check if creating 2 new KeyFigures (DATE) will be of help by assigning the said "two time characteristics" values.
      From these 2 new KYFs, apply your formula..
      Hope this helps..
      Thanks.
    Message was edited by: Arnold Padiernos

  • Formula using results of 2 reports

    Hello,
    New to Crystal Reports... I have 2 existing reports, and I want to create a report that calculates a metric, using the results of the 2 reports, linked by the grouping that I used in each.
    e.g.
    - Report A from table 1 counts all shipments by date, grouped by month
    - Report B from table 2 sums hours of network outage, grouped by month
    I want to calculate (sum of hours outage)/(running total of shipments), and display graphically by month
    Working with subreports, I have only been able to pass one single value to the main report, not all values by month to do the math
    I would imagine this is a pretty simple task, I have done this using other tools, but have not found a simple way in Crystal Reports yet.  Any help would be appreciated
    Thanks,

    Asha,
    Thanks, this is helpful.  But when I create the shared variables, I am still only passing a single value to the main report (the most recent value of the variable).  Each subreport contains formulas to calculate values I need and lists them against a date/time.  e.g.
    Subreport A calcuates outage hours, and shows what datetime the outage started:
    Hrs   DateTime
    Subreport B shows total shipments by datetime:
    CountShipments      DateTime
    Hrs and CountShipments are the shared variables. 
    I want to divide Sum(Hrs)/(CountShipments) and graph for each month.
    Any method of doing this that you are familiar with?

Maybe you are looking for

  • I have upgraded iTunes now it stops working after a few seconds.Help?

    i have upgraded iTunes now it stops working after a few seconds.Help?

  • Error when burning (error 4265)

    i have been wasting so many CDs trying to burn things in iTunes. this is on a PC but i dont seem to have any problems my mac. it keeps telling me: "The attempt to burn disks failed. An unknown error occured (4265)" does anyone have the same problem a

  • Can I install a SSD in my mid 2010 iMac

    Wondering if this can be done Also I have 4 ram slots with 2gb in two of them can I install two sticks of 4gb in the empty ones without impacting performance

  • Problem extracting NWDS SPS14 SAR file no JDTSetup.exe

    Hi All, I have NWDS 2.0.9 installed on my computer. I wanted to upgrade to NWDS 2.0.14 and downloaded  JIDE14_0-10002804.SAR file and extracted it using SAPCAR. In the extracted folder structure there is no JDTSetup.exe. Thus I cannot run this setup

  • Download BW Query results in HTML format

    On a daily basis, I need to get BW query results exported to an HTML extract file on the BW server.  The HTML file will then be transferred to a Windows server for use in a dashboard view by a third party developed portal.  The query has an input var