How to create running total in Analysis

Hi Experts,
How can I create a running total in Analysis?
below is the scenario:
Account - - - - Quantity
ACCT1 2
ACCT2 4
ACCT3 6
ACCT4 8
I need to get the total count for Quantity Column and the total count should be display in the Analysis (20 should be display)
Thanks,

HI,
We have a option in the pivot view properties to display the sum/total at the end/first....You can Use that.Else you can aslso use the Running aggregate functions in the fx tab.
Edit--->pivot view properties-->columns--->summation symbol is there--->Place the total as you like.
mark if helpful/correct...
thanks,
prassu

Similar Messages

  • Item Transaction History Report - Calculation for creating 'Running Total'

    Hello
    Using Oracle Discoverer, we have written a report that pulls back all Inventory Transactions (by item number). This report lists both transactions IN (e.g. receipts into the store) and OUT (e.g. issues out from the store).
    Our customer would like an additional column, to represent 'Running Total', to be added to the report. This column needs to capture the running 'On Hand Quantity' for the associated Item, as each transaction (both transactions IN and OUT of store) is displayed.
    For example, if the initial/first transaction for an item was a Receipt of 500, then this column (on the first line) should display 500. If the second transaction for the item was an issue of 15, then this column (on the second line) should display 485. If the third transaction was for an issue of 50, then this column (on the third line) should display 435. If the fourth transaction was for a receipt of 20, then this column (on the fourth line) should display 455 etc etc
    I'm not sure how I'd write a calculation to cater for this (within discoverer) - do you know if this is achievable? Any help would be much appreciated. This would be easy enough to do in Excel, but I'm a bit of a novice when it comes to discoverer(!)
    Many thanks
    Ross

    Hi,
    You can generally do this type of calculation using analytic functions. You would partition by the item number and order by the transaction date in the analytic function. You can use SUM function (with an order by) to get a running total of a column in the report. You can SUM a calculation containing a CASE statement which changes the OUT transactions to a negative number. The SUM function will start at zero, so you then can use FIRST_VALUE function to get the first value for the item which you could then add to the totals.
    Rod West

  • How to create a Total in a string column with link?

    I have a VO which has a column varchar2 with numbers. When it is Zero it has a '#'. I need to create a total over this column. I created a class with a static method to convert string in number. The problem is, I dont know where and how I should interact this class with the VO Row methods. If it is in the RowImpl of this VO or VOImpl or AMImpl. My ideia is create an item on the region to show this total and set a URI to another page based on its value. Another question is where and how can I get this total and put on the item on the page. I think it should be in the CO of the page but I still dont know how.
    I dont want to create a VL because I dont want to reexecute the same query just for totals since I am getting each value and showing them... Am I complicating this task?
    Im using jdev 9.0.3.5
    Thank You All in Advance

    Thank You!!! I started the firsts steps of your idea. And now I have more question. :-)
    I have a situation. In my VO I already have an VOImpl that is called by AM.
    I'm using this class in order to add some conditions to my VO WHERE clause.
    Now I created the VORowImpl class to my VO and I put a System.out.println
    just to see each value of the column that I'm supposed to sum.
    What surprises me is, the output has the column values printed twice in the Log Window.
    For example: 1,2,3,4,5 and start again 1,2,3,4,5, but the result on the page is correct.
    Is this happening because I have VOImpl and VORowImpl? Im afraid my total be 2x its value if I sum them in VORowImpl.
    Another question is where I should code total = total + column;?
    In the VORowImpl or VOImpl or AMImpl?
    What I didnt understand is how VORowImpl is called. I can't see any calling in AM in
    a way that I take the advantage of VORowImpl interaction loop and sum to another variable in each interaction.
    Thanks Again

  • How to create running headers based on paragrapgh style

    I need to create running headers based on a particular paragraph style (Heading 2), so that the header on each page reflects the text of the latest Heading 2 in the document.
    I've looked high and low on this forum and on the web, but no luck. If it's not possible, I probably won't be activating/buying my trial software.

    Feature not available as such.
    You can place a section break before each change in Header 2, set headers as 'new for this section' and enter the new information, but as far as I'm aware there's no built in way of making the change automatic.
    Regards,
    Barry

  • How to do running totals in a query

    Hi Guys, I have following data sample and desired output and I need a running total or subtotals on each row for two quntity fields on same row.
    Current data:
    ID - ---Day----- Qty1 Qty2
    Abc 04/01/2009 100 50
    abc 04/02/2009 70 20
    def 04/01/2009 10 30...
    Desired outPut:
    ID - ---Day----- Qty1 Subtoal Qty1 Qty2 SubtotalQty2
    Abc 04/01/2009 100 100 50 50
    abc 04/02/2009 70 170 20 70
    def 04/01/2009 10 180 30 30

    Hi,
    There's one thing in your example, regarding the last line:
    def 04/01/2009 10 180 30 30I assumed you meant:
    def 04/01/2009 10 180 30 100 <<== running total should be 100Am I correct?
    Then try:
    SQL> with t as (
      2  select  'Abc' col1, to_date('04/01/2009', 'dd/mm/yyyy') col2, 100 col3, 50 col4 from dual union all
      3  select'abc', to_date('04/01/2009', 'dd/mm/yyyy'), 70, 20 from dual union all
      4  select 'def', to_date('04/01/2009', 'dd/mm/yyyy'), 10, 30 from dual
      5  ) --Actual query starts here:
      6  select col1
      7  ,      col2
      8  ,      col3
      9  ,      sum(col3) over (order by rownum) rt_col3
    10  ,      col4
    11  ,      sum(col4) over (order by rownum) rt_col4
    12  from t;
    COL COL2             COL3    RT_COL3       COL4    RT_COL4
    Abc 04-01-2009        100        100         50         50
    abc 04-01-2009         70        170         20         70
    def 04-01-2009         10        180         30        100Edited by: hoek on Jun 24, 2009 5:19 PM added question

  • How can implement running total in oracle forms

    I want to implement a running total in oracle form
    like
    100 100
    300 400
    200 600
    500 1100
    200 1300
    100 1400
    PROCEDURE calculate_srno IS
    current_rownum     integer:=:System.Cursor_Record;
    starting_srno integer:=:rs_1;
    last_rownum integer;
    BEGIN
         last_record;
         last_rownum:=:system.cursor_record;
         go_record(1);
         FOR counter IN 1..last_rownum LOOP
              :sum_1:=:rs_1;
              :rs_1:=:sum_1+:rs_1;
         --     :offered_srno_to:=starting_srno;
              if last_rownum=:System.Cursor_Record then exit;
              end if;
         END LOOP;
    END;
    it is not working after want to insert between in the table

    Why write code for this? Oracle Forms 10g has Calculated/Summary fields that will do this for you without the need of writing any PL/SQL.
    Simply add a non-table item to the data block with the item you want to keep the running total for. Then change the following properties of the item:
    Data Type: Number
    Calculation Mode: Summary
    Summary Function: Sum
    Summarized Block: <Your Data Block>
    Summarized Item: <Your Block Item>
    Number of Items Displayed: 1 (if your item is in a Multi-Record (Tabular) layout else you don't need to change this property.
    You will also need to change the following property of the block: Query All Records: Yes
    If changing the Block's "Query All Records" property causes your form to be too slow because of the number of records in your block, then you could keep a running total manually by using a combination of the Post-Query and When-Validate-Item (WVI) triggers. If your block does not allow data entry, then you could do this with just the Post-Query trigger. For example:
    BEGIN
      /* This code sample assumes you have added a non-table item */
      /* to your block called SUMMARY.  */
      :YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
    END;If your block allows data entry, then you would add the following to your existing WVI trigger.
    BEGIN
      /* Perform your data entry validation logic first... */
      IF ....
      ELSE
        ...Validation is successful...
        :YOUR_BLOCK.SUMMARY := :YOUR_BLOCK.SUMMARY + NVL(:RS_1,0);
      END IF;
    END;Hope this helps.
    Craig...

  • How to Summarized Running Total and Formula ????

    Post Author: ryan_r
    CA Forum: Crystal Reports
    Hi my name is Ryan, I want to ask something. I have build a report
    that contains Running totals and Formula. What I want to do is I want
    to use subtotal and Summary field for the running total and Formula,
    but I can find the field when I click the dropdownlist in the Subtotal
    dialog box or summary field for the running total and the formula. Is
    there any way that I can use subtotal or summary field for Running
    Totals and formula, I do need some help guys, Thanks. FYI: I use Visual Studio.NET 2003; ASP.NET(C#).regards

    Post Author: ryan_r
    CA Forum: Crystal Reports
    Hi kcheeb, thanks for your advice but it doesn't work sorry. By the way maybe I can explain you more of twisted situation.I have updated my report,
    so im not using runningtotals any more, I'm using summary field and
    formula which are;-the summary field is "Sum of SuspenseVoucher.Realisation" located in Group Footer #3: SuspenseMstr.ProgramID-The formula is "@Balance_Formula" which contain:{SuspenseMstr.Budget}
    - Sum ({SuspenseVoucher.PenggunaanBudget}, {SuspenseMstr.ProgramID})
    also located in the same location as summary field above.FYI: I have three group records which are:-Group #1 : SuspenseMstr.APDate (Appearing in months e.g January 2007)-Group
    #2 : programCategoryMstr.programCategoryID (doesn't have any objects I
    just put some dashed line, the group is only for proper sorting)-Group #3: SuspenseMstr.ProgramIDwhat I want to do is:-in the Group Footer #3, I already put "Sum of SuspenseVoucher.Realisation" and "@Balance_formula"-in
    the Group Footer #2, I want to put Summary of Budget but there's a
    problem in here too, in the budget field there are some data are
    conditionally suppressed. I already tried to put some summary field but
    the summary operation wasn't like what I wanted. What I wanted was the
    sum only evaluate the data that appeared in the report not the
    suppressed, but in the summary the suppressed data keep evaluated. And
    in this location I also want to put Summary of "Sum of
    SuspenseVoucher.Realisation" and the Sum of the @Balance_formula.-
    in the Group Footer #1, I want to add some Summary of "Sum of Budget"
    (which I already explained that this operation has a problem) and I
    also want to put the Sum of "Summary of Sum of
    SuspenseVoucher.Realisation" and the Sum of "Sum of @Balance_formula"-And in the Report Footer I want to add some Grand Total from all of the evaluation above.So
    there are my problems, quite much I would say. I hope this explanation
    helping all of you guys to solve my problem, thanks for spending your
    valuable time for me. This matter is really important for me 'cause I
    want to learn something new from all of you experts as I'm still a
    "toddler" in this situation and also because I work in this field, so a
    BIG thank you for all of you guys out there. Best Regards.

  • How do I run totally sperate VI's from a compiled applicatio​n

    Hi, I have hit a wall here and am not sure which direction I should be moving in.  A relevant detail, running LV8.2 and application builder on Vista/XP.  Any suggestions on the approach I should be taking would be most helpful.
    I have a top level application (compiled in the application builder) from there I wish to run other VI's that are elsewhere in my local network file system.  So the top level application gives the user a standard interface, from which they can then run the other VI's which are task specific (but that detail does not matter to the user).
    As time goes by I will be adding more of the task oriented vi's to the system and I want avoid having to make these task oriented vi's part of the top level application as maintenance will be more painful.  Having the ability to fix or add a new individual task oriented VI's without having to recompile the whole top level application is the aim.
    On top of this I do need to pass some info to the task oriented VI and obtain some information back from it.
    Some points that I can't get my head around at this stage are -
    1.  The task oriented VI's - do I have to compile these with application builder or can I call an uncompiled VI and run it in the top level application(I think not)?
    2.  How do I call the task oriented VI from the top level application - I have looked at "Open VI Reference" and "Open Application Reference" and am not sure how these apply to this situation.
      So any thoughts would be appreciated, otherwise I am stuck with a lot of tedious trial and error to figure this out.
      Many Thanks.
    Herbert Niesler
    Solved!
    Go to Solution.

    You can use the concept of "Plug-ins" in your current architecture.
    I have attched a simple calculator vi which actually lets you know how to use this feature in LabVIEW.
    I have created an exe for my Main.vi (called calc.exe)which would serve as the standard user interface. There are plugins by name Add, sub,mul and dev.vi
    These vi are specifically kept in the Plugins directory so that "main" (the calc.exe) knows where to look for these vi's and if present they will get populated to the control called "operations".
    So your task oriented vi's could be made as plugin vi's
    Also, the the run time engine in LV can load files with ".vi" extension. so if you are creating a new vi to perform different task, create a seperate vi and then place them in the plugin folder. Please note that the connector pane must be identical for all the plugin vi's and if you think that your plugin vi's have different input and output terminals then create a cluster for all the inputs(or outputs) and flatten them to string or variant so that ou can maintain a same connector Pane pattern. 
    Regards
    Guru (CLA)
    Attachments:
    Calc.zip ‏160 KB

  • How to create a total row in a DynPro table ?

    Hello,
    I've created a standard table in DynPro which consist two lines: One indicating a certain count and the other indicating a certain amount. I would like to create at the end of the row a total row which will sum it's relevant column. How can I do it without summming each row manually at the code and how do I add another row at the end which will indicate the total?
    Roy

    Hi Roy,
    Refer this tutorial for calculating the total in the WD table
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/developing with tables in web dynpro.pdf
    Regards,
    Jaydeep

  • How to create Document total in footer

    Dear all,
         Anyone plz tell me the code for document total which is calculated from matrix line total
    Regards,
    Guru

    Hello Vijay,
    could you specify your question a little bit more.
    Document total are a sum of the ((lineTotals + DocumentsFreight) - Documentdiscount) + VAT
    HTH
    Regards Teun

  • Running total in report footer returning inaccurate result

    Post Author: smarkta
    CA Forum: Formula
    I am writing a report that contains 3 groups.  I have created running totals for each group that are accurate by selecting the group to evaluate and reset on.  now I need to basically sum the results of the all the group running totals but have had no success.  any tips on how to do this would be greatly appreciated.
    Thanks

    Post Author: Charliy
    CA Forum: Formula
    Were you doing a Distinct Count?  Did you have a formula on the Running Total?  What is there about the Group Totals that make them different than the final total.

  • Crystal report running total balance

    Hi guys, please help me.
    im creating a report using crystal report that display running balance from subreport.
    i do have subreport and add it to main report but i need it real time changing.
    for example
    TRANSACTION TYPE                    QTY_IN               QTY_OUT          RUNNING BALANCE
    RECEIVED                                        1                         0                         1
    RECEIVED                                        2                         0                         3
    SHIP OUT                                         0                          1                         2
    SHIP OUT                                         0                          1                         1
    RECEIVED                                        1                         0                          2
    diagram shows the needed output of the report. please help. thanks

    hi sir abhilash, i know you know how to fix this, maybe i need to provide some more information about the report: here what i did:
    created formula @QTY_IN where code is:
                                  if {ITRN.TRANTYPE} = 'DP' then
                                      {ITRN.QTY}
                                  else
                                  if{ITRN.TRANTYPE}='AJ' then
                                 (if {ITRN.QTY} >=0 then {ITRN.QTY}) else
                                  0
    create formula @QTY_OUT
                                  if{ITRN.TRANTYPE}='AJ' then
                                 (if {ITRN.QTY} >=0 then 0 else
                               {ITRN.QTY}) else
                                  if{ITRN.TRANTYPE}='WD' then
                            {ITRN.QTY}
                             else 0
    create running total fields for @QTY_IN And @QTY_OUT
                             total_qty_in and total_qty_out
                             sum the fields and resets every change of group.
    create a formula(running) based on your suggetion
    create running_total_reset code is
                                  WhilePrintingRecords;
                                  numbervar rt := 0;
    paste it to group header.
    the output is
                                      in               out             running
    shipment              0                -4               146116
    shipment             0                 -1               146117
    shipment               0               -4               146116
    but it should be
                                      in               out                            running
    shipment              0                -4    (-146118)           146114
    shipment             0                 -1    (-146114)           146113
    shipment               0               -4     (-146113)          146109
    so on so forth.
    we can do this sir. thanks ^__^.
    really appreciate your help.

  • Running total of another running total ( or some other solution )

    I posted in my previous thread that I would like to be able to do rounding at the subtotal level and then have a total of these subtotals.  Here is the original thread:
    totals in a cross tab report
    So I was told that with the cross-tab report I can either do rounding at the details level or at the final total level.  However, I need to be able to do the following:
    Suppose I receive payments from different states.  In my report I would like to be able to display:
    - a total of all payments for one given state, rounded to whole dollars - this one is easy because I just create a running total for the payments and then at the end I round it to whole dollars
    - a total of all payments and all states as one number.  However, the problem I can't figure out here is that this grand total needs to be calculated as the SUM of the totals for each state where the total for each state is rounded to a whole dollar before being added to the grand total.  So the rounding should not be done on the final grand total but rather:
    1. calculate the total of payments for one state and round it to a whole dollar - let's call it StateTotal ( rounded)
    2. calculate the SUM of all StateTotal values.  So it needs to be a SUM of the already rounded state totals.
    Any help will be greatly appreciated.
    thanks

    hello all,
    if you want to use a manual running total then that is okay. you don't actually put the manual running total in the cross-tab expert though as you will get a print time error.
    you use the "Display String" formula dialogue on an existing cross-tab summary to do the manual running total in.
    have a look at the attached sample...there are 2 manual running totals in there...one that goes horizontally (across the columns) and one that goes vertically (down the rows).
    there is also a Xtab Info column that is there just to show you how the manual running total counter variables are incremented through the cross-tab. in crystal reports 2008 there are a lot of new cross-tab functions that are different from this but that is a completely different topic.
    i hope this helps,
    jamie

  • Running total field which evaluates based on another running total field

    I'm figuring out how to use running totals in my reports.
    For each ProductCategory, there're many Products.
    For each Product, there're different ProductVersions.
    For each ProductVersion, it takes different Parts.
    My report should look like this
    Group1: ProductCategory (e.g. Catergory 1)
    Group2: Product (e.g. Product1)
    Group3: ProductVersion 1
    Details: Version 1: 3 * Part1 + 2 * Part2 + 4 * Part3
    GpFooter3: Total of 9 parts used
    Group3: ProductVersion 2
         Details: Version 2: 1 * Part1 + 2 * Part2 + 3 * Part3
    GpFooter3: Total of 6 parts used
    Group3: ProductVersion 3
         Details: Version 3: 2 * Part1 + 2 * Part2 + 3* Part3
    GpFooter3: Total of 7 parts used
    I've a running total at GpFooter3 to count number of parts, reset on change of Group3.
    But for each Product, I'm only interested in the details of the most recent version, that is the version with the greatest version number. So I hide all details and GpFooter3, and want to show
    GpFooter2: Product1, ProductVersion3, 7 parts
    How can I make a running total at GpFooter2 to select the ProductVersion which has the greatest version number among the Group "Product1"? The problem is, the number of versions for each Prodcut is not fixed, so I can't create a running total which evaluates on a particular version number. I tried to use a running total to obtain the maximum version number per Product, but I can't use this in the running total at GpFooter2 as a evaluation formula.
    Your help is much appreciated. Thank you very much.

    Create formula fields that are placed in Group Footer 3 that store the value(s) in global variables (basic syntax):
    global maxVersion as number
    global numParts as number
    maxVersion = {version}
    numParts = count({part}, {version})  ' Assuming grouped on {version}
    formula = ""
    Then use other formula fields to retrieve the values:
    global maxVersion as number
    formula = maxVersion
    And similarly for numParts...
    HTH,
    Carl

  • Summaries Running Totals....

    Hi,
    Can any one help me how to summaries running totals....
    Let say
    Iam calculating number of days per person with some formula,  then iam doing running total for total days by group, till now everything is fine.
    Now i want to summarize these running totals by regionu2026
    I did try to do again running totals. But i can not see the previous running total which I created for Group in the list to add that running total to the field to summarize tabu2026
    How can I Summarize those Running totalsu2026
    Thanks,
    Krish...Yearly

    Try again calculating the total number of days for each region instead of group. Or you can try creating manual running totals by creating formula like this
    whileprintingrecords;
    numbervar i;
    i:=i+{running total};
    regards,
    Raghavendra.G

Maybe you are looking for

  • Suggestion on more then one people when using internet...

    hi, first off all, sorry for my bad english... so, my suggestion... on my notebook, I and my wife are using internet... my wife uses firefox, and I must use other browser, because of we use same websites, such as facebook or gmail. we save passwords

  • Interest not calculating on work orders

    Hello, We have an issue with interest calculation on work orders in the There is a work order on which monthly interest is not calculating any more even though there is balance left with the order. The interest got calculated till May,2011, but after

  • Callback feature between clusters

    Hello, Could you please help me to make the callback feature available between two clusters using Inter-cluster trunk ? Thanks in advance. Abdelatif.

  • WUC-015 in Forms Builder Run Form

    When running a form via Forms Builder, I receive WUC-015. When running the same form via the "Run a form on the web" (runform.htm), it works fine. What did I configure wrong?

  • Passing variables

    I'm working on a project where a swf that I have created will be loaded into another, main, swf. The main swf must pass login variables to my swf, which I think this can be done with the code below. But my question is how do I receive the variables t