How to find the maximum of group sums within a specific column using report builder 3.0

Hi
For each part number I am trying to find out in which week of a month did the largest daily shipment occur... so using report builder 3.0
in SSRS 2012 I can find daily, weekly and monthly totals for the units shipped but I am having a hard time thinking through the logic to find the daily max for each week.
in my data I can have multiple orders/shipments for the same product on the same day.
The ultimate goal is to set inventory levels
So..
In my matrix report I have
Row groups:
Classid => Product class
InvtID => Item Part Number
Column Groups:
FiscYr=> Fiscal Year
PerPost => Month or period the transaction occurred
Week_period => the week the transaction occurred
Day_period => The day that the transaction occurred
The aggregations are 
Sum(case_shipped) 
Max(case_shipped)
The Sum(case_shipped) is working as desired but the Max(case_shipped) is picking out the max amount shipped on any one order when looking
at the week, month or fiscal period and that is not what I need.
I have attached a screenshot since a picture is worth more than my words. I have also included some sample data
I would very much appreciate any thoughts on this. I am guessing that the solution has something to do with using the inscope function but
I can't wrap my head around how to use it
Thank you 
Tom D
Here is some sample data for Product A
Invtid Case_ship Trandate    FiscYr   PerPost   week_period        day_period
A         10           1/1/2104    2014        1    
          1                           1
A           3           1/1/2014    2014        1  
            1                           1
A         50           1/2/2104    2014        1    
          1                           2
A         30           1/3/2014    2014        1    
          1                           3
A         20           1/9/2104    2014        1    
          2                           2
A          5            1/9/2104    2014        1  
            2                           2
A        20          1/10/2014    2014        1    
          2                           3
A        60          1/10/2104    2014        1    
          2                           3
On 1/1/2104 I shipped a total of 13 cases
On 1/2/2104 I shipped a total of 50 cases
On 1/3/2104 I shipped a total of 30 cases
On 1/9/2014 I shipped a total of 30 cases
On 1/10/2014 I shipped a total of 80 cases
On 1/9 I shipped a total of 25 cases
I would like to show that in week 1 the maximum number of cases shipped on any day is 50 (1/2/2014)
I would like to show that in week 2 the maximum number of cases shipped on any day is 80 (1/10/2104)
I would also like to show that in perpost (month) 1 the maximum
number of cases shipped on any day is 80 (1/10/2104)

Hi
I was able to find a solution
I built a new dataset in report builder using the same table as before but tried out the "Group and Aggregate" function and for the case_ship
field I chose "Sum" as my aggregate.... In essence this gave me a very cool and easy daliy sum of the shipped cases. 
When I used this new dataset and built my matrix report I was able to easily get the max daily shipment for each product by week, month and
year.
Tom

