Solved

creating chart in ssrs based on calculated cell values?

Posted on 2010-08-23
7
559 Views
Last Modified: 2012-05-10
Can you create a chart based on calculated fields? I have some calculated fields showing total spend and net spend as a percent to sales by month that I want to represent graphically but can't figure out how to do it with calculated fields...


CHART.png
0
Comment
Question by:k1ng87
  • 4
  • 3
7 Comments
 
LVL 10

Expert Comment

by:itcouple
ID: 33508902
Hi

Yes you can do that and one way of doing that is adding extra row in your table and placing the graph in there (you create connection between table and graph) so when you drag and drop any fields into 'drop data fields here ' on the graph you will be able to change it to expression (copy paste should work).

I hope that helps.

Regards
Emil
0
 
LVL 1

Author Comment

by:k1ng87
ID: 33510304
I don't believe I understand that...also, grand total comes (spend) come from one data set as where sales and transbilling come from another...

also, my source data tables are setup where I pivoted the months into columns...dont know if that makes a difference

locations | year | cost | jan | feb | mar | etc....
--------------------------------------------------------
0
 
LVL 10

Expert Comment

by:itcouple
ID: 33510675
Sorry I thought the table uses only one dataset. It is difficult to answer it without playi with it. Is there a way you could upload the rdl file? (remove anything you want I just want dataset fields and calculation on report)

Would you consider returning the data in a separate dataset and using it to create the chart?

Regards
Emil
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 1

Author Comment

by:k1ng87
ID: 33511146
here is the rdl file......I'd be open to any new ideas as I've only started picking up SSRS a few weeks ago some I'm fairly new rookie at this....but it is kinda similar to crystal reports which i've used before
ScoreCard-Prototype.png
0
 
LVL 1

Author Comment

by:k1ng87
ID: 33511150
i had to change the extension to .png to upload it but switch it back to .rdl and it should work.
0
 
LVL 10

Accepted Solution

by:
itcouple earned 500 total points
ID: 33529349
Hi

Hmmm I though it will be easier.... you might want to add an extra row below net cost and add subreport. (see picture).

What should work is passing parameters. So you can pass X/Y and legend. Not sure if this will help but SSRS has two function split, join which might help.

I think if you pass parameter and then fire stored procedure you should be able to get 'clean' dataset in subreport and construct the chart.

Sounds overcomplicated but I cannot think about easier way of doing that currently..

Hope that helps
Emil
ChartSubreport.JPG
0
 
LVL 1

Author Closing Comment

by:k1ng87
ID: 33570676
don't believe this is possible the way i described in SSRS
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to shrink a transaction log file down to a reasonable size.

747 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now