SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Grouping features in report table, BIDS 2005


Grouping features in report table, BIDS 2005

Author
Message
lucas.gates
lucas.gates
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 10
Hello, sorry for the extreme noob question, but here goes....

I am doing a simple Labor Cost Analysis in the table below. Heres where I am getting tripped up:

My SQL is good, I'm bringing in records for the hours worked for each employee and the amount the labor costs (as you can see in the attached image). I have this report configured to group by the store the hours are charged to and then sum the hours and dollars (you can see the group symbol on the image). This is all working and the report data has been validated.

Now that this is working, it was been requested that the hours/dollars be grouped out by store but also separated by unique department. For instance, the payroll department wants to see all the hours/dollar labor charged to the store, but separate records/lines of summed hours/dollars per department if the labor is not all charged to the same department for each store. How can I group so that it is still grouped by store (like is currently configured) but return separate lines of data for unique departments if they exist (and still group by/sum total hours/dollars for the unique departments).

I know this is reports 101, thanks for your consideration!
Attachments
Capture.JPG (16 views, 36.00 KB)
Jack Corbett
  Jack Corbett
SSC-Forever
SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)SSC-Forever (43K reputation)

Group: General Forum Members
Points: 43617 Visits: 14925
You can add a second group on Department within the Store group so your report would look something like this:

Store|sum of hours|sum of dollars
Department|sum of hours|sum of dollars



Or you could put the store summary in a group footer instead of the header.



Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming
At best you can say that one job may be more secure than another, but total job security is an illusion. -- Rod at work

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
lucas.gates
lucas.gates
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 10
That was totally it, thank you!

I play the bass, too Jack. Rock on!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search