Grouping and Totalling data

Hi
I have a query that shows both fields and calculations I have created.
The calculations are mth2 ,mth3 and mth4 where mth2 is a field called period 2 - period 1, mth3 is period 3 - period 2 etc.
My reports shows as
Code mth2 mth3 mth4
A001 1000 0 0
A001 0 500 0
A001 0 0 250
Is it possible for me to group the data so it shows
Code mth2 mth3 mth4
A001 1000 500 250
Thanks for your help.
Andy Gill

Hi
Thanks for the reply, however I get a nested aggregate functions are not allowed error when I try to SUM because the calculation I have is
DECODE(Period,3,In Month Actual,0)
That is if the period is 3 give me that figure otherwise 0.
To Create the monthly change I have
DECODE(Period,3,In Month Actual,0)-DECODE(Period,2,In Month Actual,0)
Thanks
Andy

Similar Messages

  • Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount 28

    Post Author: tadj188#
    CA Forum: Formula
    Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
    Background:
    1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using  subreports.    A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report    with their respective detail lines).  I had multiple subreports and each subreport became one union.
    Created and tested, already:
    1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
    Issue:
    1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
    Other Ideas Appreciated:
    1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
    Thank you.
    Tadj

    export all image of each page try like this
    var myDoc = app.activeDocument;
    var myFolder = myDoc.filePath;
    var myImage = myDoc.allGraphics;
    for (var i=0; myImage.length>i; i++){
        app.select(myImage[i]);
        var MyImageNmae  = myImage[i].itemLink.name;
        app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
        app.jpegExportPreferences.exportResolution = 300;
           app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
        alert(myImage[i].itemLink.name)

  • Get Total DB size , Total DB free space , Total Data & Log File Sizes and Total Data & Log File free Sizes from a list of server

    how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

    Hi Shivanq,
    To get a list of databases, their sizes and the space available in each on the local SQL instance.
    dir SQLSERVER:\SQL\localhost\default\databases | Select Name, Size, SpaceAvailable | ft -auto
    This article is also helpful for you to get DB and Log File size information:
    Checking Database Space With PowerShell
    I hope this helps.

  • What's def of field group and intermediate data set

    what's def of field group and intermediate data set

    The drawing panel cannot draw the figures, what's
    wrong?You can't have written this much code and then suddenly detected it doesn't work at all. You must now restart from the point where you had a working program. Then you add code is small increments and see to it that it works in each step and you understand why it works. This method is called stepwise refinement and it does wonders.

  • Advice pls. re. Users and Groups and shared Data

    Before I get to concrete questions, I'd like to explain what I have in mind and would welcome suggestions; ie. is it reasonable or have I overlooked something easier or any pitfalls?
    Basically, I've got 3 user accounts (not counting FTP, MySQL, etc) on my Powerbook, which are all mine, just represent different "personas" (private, work, music composition). I've had it like that for years and am perfectly happy. Eg. when I'm working I don't see a desktop cluttered with the latest junk I've downloaded and when I've got my music making hat on I open up iTunes and see my sample collection. So far so good!
    But it does have some drawbacks of course, when it comes to sharing data accross accounts (email, contacts, calendar, passwords, etc). For most there's an individual and easy enough solution but I'd really like one single solution and not have to keep doing difference maintenance tasks on different files in different accounts. And just to further compound the issue, I'd really like to have all this "shared data" in one central location for easy sync with my XP box.
    My idea is thus; a fourth virtual user (something like "me"), which doesn't appear in the login/user-switching menu, but whose home folder is simply a repository for all this shared stuff I'm talking about. Syncing with XP whould then be a breeze!
    I'd then use aliases and/or symbolic links as appropriate, from my usual three accounts, for example, to a single Thunderbird profile or Calendars folder or whatever.
    Finally, currently I've got all user accounts set up as admin accounts, mostly so they can all access each other's data. I don't like this though, from a security point of view and would prefer to assign them all to a (new) group "virtual-me", adding each user into this group.
    Does all this sound reasonable?
    Cheers,
    Rich
    BeigeG3 400/256/40 OS921, PismoG3 400/768/80   Mac OS X (10.3.9)   Atari 1040 STe, 4Mb, 100Mb HD, Zip 100, 4x CD

    have sorted it now, no need for a "virtual" user, just added a new group and shoved all the files I want to share accross accounts into a folder in /Users... as i suspected, I was thinking far too complicatedly

  • Groups and Totals

    Hi
    I have created a report in Microsoft Visual Studio (BIDS) and need some assistance in completing this.
    Looking at the output image attached, under the column heading WHA, for July I have three entries of value 2. I am using an expression
    =MonthName(Month(Fields!DateOfComplaint.Value),False) to change the actual dates to Month Names.
    Using the example for July I think the reason that there are three rows is that each of these represent 3 different dates in July.
    What I want to show is July and every month only once with the total value for each month. So in the case of July I want it to show one row for July with WHA a total of 6.
    Similarly for August this should show August in one row and CONTRACTOR equal to 5
    Any assistance would be very much appreciated
    Thanks

    Hi Jason
    I made the changes as you suggested and it works as required. Many thanks for that as I didn't know you could group by an expression.
    However it sorts them alphabetically
    August
    July
    September
    instead of by date:
    July
    August
    September
    How would this be fixed
    Regards
    John
    for that group on  both
    =MonthName(Month(Fields!DateOfComplaint.Value),False)
    and
    =Month(Fields!DateOfComplaint.Value)
    then for display in textbox use
    =MonthName(Month(Fields!DateOfComplaint.Value),False)
    and for sorting
    =Month(Fields!DateOfComplaint.Value)
    in Ascending order
    If there are data for multiple years you need to include year also in sorting as well as grouping
    ie
    =Year(Fields!DateOfComplaint.Value)
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Grouping and ordering data

    I want to use grouped data from a query column. At the
    moment I can output and group the data using cfifs dependant
    on months and years. How can I find recordcounts and use the
    variables #doct07# #dnov07# #ddec07# #djan08# #dfeb08# #dmar08# so
    they keep the values in the cfoutput query? TIA
    <cfquery name="qrysales">
    SELECT clientinfo.visit
    FROM clientinfo
    order by clientinfo.visit
    </cfquery>
    <cfoutput query="qrysales">
    <cfset datesbymonth=(month(qrysales.visit))>
    <!--- 2007 entries --->
    <cfif qrysales.visit contains "2007">
    <cfif datesbymonth eq 10>
    <cfset doct07=#datesbymonth#>
    #doct07#
    <cfelseif datesbymonth eq 11>
    <cfset dnov07=#datesbymonth#>
    #dnov07#
    <cfelseif datesbymonth eq 12>
    <cfset ddec07=#datesbymonth#>
    #ddec07#</cfif>
    <!--- 2008 entries --->
    <cfelseif qrysales.visit contains "2008">
    <cfif datesbymonth eq 1>
    <cfset djan08=#datesbymonth#>
    #djan08#
    <cfelseif datesbymonth eq 2>
    <cfset dfeb08=#datesbymonth#>
    #dfeb08#
    <cfelseif datesbymonth eq 3>
    <cfset dmar08=#datesbymonth#>
    #dmar08#
    </cfif>
    </cfif>
    </cfoutput>

    See attached screen shot:
    To understand how the optional grouping works look at the attached
    example. I put some print lines on two charts that write out to a file.
    You will need to change the location. In that example my data comes
    in like:
    sourcedata[0][0] = 10;
    sourcedata[0][1] = "Chris Kwai";
    sourcedata[0][2] = 232;
    sourcedata[1][0] = 10;
    sourcedata[1][1] = "Ice Bella";
    sourcedata[1][2] = 291;
    sourcedata[2][0] = 10;
    sourcedata[2][1] = "Nola Dicci";
    sourcedata[2][2] = 567;
    sourcedata[3][0] = 11;
    sourcedata[3][1] = "Chris Kwai";
    sourcedata[3][2] = 312;
    sourcedata[4][0] = 11;
    sourcedata[4][1] = "Ice Bella";
    sourcedata[4][2] = 614;
    sourcedata[5][0] = 11;
    sourcedata[5][1] = "Nola Dicci";
    sourcedata[5][2] = 212;
    So for 3 users I have 10 and 11 value. If I do not optionally group my
    chart (But I group sum on x-axis) gets two sets of data one for the
    category and one for the summed values for each user.
    Series Data <undefined>
    Chris Kwai
    Ice Bella
    Nola Dicci
    Series Data <undefined>
    544.0
    905.0
    779.0
    If I use optional grouping I get three sets of data. One for the
    category and then one for each optional group (ie 10 and 11):
    Series Data <undefined>
    Chris Kwai
    Ice Bella
    Nola Dicci
    Series Data for month 10
    232.0
    291.0
    567.0
    Series Data for month 11
    312.0
    614.0
    212.0
    This will then draw two bars (10 and 11) for each user.
    Does this make sense?
    Jason
    On 10/26/2011 11:12 AM, Kevin Williams wrote:
    > Jason,
    >
    > Thank you for the quick response! Any chance you can send me a screen
    > shot of the group sort icon? I'm sorry, but I for the life of me, I
    > don't see it (I'm sure it's staring me straight in the face!).
    >
    > Also, I'm apparently misunderstanding the optional grouping field--I
    > there any documentation you can point me to on what it does (teach me to
    > fish)?

  • How can I get the second group and report totals in Matrix report?

    Hi,
    I have created a matrix report with 2 break Groups.
    Iam getting columns totals for the first group, but not for the second group and the report totals.
    How can I get the second group and report totals for each month?
    Thanks.
    Ram.

    Hi Ram,
    If you want a total at any group-level, go to the particular group in the data model, insert a summary column in the group, and select
    Reset At > appropriate Group Name
    For report level summaries, you must create the summary column outside of all groups.
    Navneet.

  • Grand Totals functionality under Group and Sort

    Hello community,
    Does anyone know if there is a solution for rolling up text fields in the summary line item (under the Show Grand Totals functionality under Group and Sort)? I can only find that date fields and formula fields summarize. I would like to be able to summarize all the data in one line items so I wont have a really long schedule and I can present to my end users accordingly.
    Thanks,
    P6GURUYOU

    Hope I understand,  if you have the groups setup, you should be able to (CRXI instructions) right click on the item in the Details line, insert a summary, you can select sum, add the sum to the group.  For the locations, insert a summary count, and add that to the groups.
    What I do sometimes, is select the option to add summary to all groups, Perhaps change the font to red, I can see the totals
    I want, and just suppress the other groups.  Just a quick and dirty way to do the totals.

  • How to show subtotal and total of groups in ssrs

    I am making an SSRS report in following format:
        DIVISION  
              SECTOR  
                    DEPARTMENT
    Division contain Sector and Sector contain Department so resulting report becomes something like following. A figure is being shown against each Department and I want to show SUBTOTAL of each Sector right against Sector column (by adding all Department coming
    under it) and then show TOTAL of Division (by adding all Department or all Sector) at the end. How do I show these totals? 
        Division1
             Sector1               SUBTOTAL HERE (for e.g. 19,000)
                  Department1      10,000
                  Department2      9,000
             Sector2               SUBTOTAL HERE  (for e.g. 8,000)
                  Department3      8,000
             Sector3               SUBTOTAL HERE  (for e.g. 13,000)
                  Department4      10,000
                  Department5      1,000
                  Department6      2,000
                                   TOTAL HERE  (for e.g. 40,000)
        Division2
             Sector4               SUBTOTAL HERE (for e.g. 3,500)
                  Department7      3,500
                                   TOTAL HERE (for e.g. 3,500)
    My report is displaying all divisions, sectors and departments with figures like above (I am using groups ) but how do I display SUBTOTAL and TOTAL?

    Hi ,
    You can use add total in this case.
    use below link;
    http://msdn.microsoft.com/en-in/library/ms170712.aspx
    To add totals to a report
        Switch to Design view.
        Right-click the data region cell that contains the field [LineTotal], and click Add Total.
        This adds a row with a sum of the dollar amount for each order.
        Right-click the cell that contains the field [Qty], and click Add Total.
        This adds a sum of the quantity for each order to the totals row.
        In the empty cell to the left of Sum[Qty], type the label "Order Total".
    To add a daily total to a report
        Right-click the Order cell, point to Add Total, and click After.
        This adds a new row containing sums of the quantity and dollar amount for each day, and the label "Total" in the Order column.
        Type the word Daily before the word Total in the same cell, so it reads Daily Total.
        Select the Daily Total cell, the two Sum cells and the empty cell between them.
    To add a grand total to a report
        Right-click the Date cell, point to Add Total, and click After.
        This adds a new row containing sums of the quantity and dollar amount for the entire report, and the Total label in the Date column.
        Type the word Grand before the word Total in the same cell, so it reads Grand Total.
        Select the Grand Total cell, the two Sum cells and the empty cells between them.
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem.

  • How to do the ALV report output in groups and caluculate the tOTALS(URGENT

    Hi
    In my ALV report output .I have to group the output based on the DAYS field
    0-10 days in one group
    10-30 days in one group
    above 30 days one group
    There is also a field by name "AMOUNT" in my output.
    I have to calculate SUBTOTALs at the end of every group and at the end of the report i should caluculate GRAND TOTAL.
    Please remember that i should not use any any BLOCKED ALVs and for Totals i should not use the SYMBOLS provided in the application toolbar of the report
    Thanks in Advance

    Please don't repost your questions...
    Check out my answer in your other post.
    How to make the ALV report in groups  and caluculate the TOTALS
    Regards,
    Naimesh Patel

  • Win 8.1 domain workstation. Block all access, except for a fews users/groups and domain controller information/date.

    Hi!
    Win 8.1 pro, domain workstation. How Block all access, except for a fews users/groups and domain controller information/date.
    Nuance:
    From domain AD is locked Workstation Firewall "Domain profile" edit.
    Possible?
    cenubit

    Hi GirtsR,
    I am not sure the command to use the SID to accomplish what you want to achieve, if you only know the SID, you could take use Powershell to find the related information, more information, please check:
    Working with SIDs
    And a similar thread for reference:
    How to find user/group known only SID
    More reference: Default local groups.
    Best regards
    Michael Shao
    TechNet Community Support

  • Creation and Change Date for Tcode and Function Groups

    Hello All,
    I need to display the Creation and Change Dates for Custom Tcodes and Function Groups in a Report. Can anyone please let me know the logic of retrieving it.
    regards,
    Mahesh

    Hi,
    TADIR and TRDIR is the tables where you can find all these data
    Regards
    Sudheer

  • Group and Individual Assets Legacy data load

    Hi, I work for a oil and gas company and I am having issues for the initial load for the group and individual assets into SAP .
    Any help in regards to this would be helpful.
    Below are the values that I would like to load into SAP for group ( grp 1 )  and individual assets ( Ind 1 and Ind 2 ) into SAP.  We would like the depreciation to be carried on the group asset level and allocated on the NBV of individual assets ( which I think seems not possible but the standard allocates the depreciation only on acquisition value ) .
    Asset              APC Value         Acc Depreciation      NBV
    grp 1                20,000.00           10,000.00                 10,000.00
    Ind  1               10,000.00            6,000.00                    4,000.00
    Ind  2               10,000.00            4,000.00                    6,000.00
    The problem is for intital load as well once the Ind 1 and Ind 2 are assigned to group asset grp 1 , it doesnt consider the acc depreciation at all , and the system allocations the accumulated depreciation based on apc values rather then NBV as of the load date.
    Also, if I plan to load only the NBV of the group and individual assets only, the clients wants the APC values as well for reporting , so not where I can get those from if I only load the NBV.
    Please let me know other approaches for initial load of group and individual assets that you guys might have worked on .
    Thanks
    bharani

    hi,
    Hope your requirement is to see the takeover values as on legacy asset takeover date, for those group assets mistakenly created with AS21...instead of AS81.
    Am i right...........
    Then you can do this by doing below.
    1) Go to OAAQ, for your CC, the last closed FY should be same as the FY, which is actually used during legacy asset upload.
    2) now go to AS82, for your wrongly created group assets and in takeover values tab, enter the values manually.
    Note: Assets created by AS01/AS21 can changed with AS92/AS82, then you will have takeover values tab in addition to normal AS02/AS22 transactions.
    once updation is finished, then again revert back the changes in OAAQ.
    This will solve your issue.
    Thanks,
    Srinu

  • Table name for Customer Account Group and created by Data

    Dear Gurus,
    Kindly le t me know the table name having a list of Customer a/c groups and created by data. if there is no such table thn pls let me know the alternatives for fetching the same data.
    Wishes
    Abhishek

    hI
    Go to Se11 and give table name KNA1 and go to display
    you can able to see the Customer AccountGroup field :KTOKD
    Thanks
    Vasu

