Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Group summay in Sql report

Group summay in Sql report

Scheduled Pinned Locked Moved Database
helpdatabase
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SamRST
    wrote on last edited by
    #1

    hi friends, i have a report using matrix table something like.. Jan | Feb | Mar ----------------------------------------------- sale | s_qty | sale | s_qty | sale | s_qty ----------------------------------------------- Loc_A 10 | 20 | 10 | 15 | 20 | 50 11 | 16 | 30 | 15 | 20 | 20 10 | 20 | 05 | 10 | 50 | 10 ** Loc_B 15 | 30 | 40 | 45 | 10 | 60 14 | 16 | 30 | 15 | 20 | 20 19 | 20 | 05 | 10 | 50 | 10 ** Loc_C 10 | 20 | 10 | 15 | 20 | 50 11 | 16 | 30 | 15 | 20 | 20 10 | 20 | 05 | 10 | 50 | 10 Now whats my problem is i need the summary of each group.(showed in '**'). i used Matrix table , and now showing the grand Total also. but i need group summary. Can any one help me.. Thanks in advance...

    B 1 Reply Last reply
    0
    • S SamRST

      hi friends, i have a report using matrix table something like.. Jan | Feb | Mar ----------------------------------------------- sale | s_qty | sale | s_qty | sale | s_qty ----------------------------------------------- Loc_A 10 | 20 | 10 | 15 | 20 | 50 11 | 16 | 30 | 15 | 20 | 20 10 | 20 | 05 | 10 | 50 | 10 ** Loc_B 15 | 30 | 40 | 45 | 10 | 60 14 | 16 | 30 | 15 | 20 | 20 19 | 20 | 05 | 10 | 50 | 10 ** Loc_C 10 | 20 | 10 | 15 | 20 | 50 11 | 16 | 30 | 15 | 20 | 20 10 | 20 | 05 | 10 | 50 | 10 Now whats my problem is i need the summary of each group.(showed in '**'). i used Matrix table , and now showing the grand Total also. but i need group summary. Can any one help me.. Thanks in advance...

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      You need to group by Loc_A,Loc_B and Loc_C ? Write result which you want to get.


      I Love T-SQL Don't torture yourself,let the life to do it for you.

      S 1 Reply Last reply
      0
      • B Blue_Boy

        You need to group by Loc_A,Loc_B and Loc_C ? Write result which you want to get.


        I Love T-SQL Don't torture yourself,let the life to do it for you.

        S Offline
        S Offline
        SamRST
        wrote on last edited by
        #3

        i used stored procdure for tat & i grouped in the report. the current result i'm getting is what i showed. but i need the group wise total...

        B 1 Reply Last reply
        0
        • S SamRST

          i used stored procdure for tat & i grouped in the report. the current result i'm getting is what i showed. but i need the group wise total...

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          Ok, now you need to get sum of columns sale,s_qty grouped by Loc_A,Loc_b and Loc_c? Are you usng Crystal Report to show data report?


          I Love T-SQL Don't torture yourself,let the life to do it for you.

          S 1 Reply Last reply
          0
          • B Blue_Boy

            Ok, now you need to get sum of columns sale,s_qty grouped by Loc_A,Loc_b and Loc_c? Are you usng Crystal Report to show data report?


            I Love T-SQL Don't torture yourself,let the life to do it for you.

            S Offline
            S Offline
            SamRST
            wrote on last edited by
            #5

            No, i'm using SQL Reporting, & i used Matrix Table

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups