Display moving average in XY Chart

Hello Everyone,
Im trying to produce an XY Chart for Time vs Pressure.
What I would like to do is also plot a moving average on the Chart. Can anyone suggest an example on how to do this?
Thanks

Hello David,
at the moment I only find a XY Graph in my control palette, but no big difference:
You can display more than one plot by building a cluster of plots (see the help window for the XY Graph). So you have to build two plots (pressure over time and average over time) and join them with a Build Cluster. Wire that to the XY-terminal. That's it.
For calculating the moving average: build an array of your measurement values and get the last x elements. Calc the average of those elements. If your measurement runs in a loop, you can use shift registers instead of building an array (depends on how many elements you want to include in your average).
Best regards,
GerdW
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Moving Average Price Tolerance Report

    Is there any standard SAP report that can display moving average price variances?  I want to be able to see the percent change in the moving average price after each time that it changes.
    The report S_P00_07000139 displays the old moving average price and the new one, but there is no field for variance.  I know that OMR6 sets the tolerance keys to company codes, but is there any record of the VP key tolerance violations?
    The goal is to be able to see all of the materials that have a moving average price that changed by more than 10% from its last price.
    Thanks

    Hello, Uuklyph,
    if you are not satisfied with  S_P00_07000139l, the easiest way would be to create a query (tx SQ01/02/03) over table MSEG "Document Segment: Material", with custom formula for MAP change, calculating with field LBKUM "Total valuated stock before the posting" and SALK3 "Value of total valuated stock before the posting".
    Kind Regards
    TomT

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • I need to chart a standard deviation of a moving average in Numbers

    In order to complete my statistical analysis of a large ammount of performance data- I was to graph a +/- 2 standard deviation of a moving average AS A SHADED region on my charts.  I tried to do this today for Four hours.  HELP!  PLEASE and thank you SO Much! 

    You stated:
    I have the above charted with the $ values of gains
    BUT IT LOOKS LIKE THIS. "
    implying it is not correct.  Since I don't understand what you are trying to do in general terms I don't know what the problem is.
    Can you post some of the data (at least the set you are showing) so we have something to work with?
    I made a graph like this:
    But since I don't really understand what you want I don't know if this is correct or not.
    Wayne

  • Display average in Column chart retreieving the data from Filters

    Hello Experts,
    I have filters and Bar chart as a combination. I would like to display the average of the source data on my bar chart based on the selection using filters. Is this possible? if yes, how??
    Thanks in advance
    Regards,
    Santosh

    Hi,
    Please sent me if you have any test data to parvathaneni.satish at gmail
    I can do it and sent it to acrosss...
    This is a kind of easy things...
    FYI :please refer to sample in xcelsius which will give you a better idea....

  • Moving Average in a Report Section

    Hi there,
    I am displaying a measure in a chart that has three data points. The measure is 4 day moving average of a metric. Let's say my query brings back the last 6 days, which enables me to calculate the 4 day moving average for days 4, 5, and 6.
    I use the Previous() function to calculate the moving average:
    =(metric + Previous(metric) + Previous(Previous(metric)) + Previous(Previous(Previous(metric)))) / 4
    I don't want to show days 1, 2, and 3, so I filter these out of the chart and wrap a NoFilter() around the moving average. Everything is good so far.
    The problem arises when I section on a dimension. I can't seem to get the correct values unless I display all 6 data points in each section. NoFilter() doesn't seem to work.
    Has anyone run into this before? Does there exist a solution for this?
    Any help would be greatly appreciated.
    Thanks,
    Allan

    I figured it out:
    NoFilter([[4wkMvAvgMeasure]]) ForEach ([[day]]) In Section
    Thanks,
    Allan

  • Moving Average Price for Sales stock and Project stock of a material

    Hiya Gurus,
                     I am developing a report to display inventory details. My requirement is that I have to display the Moving average price of a material for all Valuation type. I also need to display the Moving average price if a material has got Project stock or Sales stock.
                     In MBEW table I can get the Valuation type and its Moving average price, but how can I find the moving average price for the same material if it has got Sales stock and project stock. Please let me know the table and field where I could get the relevant data.
                    Kindly help me on this, it would be deeply appreciated.
    Cheers,
    ZIa

    Hi
    can you look at tables
    EBEW                             Sales Order Stock Valuation
    QBEW                             Project Stock Valuation
    Nat

  • Numbers 3.1 restricting the period for moving average trend lines

    Numbers 3.1 is restricting the period I can specify for a moving average trend line for a scatter plot series. The max is 6. This limitation was not present in the previous version of Numbers.
    Charts imported from the previous version retain larger periods, but there is no way I can see to specify periods >6 for any new series. Is there a way to allow a period >6? That is clearly necessary for many applications.
    Thanks.

    Hi Bill,
    Numbers 3.1
    If you want a 14 day moving average over the prior 14 days, the formula in C10 is
    =AVERAGE(B2:B15) (and Fill Down)
    The formula will eventually run out of cells. Hence the red error triangles.
    Plotting columns A, B and C:
    X axis is Day (column A)
    Blue circles and blue line are Actual Y (column B and as expected, they jump around).
    Black circles and black line are calculated moving averages on a 14 day period (column C)
    Red line is Numbers Trendline (Moving Average, Period 6). How it predicts into the future (Moving Average over 6 days) I have no idea.
    I would more trust a calculated moving average, because I know what it is calculating.
    Regards,
    Ian.

  • Problem with moving average

    I have to create a report which displays rolling average of revenue.
    The report contains two columns week and avg revenue. I have to display only ten weeks from the current week.
    For each week the revenue should be calculated as follows;
    weeks     actual revenue     Avg revenue
    1     10          10     
    2     20          (10+20)/2
    3     30          (10+20+30)/3     
    4     40          (10+20+30+40)/4
    5     50          (20+30+40+50)/4
    6     60          (30+40+50+60)/4
    (current week-10 weeks)
    current week
    I have used Mavg(actual revenue, 4) to calculate avg revenue.
    I am getting the correct values. However if I apply a filter say weeks between current week and (current week-10 weeks), I am facing a problem.
    My (current week-10 weeks) is now showing avg revenue as 10 which is my actual revenue amount.
    But i would like to show the revnue amount as an avgerage of (current week-10 weeks) and previous three weeks.
    The filter to limit the number of weeks is applied before calculating the moving average. Is there anyway to calculate the moving average first and then apply the week filter to report.
    Pls help me solving this.
    Thanks

    Do this:
    Have the measure as :
    case when Periods."Weekdate" > TIMESTAMPADD(SQL_TSI_WEEK, -10 , CURRENT_DATE) then MAVG ("Sales Measures".Units, 4) else 999999999 end
    And then apply filter on the above measure column as :
    Case when Periods.Weekdate > TIMESTAM... ' is not equal to / is not in 999999999
    Let us know how it goes.
    PS : To prevent runaway query, you may want filter it further by Periods."Weekdate" > TIMESTAMPADD(SQL_TSI_WEEK, -15 , CURRENT_DATE)

  • Change Moveing average price in MIGO Goods Reciept through user exit

    Hi,
    i need to change the moving average price in the MIGO transaction  (Goods Issue) through user exit can any one help me with user exit.

    Hi,
    Check these Enhancemnts...
    Exit Name           Description
    V02V0001            Sales area determination for stock transport order
    V02V0002            User exit for storage location determination
    V02V0003            User exit for gate + matl staging area determination (headr)
    V02V0004            User Exit for Staging Area Determination (Item)
    V50PSTAT            Delivery: Item Status Calculation
    V50Q0001            Delivery Monitor: User Exits for Filling Display Fields
    V50R0001            Collective processing for delivery creation
    V50R0002            Collective processing for delivery creation
    V50R0004            Calculation of Stock for POs for Shipping Due Date List
    V50S0001            User Exits for Delivery Processing
    V53C0001            Rough workload calculation in time per item
    V53C0002            W&S: RWE enhancement - shipping material type/time slot
    V53W0001            User exits for creating picking waves
    VMDE0001            Shipping Interface: Error Handling - Inbound IDoc
    VMDE0002            Shipping Interface: Message PICKSD (Picking, Outbound)
    VMDE0003            Shipping Interface: Message SDPICK (Picking, Inbound)
    VMDE0004            Shipping Interface: Message SDPACK (Packing, Inbound)
    Badi Name            Description
    DELIVERY_ADDR_SAP    Determine Time-Dependent Delivery Address in Delivery
    DELIVERY_PUBLISH     Returns BAdI Implementation: Automatic GR Posting T 2
    DELIVERY_PUBLISH     Updating of Delivery in Purchase Order
    DELIVERY_PUBLISH     AIP: Delivery Confirmation for Sales Order
    Regards
    Raghu

  • Moving Average price issue

    Hello Experts,
    My client one Semi Finished material maintained Price Control as S (Standard) with 13.5 and accounting documents posted with 13.5 only with standard price no issues and working fine. Now the issue is MAP (Moving Average Price) updated for the same Semi Finished material with 4860, I don't know how this figure has arraived. when I check in material master records no one updated manually. Now my client's finance controller is asking how that figure (4860) arrived ?.
    I have checked in MSEG table and it updated the same 4860 only but material document posted with standard price only. I couldn't figure out how system arrived this amount (4860) ?,
    it would be great helpful if you can through some light on this issue.

    Dear Srinivasa,
    Kindly check follwing things
    1) Whether the material has got any goods receipt with higher value.
    2) Whether the Future price is maintained for the material  in Material master - Accounting view,with higher value and its validity
    3) Check the changes happened in past related to MAP, in Material master MM03-> Display changes.
    With regards,
    Ajay Bhalekar

  • Stock of material and moving average price for each valuation type

    Hi
    Is anybody aware of any standard report which will show the stock of material and moving average price of the material for each valuation type.
    M5BL is one report but would like to check if there is any other report.
    Regards
    Vaibhav Mahajan

    Hi,
    Check MB52, select 'Display batch stock' option.
    Batch is nothing but your valuation type.
    You can see those details there.
    Regards,
    Piyush

  • How do I add moving averages to my time series graph is there a function on numbers on tr iMac?

    I've created a time series graph on numbers on my iMac but I need to add moving averages. Is there a function an if so where is it and if not is there a way to get around it

    Badunit,
    Here is an example plot, data sorted from most recent data at top of the table...
    You can see the moving average (of 20) is plotted from right to left.
    The Moving Average calculation is now wrong, and should have been calculated and presented from oldest to most recent.
    Here is the same data, with table sorted from oldest data at the top of the table.
    The moving average is also plotted from right to left, and shows the correct Moving Average for the most recent data.
    That is, it is calculated from oldest to most recent, with the last Moving Average data point plotted on "todays" date.
    What I want to see is my table displayed from most recent at the top (the top table), and moving average calculated and displayed as per the bottom graph.
    Edit: So, think about this some more,
    I need an option to tell Numbers to do the Moving Average calculation from the bottom of the table up, not from the top of the table down.

  • Change valuation method from moving average to FIFO

    We have incorrectly given valuation method for our raw materials to moving average instead of FIFO. Now, we have a lot of transactions and cannot change the method after a transaction is done for any item. I want to know if this solution will work:
    1. create new database with item and business master data, chart of accounts, item groups as before
    2. change valuation method of all items
    3. Import GRPO, Excise and A/P invoices from old database
    Does step 3 create its own JEs?? If it does, then my problem will be solved.

    Hi Krishna,
    this is the SAP Business One Forum in German. Please post your threads in English to the forum here:
    SAP Business One Application
    All the best,
    kerstin

  • Import material moving average price is showing negitive.

    Dear GURUS
    I have aproblem in Import material moving average price problem
    My user put the amount 10000 EUROS instead of 10000 INR in P.O ,
    I am getting the below mentioned  error.
    Moving average price for material is negative: 2428014263 1100 SPR_IMP
    Message no. M8783
    Diagnosis
         This item would create a stock value posting which would result in a
         negative moving average price for the material.
         Note:
         The category of this message can be changed in Customizing for Invoice
         Verification. This means that you can receive a message as an error
         message even though it is defined as a warning message in the standard
         system.
         The following documentation deals with the case applicable to the
         standard system only.
    System Response
    The system does not allow a negative moving average price.
    cedure
    Check your entry in the field "Amount" and correct it if necessary.
    If your entry is correct, check the following for the material
    o   the stock value
         (Environment -> Master data info -> Display material)
    o   the posting history
         (Environment -> Line items -> For material).
    It might be necessary to cancel past postings (for example, incorrectly
    valuated goods receipts or incorrect price changes), before you can
    carry out your posting.
    If you wish to carry out a price change, the total stock of the material
    may be negative. A price cannot be changed if the stock is negative.
    Regards
    srinivas

    Dear,
    Please refer the below SAP notes
    SAP Note 356757-MR01, MR1M, MIRO: M8783 when posting invoices
    SAP Note 753286 - Moving average price becomes very small
    Regards,
    Gopala.S

Maybe you are looking for