What is the best way to approach report building form a single table?


Well this in my situation:

There is a single denormalized table, with one descriptive column, followed by 30 columns containing setting ( -1, 0, 1 ,2). My problem is that I only have this table as a data source and need to do a pie chart on the percentages of the values ( -1, 0, 1 ,2) occurring per row.Sorry for the confusing description but I am just as confused.

The table that holds all the information looks something like this:

alt text

Now I think I need a table or view in this format

alt text

to be able to start working with the data

Any opinion on what would be the best way to get a fully dynamic report build on this table with report builder 3.0 would be a great help.

more ▼

asked Jul 31, 2012 at 07:10 AM in Default

avatar image

80 4 4 8

Tanks Jonathan, Ill have a look into your suggestion. The thing is this is going to be my first exposure to reporting services and I am not really sure where to start with this.

Aug 01, 2012 at 06:07 AM WcMyburgh

If you are completely new to SSRS then there are lots of resources around that can give you great advice - check out SQL Server Central's Stairways series - http://www.sqlservercentral.com/stairway/72382/ as a starting point and feel free to come back here if you get stuck!!

Aug 01, 2012 at 07:42 AM Fatherjack ♦♦
(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

unless there is a subtlety in the question that I have missed (or in the images that are currently not showing) then I'd simply create a stored procedure to get the data from the table, set that as your datasource in the report and use the charting objects to calculate the percentage etc

more ▼

answered Jul 31, 2012 at 02:05 PM

avatar image

Fatherjack ♦♦
43.8k 79 101 118

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Jul 31, 2012 at 07:10 AM

Seen: 984 times

Last Updated: Aug 01, 2012 at 08:34 AM

Copyright 2018 Redgate Software. Privacy Policy