Average total Table

Hello,
I have 2 tables in my report..
the first table displaying Gross Income For every business unit yearly
First Table
_____ 2009|2008|2007|2006|2005|
Buss1 |_12_|_18_|_15_|_13_|_10_|
Buss2 |_10_|_13_|_12_|_18_|_19_|
Buss3 |_15_|_10_|_17_|_14_|_11_|
Buss4 |_14_|_12_|_19_|_13_|_18_|
Total _|_51_|_35_|_63_|_58_|_58_|
Now my problem are, creating a second table that displays average total for 3 years
The formula for the average total (from my understanding) are
for 2009 =(Total 2009+total 2008+total 2007)/3
for 2008 =(Total 2008+total 2007+total 2006)/3
for 2007 =(Total 2008+total 2006+total 2005)/3
so the table will be like this
_____________|2009|2008|2007|
Average Total__|_50_|_52_|_60_|
can anyone give some opinion about this..
Thanks..

Hi Nico,
Thanks for the reply, Your suggestion for the filter is apperciated, but my requirement is to make the result dynamic.
I already try what you have suggested, (and it works, but not dynamic)
(FILTER("Sales Facts"."Amount Sold" USING (Time."Year" = '2009'))+FILTER("Sales Facts"."Amount Sold" USING (Time."Year" = '2008'))+FILTER("Sales Facts"."Amount Sold" USING (Time."Year" = '2007')))/3Where this is static..If u understand what I meant..
I tried to use this Filter
(FILTER("Sales Facts"."Amount Sold" USING (Time."Year" = Time."Year" ))+FILTER("Sales Facts"."Amount Sold" USING (Time."Year" = Time."Year"-1 ))+FILTER("Sales Facts"."Amount Sold" USING (Time."Year" = Time."Year"-2 )))/3But according to the link u gave, the expression Time."Year"-1 is not allowed (only measure column allowed)..
And can you explain more on this
FILTER("Sales Facts"."Amount Sold" USING ( cast(Time."Year" as number) > ( Year(current_date) - 3) ))Thanks,
Azzad
Edited by: azzad on Jul 2, 2009 9:21 PM