Similar Messages

  • How to find the maximum no of users logged in Database

    Hi All,
    How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.

    Vijay wrote:
    Hi All,
    How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.
    select * from v$resource_limit;Lists about 20 different resources with current, maximum and limit on usage. Session count is one of them. I don't think there's any (simple, efficient) way to determine the maximum number of different users of sessions, though.
    Regards
    Jonathan Lewis

  • How to find the profit center group for a profit center?

    How to find the profit center group for a profit center?

    Hi,
    try this also
    In order to pass the setid parameter of the FM, you have to concatenate the following things
    Setid + KOKRS (Controlling area) + Profit Center Group into one variable.
    In my example below, I have declared as constants and concatenating to gv_setid.
    gc_01016 is the set id for profit centers
    gc_kokrs is the controlling area
    gp_pprct is the Profit Center group entered in the selection screen.
    You will get KOKRS value from the cepc-kokrs.
    data :   gc_0106(4)   TYPE c VALUE '0106',
               gc_kokrs      LIKE cepc-kokrs VALUE 'ABCD'.
               gv_setid          LIKE sethier-setid,
               gt_set_values_1   LIKE setvalues OCCURS 0 WITH HEADER LINE.
      CONCATENATE gc_0106  gc_kokrs gp_pprct INTO gv_setid.
      CONDENSE gv_setid.
      CALL FUNCTION 'G_SET_TREE_IMPORT'
        EXPORTING
          client                    = sy-mandt
          fieldname                 = 'RPRCTR'
          langu                     = sy-langu
          setid                     = gv_setid
          tabname                   = 'GLPCT'
          no_table_buffering        = 'X'
        TABLES
          set_values                = gt_set_values_1
        EXCEPTIONS
          set_not_found             = 1
          illegal_field_replacement = 2
          illegal_table_replacement = 3
          OTHERS                    = 4.
    By using the above FM you will get the values into gt_set_values1 once sys-subrc value eq 0, it is internal table which consists of all the profit centers for the proft center group.
    Regards,
    Venkatesh

  • How to find the cost center group from cycle/ segment in CO module?

    Hi All,
    I need to fetch the list of cost centers in the cost center group against the cycle.
    Is there any table which will store the list of cost centers against the cycle?
    or else, what I was thinking is use of BAPI BAPI_COSTCENTERGROUP_GETDETAIL, which will give me the list of cost centers,
    but we need to pass the controlling area + cost center grp to fetch the cost centers from BAPI, I have controlling area with me but not the cost center grp name, only I have Cycle info lke cycle name, segment name, seq number. so how to find the cost center grp name from the cycle name?
    Regards,
    Mrunal

    FM: RK_AL_CYCLE_READ
    CHECK TABLE: T811K

  • How to find the maximum value among four fields in a single record

    Hi Gems...
    I have a record in which there are 4 currency fields.
    Now i would like to know the maximum of these 4 fields.
    I tried with Max functions in which i put all the 4 values...but it is showing error like ") is missing" though it is there.
    Can we insert more than 2 values in Max function?
    Or else is there any other option to find the max value among the 4 values which lies in a single record
    Thanks
    Jiten

    Hi Anil,
    Say suppose i have a single record in which 4 premiums of a particular bond exists.
    for eg:
    Prem1      Prem2        Prem3          Prem4
    129000.00      388000.00   228000.00   14800.00
    Now this is a single record for a particular bond ... now i need to calculate the max value among these 4 premiums.
    How would we proceed to achieve this?
    Regards
    Jiten
    Edited by: Jitendra Yuddandi on Feb 3, 2009 1:04 PM

  • How to find the maximum RAM in HP ENVY TouchSmart 15-j025sr

    it's possible increaseit RAM to 16, or 32?

    Hi,
              You system as two module slots and the maximum RAM you can have on your system is 16GB. This is the specification which you can purchase
    DDR3-1600-MHz dual channel support
    16384-MB (8192-MB×2; not supported on computer models equipped with a 32-bit operating system) This is 16GB
    8192-MB (8192-MB×1 or 4096-MB×2;not supported on computer models equipped with a 32-bit operating system) This is 8Gb
    You can check more information on page 5 from the below link
    http://h10032.www1.hp.com/ctg/Manual/c03591281.pdf
    "I work for HP."
    Please click the "White Kudos" star to say thanks for helping.
    Please mark "Accept As Solution" if my help has solved your problem.

  • How to find the vednor group

    Hi
    I have a vendor Number. Please tell me how to find the Vendor Account Group when I know vendor number only. What is the T'code for this ?
    Regards
    Madan

    Hi,
    If you know the vendor so that you can able to know the no ranges which has been assigned to vendor account group in "OBAS"
    Please see the no ranges in XKN1 and then see in OBAS
    Hope understood and assign points if you get through.
    Thanks,
    Vasu

  • How to find the max session count and process count for a database

    Hi All,
    How to find the maximum session count and process count reached for a database over a period of 15 days?
    DB version:11.2.0.2
    OS:AIX

    Thanks for the link.
    The output of the below query that is given in the link shows the results for the last 10 or 12 days.. Is there a query which gives a result for the last 30 days?
    col metric_unit for a30
    set pagesize 100
    Select trunc(end_time),max(maxval) as Maximum_Value,metric_unit
    from dba_hist_sysmetric_summary
    where metric_id in ( 2118,2119) group by trunc(end_time),metric_unit order by 1;

  • How to find the ASUS UX50V Serial Number?

    How to find the ASUS UX50V  Serial Number?  
    I have to use the  Serial Number to get the WINDOWS 7.
    But I don`t know where are they.
    Solved!
    Go to Solution.

    Under the battery, there is a barcode. The number printed above the barcode is the serial number.
    Adam
    Best Buy Community - Retail, Americas
    Forum Guidelines | Terms & Conditions | Community Guidelines | Blogging Guidelines
    *Remember to mark your questions solved and click the star under the user's name to show your thanks!

  • How to find the materials set for forecasting in APO..?

    Dear Experts,
    Could anyone please help me out in letting me know how to find the materials set for forecasting in APO, BY either using pegid or by using matid & locid combinations...? Please help me out ASAP as Iam severly stuck at one place.
    Thanks in advance..
    Regards,
    Sanjay.

    Hi Sanjay,
         Please have a look at the table /SAPAPO/PEGKEY.
    If u have any questions in APO goto the APO forum and raise ur doubts.
    Thanks,
    Siva.

  • K mean:: how to find the clustred data;:: or how to assign number t0 each group of data

    hi member
    i have download the LabVIEW Machine Learning Toolkit https://decibel.ni.com/content/docs/DOC-19328
    i want to excute the K mean algorithem to cluster the image in two group or three or more
    the problem is how to find the result i mean the clustred image', the image that contain 2 or three intesity value only
    or how to aasign a 1 vlaue to all intesity that 
    belong to cluster one and 255 to data that belong to cluster 2
    so that the image look like binary image???
    a my vi below
    best regards
    Solved!
    Go to Solution.
    Attachments:
    k mean.vi ‏12 KB

    my post before showed how to set the threshold manually using the graph's cursor.
    here's the automated k-means version, using the toolkit's .vi
    Alex
    ♜♖ LabView 8.6 - LabView 2014 ♖♜
    Attachments:
    2013-06-22_2dhistogram 2009.zip ‏61 KB

  • How to find the sessions which generated maximum redo amount at instance?

    I use below query or Sql*Plus's set autotrace traceonly statistics > redo size statistic to calculate how much redo I generated in my session;
    CREATE OR REPLACE VIEW redo_size AS
    SELECT value
    FROM v$mystat, v$statname
    WHERE v$mystat.statistic# = v$statname.statistic#
    AND v$statname.name = ‘redo size’;
    But how to find the sessions which generated maximum(top 5 for example) redo from the last database startup on 9iR2 or also with new 10gR2 historic views?
    We need this information because from the produced archived log files we observe something new producing almost 2 times more redo for a week. I looked at statspack report but couldnt find as I suspected for a massive update or delete.
    Best regards,
    Tonguc

    I tried v$sysstat but I didnt think about v$sesstat Mr.Gasparotto, thank you very much :)
    SELECT ss.sid,
    sq.sql_text,
    se.status,
    se.username,
    se.osuser,
    se.program,
    se.machine,
    ss.VALUE
    FROM v$sesstat ss, v$statname sn, v$session se, v$sqlarea sq
    WHERE ss.statistic# = sn.statistic#
    AND se.sql_hash_value = sq.hash_value(+)
    AND se.sql_address = sq.address(+)
    AND ss.sid = se.sid
    AND sn.NAME = 'redo size'
    ORDER BY ss.VALUE DESC
    Best regards.

  • Re : How to find the Account Group for a Customer

    hi
    i know the Sale Area ( Sales Org,Dist Channel & Division), Company code but when i go to XD01 TO create a Customer it is asking for a Account Group.My Question is how to find the Account Group
    & is there any link between Sales Area and the Account Group?
    Regards

    Hi murali,
          Account group makes the fields in the customer master data as
          1. suppress
          2.req. entry
          3. opt. entry
          4.display
          the above 4 are the radio buttons available.
        Before u create the customer master in XD01.
        you must gothrough the following paths to create xd01
        Img->Fin.Accouting->AccountRec & Account Payable->Master data ->prepare for creating customer master data
                          In the above path
                               I. define account groups
                              In this you cretae your own account group
                                II. create number ranges for customer accounts
                                In this maintain any number range
                               III.Assign number ranges to customer account group
                                in this Assign  the number range here.
    Now go for XD01
    select the account group you created.
    Give the customer number,this number must be in the range  that u made in the above II point.

  • How to find the group ids from which the mail has been sent

    Hi,
    We are able to see the list of mails have been sent to respective mail ids with the help of tcode SOST.
    Is there any way to find through which group ids the mails have been sent.
    Tehe details showing as the mail has been sent by Batchusr.
    Please suggest how to find the group id from where the the mails have been triggered.
    Regards,
    Jena.

    Hi
    This is not helpfull
    If you open any notification QM03, there you will get tab " Action Log"
    If you click on action log , there are two fileds
    Date and time for task release
    I want to fetch these fileds in one of Z report.
    I am unable to find table name for these two fileds
    Task release Date
    Task release Time
    Can we add 'QN CHANGE DATE' parameter in the selection screen (just like QN creation date) w/ range?  The user want to run the report by QN change date as well.

  • How to find the db size

    Hi ,
    Please tell me how to find the db size.
    Thanks,
    Kumar.

    If I understand correctly, the above query will give the space allocated to the database. This isn't necessarily the same as the space used by the database. Or do I need to clean my glasses ?
    I use the following to get sizes for tablespaces (may need some formatting done - works in 9i and 10g) :
    SELECT
         Total.name "TABLESPACE_NAME",
         total_space "TABLESPACE_SIZE",
         nvl(Free_space, 0) Free_space,
         nvl(total_space-Free_space, 0) Used_space
    FROM
         select
              tablespace_name,
              sum(bytes/1024/1024) Free_Space
         from
              sys.dba_free_space
         group by
              tablespace_name
         ) Free,
         select
              b.name,
              sum(bytes/1024/1024) TOTAL_SPACE
         from
              sys.v_$datafile a,
              sys.v_$tablespace B
         where
              a.ts# = b.ts#
         group by
              b.name
         ) Total
    WHERE
         Free.Tablespace_name(+) = Total.name
    ORDER BY
         Total.name
    ;

Maybe you are looking for

  • How do I get information about items in a collection via REST API?

    Hi There - I am trying to get information, specifically the last comment date, for each item in a collection. I am trying to do this with the REST API. I have tried the following approaches: /v1/activities/{activity id}/items - This API does not appe

  • Restricting acknowledgments in idoc to file

    hi while restricting acknowledgments in idoc to file.... which port and client we need to mention  in IDX_NOALE report. sender port -   R/3 port or XI port ? and which client (R/3 or XI)? ... Abhijit

  • Cannot print pdf files

    operating system vista, printer: all-in-one photosmart 2575 i have tried (i think) everything, re-loaded my drivers, went through all possible settings, such as Hit PRINT, then hit ADVANCED, and then check the box that says PRINT AS IMAGE. nothing wo

  • Sending contacts via SMS

    Hi! I would like to get your expert advice on the issue we are experiencing with our Z10 and Q10 units and this is about sending of contacts/business cards. We are not sure if it is a network-related thing.  Tested on two different carriers as well w

  • I do not have permission to move TimeMachine backup?

    I've been having this issue for some time now. I have several small external storage drives that I would like to re-sort and move some of the backups from TimeMachine onto a new cloud based external drive. I want to do this for two computers I have r