Average KW's value

Hello BW experts ,
We have a requirement as below ,
The report should run for Last 12 months excluding the current month only.
It means the user will enter 012.2006 then data for 012.2005 to 011.2006 should be displayed in the report.
I have done this by means of infosets in query  over the Fiscal Year / period.
Now I want to calculate the Average value of KW 's over a period of 12 months.
We have Fiscal Year/Period and KW's per month.
<b>Fiscal Year /Period</b>  012.2005 ,  001.2006 ,002.2006 ......011.2006 ( 12 months )
<b>KW's </b>                     100          , 200 ,        400................900        ( 12 values )
Formula for 
Avg KW's   
per month            = ( 100 + 200 400.....+900 ) /12 = for period 012.2005 to 011.2006 each month this value should be same .
So,
Avg Kw's
per month           =      Say 123 ( for 012.2005 )  ,
                                 123 ( for 001.2006 ),123,123......till 12 month.
How to get this figure ?
Thanks in Advance ,
Amol Kulkarni .

Soory Venkat ,
It's offsets.
Please reply how to get Average .
I have created Offsets for Fiscal Year Period in Rows from 0 to -11 .
Then I drag drop the key figure KW's in the Columns.
I create a structrue and then for Each Fiscal Year /period 0 to -11 offsets ,
I drag drop the same key figure KW's.
So I have 12 selections for KWs for each month.
Then I created another formula as Average KW's and then added these 12 selections and divide by 12.
But when I check the result I get following reply ,
suppose I have
100 , 200 ,  300 , 400 , 500 .....KWs value over the last 12 months ,
then the <b>Avg KWs</b> gives me the result as 100/12 for 011.2005 , 200/12 for 001.2006 , 300/12 for 003.2006 ...till 12 months.
It seems the formula created by me is dividing each KW's by 12 and not making the sum of KW's first and then dividing by 12.
Amol.

