Calculated lines

Hi, I have got following question: I have got a scatter plot showing time on x-axis and the values on the y-axis. and I need to add 2 lines: a) the average of all the points shown and b) a control line, for which I need to calculate the average of the 2point
moving range of all points shown.
Example:
The graph shows following points: 5; 7; 8; 4; 4; 5
So I would need to add the average line = 5.5 over the whole period.
And I would need to be able to calculate the average moving range, ie the average of (2,1;4;0;1)
resulting from (abs(7-5); abs(8-7); etc etc) = 1,6 and multiply that with a constant c and add it to the average, so that the second line becomes 5,5 + c*1,6
over the whole period shown.
Any way this is doable?
Many thanks, mischa
(not a RS specialist, just asking as a project leader who got the info from the RS guy in my team that above is not feasible)

Hi miluc,
If I understand correctly, you want to display a Mean line that shows the average of all points, and display a Moving average line that shows the average of every two adjacent points in the scatter chart. If in this scenario, we can try to add two calculated
series to achieve the goal. For more details, please see:
Right-click the field to select ‘Add Calculated Series’ option in the Values pane.
Select Mean as the Formula.
Right-click the field to select ‘Add Calculated Series’ option in the Values pane.
Select Moving average as the Formula.
The following screenshot is for your reference:
Reference:
http://msdn.microsoft.com/en-us/library/dd207034.aspx
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Row Calculation Line Height Issue: Not Same Height as Column Lines

    Hi,
    I am using BI 4.1 SP4 with Microsoft SQL Server 2012.
    When building calculations, I have noticed that the height of the line (in the rows section) is not the same as the line in the columns section. It is slightly larger. By the third calculation, it becomes very noticeable. I know that I can adjust the height and make it bigger, but I can not make is smaller.
    Please let me know how I can resolve this unalignment issue in the crosstab:
    Thank you,
    Michael

    Hi Michael,
    I'm afraid I can't say. This appears to be an IE10 rendering issue, rather than an SAP issue. I did some further testing and I don't see the problem in IE11 or Chrome but it is very apparent in IE10. I've included a screenshot from IE11 and as you can see the table is not misaligned.
    Regards,
    Philip

  • Calculating line length in Java

    Hi all;
    I've been using LineBreakMeasurer & AttributedString to measure line lengths. However, I now need to take into account:
    Small Caps
    Scaling (making each character thinner/wider).
    Spacing (adding/subtracting space after each character).
    Hyphenation, where line breaks can occur at specific places within words.
    Is there a way to do this using Java? The two fundamental things I need to get is:
    How long is a passed in string.
    For a passed in string and length, how many characters of the string fits in that length.
    I can do this using LineBreakMeasurer & AttributedString and calling it character by character. But is there a better way?
    thanks - dave

    Hi, Have you had a look at the FontMetrics class? That might be an option.

  • Calculating line height

    Usually I specify a line height based on 120% or so, just as
    I would in publishing distinguish between, say, an 11 point font
    and 13 point line height leading. However, I am perplexed as to how
    the browsers do this by default. It is more than 100% yet less than
    120%. Does anyone know about this? Is it safer to leave the setting
    at default? I have got a tight layout...

    Paevo,
    > Usually I specify a line height based on 120% or so,
    just as I would in
    > publishing distinguish between, say, an 11 point font
    and 13 point line height
    > leading. However, I am perplexed as to how the browsers
    do this by default. It
    > is more than 100% yet less than 120%. Does anyone know
    about this? Is it safer
    > to leave the setting at default? I have got a tight
    layout...
    The CSS2.1 recommends that user agents (e.g. browsers) use "a
    used value
    for 'normal' between 1.0 to 1.2" (where 1.0 means 100%, and
    1.2 means
    120%), so there is some room for interpretation:
    http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height
    If you want to try to get your layout more consistent between
    browsers,
    so you can really tighten things up, then try using a "reset"
    stylesheet:
    http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
    On an unrelated note, you should use a relative a font size
    like 'em'
    instead of fixed point sizes so users can adjust the size to
    their own
    screen resolution and eyesight.
    HTH,
    Randy

  • AP Vendor Intrest line item display

    Hi
    can some one please help me how to find Vendor Interest Calculation line item wise.
    Am using t.code f.44 but it shows whole vendor details. i just want to see vendor intrest balance
    Rao

    Thanks for your reply,
    when i go through f.44 ,interest calculation type 4, list not generated .
    and one more thing can you please give me the clarification of Interest calculation without open item f.4a,calculation with out open item 4b when i run those transaction list not generated .
    please help me.
    Rao

  • Line item wise exchange rate differences in GR

    Dear All,
    Client does one GR in USD as document currency on a particular date and posted the transaction, while making the conversion to local currency INR system calculating the total line item values correctly as per the exchange rate maintained in the table but when we calculating line item wise amounts, it showing differences to the maintained rate.When i checked for the material master, price control maintained as V. Is tht when doing GR system recaluclating the values in material master and if it so how this much differences showing for each line items...
    Pls guide me on this issue...
    Regards,
    Balaji.c

    Dear All,
    Anybody can guide me on this issue, awaiting for ur reply at earliest...
    Regards,
    Balaji.c

  • When using autosequence, skip line if channel don't exists

    When using dynamic data, i don't always have the same data.  So when using vbs sequence I need to formulated that a calculation is only executed if the channel is present. If not, i need the calculation line to be skipped. How is this defined in a vbs sequence?

    Hello,
    you could use an if - then construct and test the existance of the channel with the cno() Function.
    Cno("Speed") will giv you the number of the speed channel - if it exists. Otherwise the function will return 0.
    If you do not know the channel name and would like to check for the number, use the variable globusedchn to find out how many channels are allocated at the moment.
    regards
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

  • Calculating difference of Tax in pricing procedure

    Gurus,
    Please provide me suggestions for the scenario below:
    There are two tax condition types ZX1 and ZX2 in my pricing procedure. ZX1 and ZX2 are the same tax type but coming into SAP from two different systems. One is from the e - commerce platform and other is from some tax system. We want to use one condition type as statistical and use for reporting purpose.
    What I basically need is to in someway calculate the difference between these two condition types and store value somewhere in the pricing. We will use that for reporting.
    1.  Source 1 Example (E-commerce) ---> ZTX1  $1.00
    2.  Source 2 Example (Vistex/Sabrix etc) ---->ZTX2  $2.00   (Statistical)
    Thanks,
    Manoj

    Dear Manoj,
    SAP has provided multiple Sub Total fields starting from KZWI1 to KZWI6 field. If you will assign any of sub total field from 1 to 6 to difference of condition type calculated line in pricing procedure, system will store in VBAP-KZWI* field.
    You can use the same for your reporting perspective.
    Regards,
    MJ.

  • Anchor all images within a document

    Hello everynbody,
    i am currently triing to write a script that loops all (not anchored) graphics within a document. I want to anchor the image because i want them to move along with the text.
    Here are the steps i took so far:
    1. Iterating through graphics using "myDocument.allGraphics"
    2. Check if "myGraphic.parent.parent.constructor.name" is Character or Page. If it is character the image is already anchored.
    3. Iterate through all text frames on the page of the current image and
    determine one frame that overlaps the Rectangle of the image.
    4. Determine the everage height of a line of the frame (Heigh of frame / number of lines)
    5. Determine the line number of the insertion point for the graphic (=iLine)
    6. Determine the average number of characters per line (=averageChars)
    7. Calculate the average width of a chracter (width if text frame / average number of chars per line)
    8. Calculate the number of characters for the indention (horicontal) of the graphic (=iChars)
    9. Insert graphic as follows:
    var myNewGraphic = matchingFrame.insertionPoints.item(iChars + iLines * averageChars).place(file, false);
    10. Delete the original graphic and it´s rectangle
    My problems are as follows:
    1. The insertion position of the image is never correct even though the calculated line number (iLines) and the calculated indention (iChars) is correct.
    2. After insertion of the image the text does not flow correctly around the contures of the image
    3. I dont know how to set the options for anchored objects as listed in (Objekt -> Verankertes Objekt -> Optionen IN GERMAN VERSION OF INDESIGN)
    I am using Windows XP SP3, i am working with Adobe InDesign CS3 and for scripting i am using JavaScript (for compatibility between MAC and WINDOWS).
    Thanks everybody. If the source code is needed i will provide it.

    Thomas,
    >1. The insertion position of the image is never correct
    You need to start at the end of the document and work your way to the beginning. This is to ensure that references to graphics and frames remain constant.
    >2./3. I dont know how to set the options for anchored objects as listed in (Objekt -> Verankertes Objekt -> Optionen IN GERMAN VERSION OF INDESIGN)
    All these are enumerations, so you should use the English names. The object-model viewer shows the terms you can use (see under anchorPosition, anchorObjectDefault, anchorObjectSettings, etc.).
    Peter

  • [solved]numbers from a text file as variables that I can do calcs on

    Hi, I'm a bit stuck on this.  If I try to assign a variable as the result of a command output that parses a text file, and then try and use that variable later on eg.  bc it doesn't work.  The latest error gives me
    (standard_in) 1: illegal character: ^M
    So for example if I try to use awk to extract line 26, which looks like this:
    50
    and assign it to a variable "POINTS":
    POINTS=$(cat blahblah.txt | awk "NR==26")
    echo $POINTS
    produces the output "50" as expected,
    but when I try and multiply the output by 2:
    NEWVALUE=$(echo "$POINTS * 2" | bc)
    echo $NEWVALUE
    Gives the illegal character error above.  Strangely, if I put
    POINTS=50
    above the bc calculation line, it all works properly.
    EDIT- FORGET IT
    I think it's DOS format text crappy crap problem.  Nevermind.
    Oh, and I'll mark this solved after I've had my cup of tea.  And after I've checked it really is solved of course...
    Last edited by darkbeanies (2012-08-26 15:08:09)

    yup, dos2unix fixed all problems.  Hoorah!

  • Controlling Totals in Report Calcs

    I am using Hyperion Intelligence Explorer v8.5 but have had the same question with earlier versions. In pivots, calculated columns sometimes calculate on totals, and sometimes totals summ the calculated line. For example, if column C is the ratio of column B / column A, sometimes adding totals gives me the ratio of the totals and sometimes I get the sum of the ratios. The answers can be very different. How does one control which way it will work?

    A computed column in the table that the pivot is deriving off of will give you a sum of ratios. To get a ratio of the sums, add the computed column on the pivot itself.

  • VA88 - Error list of settlement run displays irrelevant sales orders

    Hi All,
    This is a problem relating to transaction VA88 for settlement of sales orders into COPA. The error list of the settlement run is unnecessarily long since it also includes old, irrelevant sales orders that have no postings since the last VA88 run.
    'Old' sales orders without recent postings on them are considered in the settlement run despite having the indicator "check trans. data" switched on in the VA88 selection screen.
    What could be the reason???
    Ideally, system should ignore the irrelevant sales orders (those without any transactional postings since the last settlement) if we select the "check transactional data" option in the VA88 selection screen
    Any suggestions, thoughts, solutions would be highly appreciated.
    Regards,
    Soumya
    Edited by: Soumya Bhattacharya on Mar 17, 2009 10:42 AM

    Hi Soumya
    Please see below. Transaction data checks are not made in the following situations, even
    if the indicator is set:
    1.  The sender has a results analysis key, and an accrual calculation
        was already executed. In Customizing for accrual calculation, line
        item updates are not active for a version relevant for settlement.
    2.  The sender has a variance key and variances have already been
        determined.
    3.  The sender is a capital investment measure and has the technically
        completed status. Alternatively, the sender is an investment measur
        and the settlement was started with processing type 3.
    4.  The settlement rule was changed since the last settlement.
    5.  There is a valid distribution rule for fixed amounts.
    6.  Both a periodic distribution rule and an overall distribution rule
        have been defined for the settlement of costs with the same origin,
        and only the periodic distribution rule was used for the last
        settlement.
    Basically you should see if any of these scenarios exist in your case. Item no. 6 looks like the most probable cause. Please check them again.
    Hope this helps. Let me know.
    Karthik

  • If Negative, enter Zero

    Good morning all,
    I have run into a slight problem this morning and could use some help.
    I am running Acrobat X Pro on Windows 7.
    I need to run a calculation: Line G + line B - Line C. If negative, enter 0.
    I am not sure how to work this.
    Any thoughts?
    Steve

    Actually, I over complicated this.
    In the rows where the negative sign is present I need if statements for the other two columns to make the entry a negative number and then I will just add the columns.
    Or I need a way for the calculation to pick up on the negative sign and subtract those numbers instead of adding them.
    Steve

  • Parameters in Transformations file "data export"

    Hi,
    i'm trying to export to a txt file data from SAP BPC to a txt file, using the standard package (Export Transactional Data).
    I have several issues. Firstly, it seems like the dataexport generates a lot of lines containing all the "PARENT" calculations. So my file is perpaps only 30 lines on basemember level, but the final flatfile is perhaps 3.000 lines due to all the calculated lines (on parents level).
    Is there any way to "disable" all these parent calculated lines in the export ?
    Also i've tried finding some examples on transformation files for dataexport, but can not find any.
    Does anyone know which parameters I can use in the *option section of the transformation file ?
    Thank you,
    Joergen Dalby

    If you can access the other machine like a share folder then provide the same path in physical schema like \\my_other_pc_on_shared\new_folder
    If you cannot access like that then create one agent on that machine which can access the path and execute your project using the agent.
    Thanks
    Bhabani
    http://bhabaniranjan.com/

  • AP Invoice force no discount

    Hello again,
    We are sending AP Invoices to SAP using the DI API but SAP is putting in a discount % and value on the invoice totals. Is there a way to force SAP to not use the discount % and only accept the values passed to it?
    Cheers
    Peter de Klerk

    Hi,
    You may assign value to both unit price and price with the same value.  That will ensure calculated line total no discount.
    Thanks,
    Gordon