Similar Messages

  • Problem in extracting data from Z totals table (special Ledger)

    Hi Gurus,
    I am in a task of pulling in specific fields from the Z Totals Table of Special Purpose Ledger into the cube. We only need totals records and do not need line items.
    In SBIW, i have generated the transfer structure and datasource for totals table as per the steps of Generic extraction.
    The problem is that am not able to see all the fields (like balance carried forward, total transactions) in the selection fields screen. While extracting i choose totals records only. But now my datasource got generated and am able to see that it is active (green). But some important fields like balance are missing.
    Please let me know your suggestions / ideas.
    Thanks
    Shreya

    We have the exact same Challenge and Issue.   When I view my generated extract structure 3FI_SL_ZB_TT, I don't see any of my key figures.  This was created off the Special Ledger Summary or totals table.
    For Instance, I need fields KSLVT through KSL16. That is, Balance Carried forward in Group currency (period 0) and, total of transactions of the period in group currency, (periods 1-16).  I don't see these at all in the generated extract structure.  Does that mean it must be appended in via transaction RSA6?
    Also, to get the Balance Carried forward do I have to add 0BALANCE to the extract structure?
    Finally, besides the beginning balance, which wiil remain constant, can I get Month-end Year To Date Balances using this approach.  Note, I don't need detail from the line items table.  I just want to make sure I don't need to use that in concert with a Delta and ODS to get my Month End YTD Balance.  I only need this cube for Balances.
    Thanx,
    Joe M

  • Special Ledger-does delta datasource for totals table work at  4.7

    Has anyone successfully used deltas on special ledger total tables  at 4.7c ?
    As the totals table doesn’t have a timestamp I want to understand how this works?
    heres the help line that appears to suggest it should work:
    http://help.sap.com/saphelp_nw04/helpdata/en/f3/3a69377f2b8032e10000009b38f8cf/content.htm
    Thank you in Advance.
    Tony

    Hi,
    I hope you have written the codes in R/3 side.And whenever the Collection Specialist Master record is changed for a particular Customer, all the newly generated Accounting Document show the current Collection specialist but the already existing Accounting Document in BW will not converted to the current Collection Specialist since the data in BW is old data and no logic is written to convert the same.
    Try to incorporate the logic to convert in BW also.
    I could suggest is whenever there is change in Collection Specialist Master record , try to trigger a delat record generation that updates the old accounting doc withnew master in the delta load.
    Ramesh

  • Adding fields to FAGLFLEXT totals table in New GL

    Hi Experts,
    I need a step-by-step of how to add the alternate account field (ALTKT) at totals table FAGLFLEXT. I need creating reports using report painter where the account shown must be the alternate account.
    Thanks
    Renato

    Hi Renato:
    You need to first extend the FAGLFLEXT table by implemeting one of the CI include structures like CI_FAGLFLEX04. To implement it, if you go to SE11 (give table name FAGLFLEXT) and double click on CI_FAGLFLEX04, it ask to create the structure. Add the required custom fields in the CI structire.
    Once the fields are added, in IMG under Ledgers-Fields definition, "Include fields in Totals Total", add the custom field.
    Then, under Ledgers-Ledger, Assign scenarios and custom fields to Ledgers. Once this is done, you ledger as well as FAGLFLEXT has the custom field. Then you need to write some rule to update these custom fields.
    Hope it helps.
    Thanks.
    Rahul

  • Can we join two totals tables in ABAP Query

    Hey Gurus!
    Can we join two totals tables in ABAP query.
    I am tyring to join FAGFLEXT with internal orders totals table.
    Thanks
    S

    Hi,
    Report painter majorily operates around characteristics and key figures.
    ABAP query comes even more handy.  The advantage is -
    1. You can link many tables
    2. Create selection screen as you like to have
    3. User friendly report creation
    4.  Logic can also be coded.
    5. Authorization can be set
    I have written a article in SDN, which gives you an idea as to how to go about using ABAP query.  Have a look on this - [Article - Practical Usage of ABAP Query|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f6b256-23be-2b10-8b93-cad83a617634]
    Regards,
    Sridevi

  • Change of 'Totals table' for a Ledger.

    Hi,
    1. We are planning to do a prototype scenario on new GL by using SAP standard totals table FAGLFLEXT
    2. The same client will be used for final development by using custom developed totals table ex... ZZABCT
    Question: Is it possible to change the 'Totals table' for the Ledger while doing final development?
    Thanks in advance for help
    Purna

    Hi,
    ZZABCT seems to be a Special Ledger summary table, while FAGLFLEXT is obviously the new totals table for the (new) General Ledger, replacing the good old GLT0.
    Although newGL and FI-SL have something common in their concepts, there are enormous differences. You cannot do something in NewGL for prototyping and realize the same in FI-SL later, neither the opposite will work. NewGL and FI-SL may be run in parallel (for sure not a very common approach), for instance, if you have been used FI-SL and you do not want to give up your database not even after having migrated to newGL. But you cannot just switch between newGL and FI-SL.
    Perhaps I did not understand your exact requirement, but changing the totals table (ZZABCT) is not possible unless you delete and recreate the whole SL environment (table group) again.
    Hope that helps, points welcome
    Csaba

  • Weighted average total displaying as  average

    Dear BI Guru's,
    one of my report Weighted average total value displaying incorrect values, for example
    Clinker Value   Clinker Rate
    (Rs in lacs)        (Rs/MT)
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    0.00
    342.00
    1.21
    342.00
    0.72
    342.00
    0.80
    342.00
    2.73
    19.59
    Clinker Rate MT should display 342 instead of 19.59, i was applied exception aggregation for clinker value Total and ref characteristic plant. same exception aggregation applied to net quantity keyfigure.
    Clinker rate calculation = Clinker value/Net quantity,
    thanks in advance who replay as earliest.
    regards
    Ramesh G

    What is the line item infoobject in your data which is causing given list of records?
    Try TOTAL  with line item infoobject as ref char but not plant.
    Try with constant selection on your KF to display 342.

  • Standard fields in Total Table (FAGLFLEXT)

    Hi,
    can I add standard fields (like BLART - Document Type) to the Totals Table without create a new customer field???
    Thanks
    Stefano d
    Message was edited by:
            Stefano de Angelis
    Message was edited by:
            Stefano de Angelis

    Dear Stefano,
    You should avoid such modication to SAP Standard system, you can add the additional fields at the end of table but note that you are going to perform a modificarion which will probably need some adjustemt in the future (when importing a support package of during system upgrade).
    I recommend to add the additional fields under a table append. The appended structures does not change the standard table definition.
    i hope this helps.
    Lucio Rodrigues

  • Custom field in Total table in NewGL

    In NewGL - ECC6.0, what happens if add a new custom field but I don't insert it in Total table (FAGFLEXT)?
    Let me know
    Thanks

    Hi all
    But I think there's NO option to have additional fields only in FAGLFLEXA. At least no such option available using the standard tool - i.e. FAGL_GINS.
    Please be aware of the data volume in FAGLFLEXT/A by adding new fields.
    Br, Kyoko

  • How to find the average of table row values it should display in next row in libwindow/​CVI

    Hi,
    How to find the average of table row values it should display in next row in libwindow/CVI
    Please let me know the solution.

    There isn't a built-in function to perform calculations on thable cells. What you can do is to retrieve thable cells values and calculate the average by yourself.
    To retrieve a bunch of cells in a single instruction you can use GetTableCellRangeVals: prerequisite for this function to work correctly is that cells are all included in a Rect structure (shortly, a rectangle) and are all of the same data type. See the help for the function for some explanations and the link to an example of its usage. In Cell range parameter you can pass VAL_TABLE_ROW_RANGE (row) macro to retrieve an entire row. See here for details.
    Once you have retrieved cell values in an array, you can pass it to Mean function to calculate the average.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • New -GL - Totals Table

    what is the line item table and what is its significance with regard to tatals table?

    Hi Mamtha,
    Line items table store the line items for a particular entry, while Totals table store the total of a said GL period wise.
    GLT0 and FAGLFLEXT are totals table. BSEG, BSIS, BSAS, etc are line items table.
    Regards,
    Kiran

  • Totals table

    What is Totals table? and how it works? in ECC6.0 Totals table is FAGLFLEXT. and In R/3 it is GLT0.

    In addition to various objects numbers, total table stores the total of transaction data.  You can go to SE16 and key in the table name and view for your reference.
    Regards

  • Deleting Customer Fields in Totals Table

    Hi,
    I added a field in the Totals table but i want to delete as i encounter short dump error on inconsistencies
    Does any one here encountered this and how did you correct it?

    Hi,
    Tcode : FAGL_GINS.
    877444 FAGL_GINS: Deleting customer fields in new general ledger.
    Reg
    Madhu

  • Maintenance view:  how to read EXTRACT and TOTAL table

    Hi, All,
    I created a maintenance view, as stated in the documentation, there are 2 internal tables EXTRACT and TOTAL available in running environment. Now I want to read a record from the internal table by using "READ TABLE...."
    In my example: the table strucutre has  A, B, C 3 fields.
    So I tried to use "READ TABLE EXTRACT with key A=' xyz' assigning <fs>", in this case, the syntax check shows error saying that the specified type has no structure and no component can be called.
    So how can I search a row in the table EXTRACT and TOTAL by giving a field value? Is there any other way to get data from the table?
    Thank you!

    Hi Yongying,
    I know this is an old post, but, may be this is still helpful for you or for others with the same problem.
    Just add the option "CASTING" at the end of your READ statement:
    "READ TABLE EXTRACT with key A=' xyz' assigning  must be full typed or at least, be of the same type of the Z table from which is generated the itab EXTRACT.
    Regards,
    José Gabriel.

  • BPS Average Total in Layout

    Dear experts.
    Is there any way to to do an average in the automatic total in BPS in an Excel layout without VBA?
    Example:
    CLIENT     AMOUNT     ROOMS      AVERAGE
    A     100     2     50
    B     240     3     80
    TOTAL     340     5     130
    We want 65 in the total instead of 130.
    Thanks in advance!

    Hi Ivan,
    yes.
    You also might consider to use BW-IP where you have the full reporting and planning
    features integrated in BW queries. There it would even be possible to make 'AVERAGE'
    an input ready formula (BW 7.01, SP05 or higher):
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/49/db8d1bc2245d5de10000000a421937/frameset.htm
    Regards,
    Gregor

Maybe you are looking for

  • PDF not showing images

    A PDF that looks fine in Preview and Acrobat does not display images when shown in Mail and iBooks. Any suggestions? Regards Craig

  • Error Occurred While Processing Request

    Hi I am getting this message when attempting to open my website. Error Occurred While Processing Request Cannot find CFML template for custom tag header. ColdFusion attempted looking in the tree of installed custom tags but did not find a custom tag

  • Physical standby database

    My physical standby database is on Win 2003 server, Oracle version is 9.2.0.3. Windows team asked me to shutdown the standby database and i did the same. After server reboot i put the standby in managed recovery mode but logs were not shipping even t

  • What's the best program to use if I am trying to check for viruses/malware on my Mac?

    I went to what looked like a normal website and got a warning that said "This site may harm your computer." I left the site right away, but now I'm wondering if there's some sort of program I should use to see if my Mac got any kind of virus or malwa

  • Basic settings

    am new to iphone so am a bit clueless; how do i get the clock to read out in 24 hour mode/military mode?