Maybe you are looking for

  • Editing iPhone video without loss of quality

    I've a stack of video clips taken from my iPhone 3GS which I want to simply stitch together and edit down a little WITHOUT loss of quality. All I want to do is import, crop and stitch them together, thus create a single file *with no change in image

  • Esata

    Hello, Hopefully someone can help me.  I have a xserve 2009 with a 'NewerTech MAXPower eSATA 6G PCIe 2.0 Controller Card' and a esata chassis with hard drives connected.  Everytime the xserve get's rebooted someone has to go and unplug the esata chas

  • Business intelligence error

    Hi, I received an error when attempting to install the Business Intelligence installation from the Universal Installer panel. The error states, "Oracle 9iAS cannot be installed into an existing Oracle 9i 9.2.0.1.0 or higher Oracle home". Any suggesti

  • Problem installing 10_Recommended.zip

    Has anyone dowloaded the above Recommended & Security Patches from sunsolve? When trying to unzip the file I am getting the below error message: # unzip 10_Recommended.zip Archive: 10_Recommended.zip End-of-central-directory signature not found. Eith

  • Mac is running SUPER Slow, applications not responding when i open them, Beachballs everywhere

    Whenever i open an application (Take Google chrome for an example) it bounces like 20+ times, then on activity monitor it says "Application Not Responding". Whenever i type too fast on spotlight or finder, my whole desktop freezes, im suspecting this