Maybe you are looking for

  • Help- Connecting Macbook Pro 13" to TV with S video only

    Hi guys, So I am trying to connect my Macbook Pro 13" 2009 model to my Tv at home so I can watch movies. My Tv is a Phillips Plasma and only has a S video and audio headset input available (no hdmi). My Macbook has a mini displayport input. I went in

  • Recording from a camcorder directly to a MacBook harddrive - Possible?

    Hi, I'm trying to find a way to record performances of a show I'm directing onto my MacBook harddrive directly. After looking at options, like recording to DVDs, etc., it seems that the only way I can record something that will be a little over an ho

  • New Editor, no breadcrumb

    Hi, the old BC editor had this nice breadcrumb at the bottom to show all tags, a text is wrapped into. One could simply click the "remove tag" link right to the breadcrumb to get rid of redundant markup (p > p > strong > font > font). Is there any si

  • Help with blank folio builder panel in InDesign CS6?

    Hello. I am having the same peoblem that was discussed on February 7th regarding a blank folio builder screen. Mine looks exactly like the image posted during that thread (i.e., no actionable items in the panel... not even hints just empty. This occu

  • QuickQuery on ADF Tree Table

    I have a Applications TreeTable and I want to implement QuickQuery on it.. but filtering is not happening on Child VO. is this possible to implement QuickQuery on Tree Table? if so please provide me some inputs. JDev Version : 11.1.1.6.0. Thanks, Swa