Similar Messages

  • How can I use a webcam to feed live values (or even better, an average of said values over time) into a subVI?

    The values will be read from a digital measurement device, so there shouldn't be much of a problem in recognizing the fonts, I hope.
    Ideally, it'd function like this: Webcam is trained on device, and without interaction from the user, labview processes the current data every 30 seconds, converts it to a string, and averages 30-second values over a period of 5 minutes. The average is then given to a VI that would normally poll the user for a value every 5 minutes. I'm trying to close the loop on a control system, and think this is the best way to do it.

    If I understand this correctly, you would like to take a picture of a screen every 30 seconds and read some text on that screen. You can do that using the NI Vision Development Module's Optical Character Recognition function palette. This will allow you to create a set of images of each character that you expect to read. You can then train the software to assositate an image of that character with the actual digital character. In this way, the software will be able to read the text. You can read more about this concept in the NI Vision Concepts Help 2013 manual.
    Is there any other way to transfer the information from the first computer to the second computer other than using a camera to read the text off a screen? That seems like a strange way to transfer data, but it's possible that you don't have access to the code on the first computer and you can only access it from the front panel. Is that the situation that you are in?
    Take care,
    Jeremy P.
    Applications Engineer
    National Instruments

  • Exception Aggregation (Average of all values 0)  -  Non cumulative KF

    Hi Experts,
    I am using the Exception Aggregation (Average of all values <> 0) on a Non Cumulative KF. Most of the times i am not getting the desired results but some times it gives me the desired result.
    my doubt is whether we can use  Exception Aggregation on Non cumulatives?????
    Thanks for any help
    boobal

    Hi,
    Non-cumulative valuesare those key figures that are measured in relation to a period in time; that is to say they cannot be meaningfully cumulated over time. Non-cumulative values are summarized over time using so-called exception aggregation.
    Example:stock quantities/-values, number of employees, account balances, etc.
    Please check this document:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d61b1e95-0501-0010-dfbe-a03970712ef1
    Hope this helps.
    Regards,
    Mona
    Edited by: Mona Kapur on Jan 17, 2008 10:45 AM

  • How I manually calculate the Average Valuated Stock Value like in MC.3

    In the R/3 transaction MC.3  the  "Average Valuated Stock Value" help window shows a formula to calculate it.
    AVSV = ( begining stock value + n stock value at months end ) / ( n + 1 )
    What is the meaning of the N?. Where is this value come from.?
    I'd really appreciate any help.

    Hi
    N is the number of periods. The calculation with an example is as follows:
    Op. Stock Value on 1.12.2006: 40
    Cl. Stock Value on 31.12.2006: 80
    Op. Stock Value on 1.1.2007: 80
    Cl. Stock Value on 31.1.2007: 120
    The above can be viewed in MB5B
    In MC.3, if you choose the period 12.2006 to 01.2007, the calculations are as follows:
    AVSV for 12.2006: {40+(1*80)}/2 = 60  [N = 1 period]
    AVSV for 01.2007: {80+(1*120)}/2 = 100  [N = 1 Period]
    Total AVSV for 12.2006 to 01.2007: {40+(2*120)}/3 = 93.33 [N = 2 Periods]
    Hope this clarifies.
    Thanks

  • RE:calculated Average Valuated Stock Value

    Hi ALL,
    how to calculated Average Valuated Stock Value  logic (The sum of the daily stock value for the time frame of the analysis divided by the number of days) please guide me.
    regards,
    ravi

    Please ...........................
    guide me.......................
    how to created formula for this logic
    (The sum of the daily stock value for the time frame of the analysis divided by the number of days)
    Regards,
    ravi

  • Calculate Results As Average of Detailed Values That Are Not Zero... with hiearchies doesn't work

    Hi all,
    For the key figures, the option of "Calculate Results As Average of Detailed Values That Are Not Zero, Null, or Error" works fine for characteristics drilldown without hierarchies, but with hierarchies it simply doesn't work; instead of calculate the overall result as average, the system calculates it as SUM. It works like the option "Nothing Defined" where the results provided by the analytic engine are displayed. No local calculation takes place.
    How can I do to display the overall result of hierarchical drilldown of a characteristic as an average?
    Many thanks in advance!
    Abraham

    It is usually best to just keep it as simple as possible.  What do you think the code in the OR Array Elements does?  I imagine it is just a simple FOR loop with a variable to keep the latest OR.  So I would do what GerdW just showed with the FOR loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Average of all values between (first above and last above) a threshold value.

    Currently I have a VI which I programmed a year or more ago, which grabs any value out of a data set that is above a threshold value. This is used for capturing the average of all values over a threshold when there is one peak of values that go above that threshold. However, when there are two or more peaks that go above this threshold, only the values above that value are averaged, so the end result is the average of two or more averages.
    What I need is for every value that occurs after the threshold is reached and before the threshold is dropped below for the last time. Picturing a set of data whose graph looks like the letter "M," for example with the threshold being halfway up the M, I want to show the average of (the first hump, plus the dip below the humps, plus the last hump) but what I'm getting now is the average of (the first hump, plus the last hump). What I get now cuts out the data between the two peaks.
    Any assistance would of course be appreciated.
    Solved!
    Go to Solution.
    Attachments:
    AveAboveThresholdAll.vi ‏15 KB

    Actually I think that Tims solution has a little difference to the stated problem that both limits should be above a threshold value. Since the second array is inverted the rounding should be not towards +Infinity but towards -Infinity in order to really only go up to the last element that is above the threshold. The code as made by Tim takes one sample more, which could or couldn't have any significance.
    Nevermind, I take that back.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • No correct exception when using "average of all values"

    Hello all,
    I have created a query with different duration days as key figures. The result row is displayed for the main characteristic and in the key figures I have select "Average of all values".
    The avergae value is calculated correctly in the result row at the end, but the exception is just take sums of the days into consideration, not the average values. Some values are red because there sum would be red, but just the avergae is displayed.
    Is there a way how I can apply exceptions also on avergae values?
    Th eBW release is 3.5.
    Any help would be great.
    Best regards,
    Stefan from Munich/Germany

    Instead of creating a Formula Key Figure, create a Calculated Key Figure .
    In that from the Enhance option select Exception Aggregation as Average of all values.
    Now use this Calculated Key figure in  your query and for creating exception.

  • Exception aggregation 'Average of all values'

    Hi,
    What is Exception aggregation 'Average of all values' wrt a reference characteristic. an how do I use it in Bex?
    -Simmi

    hi,
    it determines how the key figure is aggregated in the BEx in relation to the exception characteristic, in your case it's averaged for all values.
    another case sample maybe you need to report stock, which should not accumulated, but the last value, then you can choose 'last value', with reference chacarteristic to certain time characteristic.
    you may also use it for 'calculated key figure' in BEx to get average value.
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/f2dc37f0f12313e10000009b38f8cf/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/6f/56853c08c7aa11e10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/9d/76563cc368b60fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/e0173f5ff48443e10000000a114084/content.htm

  • BEx calculation for 'average sales order value'

    Hi all,
    Can someone tell me how to use BEx query function to compute the <b>'average sales order values' by month</b>? Thank you.
    J.

    Hi John,
         You've two characteristics in the rows, right? Calendar Month and Order Type.
    Try the option Calculate Result as Average of All Values and
    Calculate Single Value as Nothing Defined? See if this works.
    Or else in Modelling,
    In the Info Object Create/Change screen, you can specify an Exception Aggregation based on
    <b>Aggregate Reference Characteristic</b> Calendar Month.
    I think there's an option for Average Values in the <b>Exception Aggregation</b> tab.
    For more Information,
    http://help.sap.com/saphelp_nw04/helpdata/en/75/21054da1392649948e5b94e4fc4bce/content.htm
    Hope this helps.
    Regards
    Hari
    Message was edited by: Hari Krishnan K

  • Exception Aggregation (Average) displaying incorrect values after EHP1 Upgr

    Hi All,
    Exception Aggregation (Average) displaying incorrect values after EHP1 Upgrade in our BW system
    We have recently upgraded the system to EHP1. After the upgrade some of the queries where we are using Exception Aggregation (Average) started giving the incorrect values.
    Eg. We are displaying three Key Figures KF1, KF2 and KF3 (=KF1 %A KF2) against Store Hierarchy. In KF3 we are using Exception Aggregation (Average) on a characteristic 0PLANT.
    There are 14 rows against 0PLANT and out of those 2 rows are blank for KF1, so for KF3. When it is calculating the average of these key figures its dividing the total value by 12 instead of 14 which is not correct in our case. Earlier it was dividing the total by 14.       
    So in this case 'Average' and "Average of all values <>0" are behaving the same way.
    Kindly provide some inputs on this.
    Best Regards,
    Sachin Verma
    +44 7506740018

    Hi,
    Thanks for viewing the thread. And happy to let you know that the issue was resolved.
    The solution was:
    Two formulas (local) were created, one including the formula variable with replacement path for ZD1, with exception aggregation on ZD1, and the other with formula variable with replacement path for ZD2, with exception aggregation on ZD2. Both these formulas are hidden.
    Another formula (local) was created for u2018time takenu2019 = formula with ZD1 u2013 formula with ZD2, with exception aggregation total on u2018ZDOCNOu2019.
    For the second instance, when one requires exception aggregation on records that has multiple values for keys, a nesting of formulas can be done displaying only the ones required.
    For e.g. a formula with exception aggregation on say characteristic u2018item no.u2019 can be hidden, and included in another formula for exception aggregation on characteristic u2018document no.u2019. This is a typical case where one can achieve calculation before aggregation for a calculated key figure, formula or a counter.
    Hope it might help someone, and saves time and effort for a similar issue posted.
    Also would like to keep this thread open for exploring better solutions.   
    Regards,
    Vijay

  • Question about the vi : Average Last Five Values

    Hello,
    I found the vi to make the average of the last five values here : https://decibel.ni.com/content/docs/DOC-4013
    But i think that it is not really the average of the last five values...
    The problem in my opinion is that the shift register on the left should contain only 4 and not 5 elements.
    Can someone check it ?
    Thanks to answer

    That looks like the correct fix to me.  The previous version was definitely wrong.
    I wanted to add a comment to that article in the community zone, but couldn't find a way to do it event though I was logged in.
    There is a comment that the results are in valid for the first 4 iterations.  The way to fix that is to divide by the number of iteration that have occurred using the In range and coerce function to limit it to 5.
    Attachments:
    Example_VI_BD.png ‏15 KB

  • How do you find an average of peak values in a chart?

    I would ideally like to display a value alongside a chart that represents the average value of every three peaks.  Right now I am only able to display a live value for the peaks. Is this possible?

    Are you using the peak detector VI linked below? Using the index of peak locations and their corresponding values, you could try using a loop to build an array of the peak locations then averaging every 3 indexes of the array.
    Peak Detector VI http://zone.ni.com/reference/en-XX/help/371361H-01/lvanls/peak_detector/
    Regards,
    Isaac S.
    Applications Engineer
    National Instruments

  • Calculating average of selected values

    Hello all,
    I would like to put the following question in relation to bex queries:
    We have a condition in our query to select the 5 top values and the 5 bottom ones. But there are 33 values. When we calculate the average value (result of the query), we can do it in a way the query displays  the average of those 10 values displayed. But innerly the average value stored is the average of the 33 values (all) and in SEM that's the value we see (not the average of the 10 values selected.)
    And now, the question:
    Is there a possibility to obtain from SEM the average of the 10 values displayed?
    Thank you very much,
    Carlos Hinestrosa

    Hi Nick,
    Petri Net Method
    Researchers of Petri Nets from 1962 to about 1990 developed the main ideas (including the basic graphics notations) of the “thought process” I used. One of the literature I read on Petri Nets is the textbook (except for the chapters on Grafcet),
    David and Alla (1992). Petri Nets and Grafcet: Tools for Modeling Discrete Event Systems. New York: Prentice Hall.
    If you want to research the topic on your own, there is a bibliography on Petri Nets.
    Missed Requirement
    It occurred to me that we missed the possibility that a user can select a non-zero value given that a non-zero value is currently selected (T14 – T19) for each of the six fields. Here is the diagram with this requirement.
    Since we agree on the general interpretation of the diagram, I am combining several graphics to create a new, more concise diagram. Of course, this is a cryptic diagram to someone who do not agree with the earlier diagram.
    Additional Requirement
    We can also include the cumulative sum of the non-zero values selected by the user (P8), similar to the cumulative number of non-zero values selected (P6). In this case, a document-level variable for the cumulative sum should be defined, and updated along with counter. When the computation for the average is needed, the cumulative sum is already available and the average is computed by dividing the cumulative sum by the number of non-zero values selectes: m(P8) / m(P6) .
    If we do this, we would have done something very interesting: there are no for-loops in the code.
    Regards,
    John

  • MDX - Average of months values for quarters, semesters and years

    Hello,
    I would like to aggregate month values in MDX query to get quarter, semester and year ones.
    The problem is that "SUM" is used by default, but I want the "average" for quarter, semester and year values.
    Example (AVG columns are expected, not SUM ones) :
    Year
    Month
    Value
    sum Q
    avg Q
    sum S
    avg S
    sum Y
    avg Y
    2011
    1
    130,71
    416,58
    138,86
    843,66
    140,61
    1499,33
    136,30
    2011
    2
    146,71
    2011
    3
    139,15
    2011
    4
    133,51
    427,08
    142,36
    2011
    5
    147,14
    2011
    6
    146,43
    2011
    7
    128,58
    373,59
    124,53
    655,67
    131,13
    2011
    8
    109,98
    2011
    9
    135,03
    2011
    10
    135,83
    282,09
    141,04
    2011
    11
    146,27
    2011
    12
    NULL
    Thanks for help.

    Hi Unkedeuxke,
    As Ken said, we do not have a measure Average aggregation type in SQL Server Analysis Services. We do have AverageOfChildren (or Average over time), however it is semi-additive and works only along a Time dimension. Fortunately, we have Sum and Count, and
    since Average = Sum / Count, we can build our own Average aggregation when we need one. Here is a blog about how to create a average measure, please refer to the link below.
    Average Aggregation in Analysis Services
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • How to handle error when in middle of processing of data, target DB goes down

    I have large amounts of data ( for e.g.- 1000 records). It is writing to a DB target table. At the middle of processing of 500 th record, target DB goes down. What will happen to the data after 500?? In which table will the data after 500 th record b

  • InputVerifier and JOptionPane help please

    I am trying to create an application and require to validate input fields. I have successfully written the code to use the InputVerifier class to validate the input but want to use a JOptionPane dialog to notify errors. This doesn't seem to work as t

  • Can OS 9 be installed on a computer running OS 10.6?

    My niece has a powerbook running snow leopard. She was wondering if it would be possible to install and run any version of OS 9 on the machine so that she can run some old programs. I said I didn't think so, but that I would ask the experts. Does any

  • LR making random folders and breaking up folders into other names

    I have something very odd happening in Lightroom. Last week I opened a folder I had imported the day before and all the images had strange names and had turned into dots and other things. I deleted the weirdness and re-imported the files. This mornin

  • How to Loop thru a RFC model

    how to Loop thru the RFC model for(int i=0;i<wdContext.nodeEx_Org_Units().size();i++){ //how to get the attribute each and every columns   //mgr.reportSuccess("id" +nodeEx_Org_Units().getId()); Message was edited by:         yzme yzme