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. Excel spreadsheet report with dollar totals, grouped by sales person in region

Excel spreadsheet report with dollar totals, grouped by sales person in region

Scheduled Pinned Locked Moved Database
questionsql-serversales
2 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.
  • V Offline
    V Offline
    vkEE
    wrote on last edited by
    #1

    Hi, what is the best way to present a report, showing the dollar value per month for each salesperson in a certain region? Suppose we have Eastern and Western regions. Salesperson Sam, Sammantha, Roger,will Should I use SSIS package for this purpose, or would a stored proc be able to create this same type of layout? The report should look like, in an excel spreadsheet:

    Region Salesperson Month(Total)
    Eastern  Sam        $1050.00
             Roger      $100.00
             Will       $100.00
             Total      $1250.00
    
    Western  Sammantha   $2000.00
             Total       $2000.00
    Grand total         $3250.00
    

    Any ideas is appreciated! thanks.

    M 1 Reply Last reply
    0
    • V vkEE

      Hi, what is the best way to present a report, showing the dollar value per month for each salesperson in a certain region? Suppose we have Eastern and Western regions. Salesperson Sam, Sammantha, Roger,will Should I use SSIS package for this purpose, or would a stored proc be able to create this same type of layout? The report should look like, in an excel spreadsheet:

      Region Salesperson Month(Total)
      Eastern  Sam        $1050.00
               Roger      $100.00
               Will       $100.00
               Total      $1250.00
      
      Western  Sammantha   $2000.00
               Total       $2000.00
      Grand total         $3250.00
      

      Any ideas is appreciated! thanks.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      The UI (report layout) has absolutely NOTHING to do with the database. Use the stored proc to prepare the data for you. Use the UI (excel or a reporting tool) to do the formatting and layout. You sub/grand totalling should be done in the reporting app, the pretty currency format belongs in the reporting app as well.

      Never underestimate the power of human stupidity RAH

      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