Need a help with grouping and totaling

yopstar25yopstar25 Member Posts: 5
Hi,

Will someone help me how to modify the version of the report 5970(Service contract) with grouping the ItemNo by Serviceintervall and totaling ?

pls see the attached screenshot

Can you help me please...Thanks a lot!

Answers

  • einsTeIn.NETeinsTeIn.NET Member Posts: 1,050
    You have to use a key that contains Item No. and Service Period.
    "Money is likewise the greatest chance and the greatest scourge of mankind."
  • yopstar25yopstar25 Member Posts: 5
    hi,
    first thanks for the quick reply.
    so.
    I have added the new key:
    I set the the keyfields in the GroupTotalFields of Dataitem : Service Contract Line
    GroupTotalFields = Item No.,Service Period
    
    After sort and group the Itemno by Service period how can i do the following:

    Item No:
    80001
    1M = 1x
    2M = 0x
    3M = 0x

    80201
    1M = 3x
    2M= 1x
    3M= 1x

    Etc….


    may i use a Footer or Groupfooter section or any code on the GroupFooter?
    Any help would be greatly appreciated.thanks...
  • vijay_gvijay_g Member Posts: 884
    if everything is right(key,property and sections) then do not forget to use CurrReport.TOTALSCAUSEDBY function in case of grouping for more than one field in Groupheader and Groupfooter sections.
  • yopstar25yopstar25 Member Posts: 5
    hi.
    thanks, the CurrReport.TOTALSCAUSEDBY soved the problem.. :D

    but how can i make a total of each group?

    the result is:
    Item
    Service Period

    80001
    1M
    80001
    1M

    80002
    1M
    80002
    1M
    80002
    2M
    80002
    2M


    80102
    1M
    80102
    1M
    80102
    1M
    80102
    2M
    80102
    2M


    it's possible to have a total of the Field: Service Period like so:


    80001 1M
    Total = 1

    80002 1M
    Total = 2

    2M
    Total = 2

    80102 1M
    Total = 3

    2M
    Total = 2

    thanks in advance
  • yopstar25yopstar25 Member Posts: 5
    i 've solved it with a new section & a counter
    thanks a lot. :thumbsup:
Sign In or Register to comment.