Solved

Create an arrayList or temp db table at runtime so I can create a graph with data not related

Posted on 2013-01-29
1
855 Views
Last Modified: 2013-01-30
Hi Experts,
I have a problem were I need to create a graph from 24 fields of data which are not related in any way apart from that they come from the same table.  There does not seem to be any way I can do this. What I want to do is create a stacked bar graph in ReportBuilder3 and compare 12 items. Each item would have a value A or B.  However since the information is not related e.g. Field1.1ItemA, Field1.2ItemB, Field2.1ItemA, Field2.2ItemB, etc, ...Field12.1ItemA, Field12.2ItemB.
They have been created in one table. Normally this would be created over two tables but due to the way the sofware works this could not be done. I am accessing data via an odbc to an SQLServerdb.
My current sql query is
Select  Field1.1ItemA, Field1.2ItemB, Field2.1ItemA, Field2.2ItemB, etc, ...Field12.1ItemA, Field12.2ItemB.
From TableAlpha

How can I create some sort of relationship so that I can a graph 12 items A vs B in a stacked graph. At moment I am looking to either create an ArrayList or create a temp db at runtime and load them in.  I don't know how to do either of these. Any guidance or examples I can view to see how to do this would be very much appreciated!.
Many thanks,
B
0
Comment
Question by:bruskhickory
1 Comment
 
LVL 6

Accepted Solution

by:
liija earned 500 total points
ID: 38834039
How about this as data source query?

SELECT 'Field1' AS Description, Field1.1ItemA, Field1.2ItemB FROM TableAlpha
UNION ALL
SELECT 'Field2' AS Description, Field2.ItemA, Field2.ItemB FROM TableAlpha
UNION ALL
SELECT 'Field3' AS Description, Field3.ItemA, Field3.ItemB FROM TableAlpha
etc...
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question