x

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

Hi

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 '12 at 07:10 AM in Default

WcMyburgh gravatar image

WcMyburgh
80 4 4 6

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 '12 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 '12 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 '12 at 02:05 PM

Fatherjack gravatar image

Fatherjack ♦♦
41.3k 73 77 107

(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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x166
x15

asked: Jul 31 '12 at 07:10 AM

Seen: 700 times

Last Updated: Aug 01 '12 at 08:34 AM