Solved

creating chart in ssrs based on calculated cell values?

Posted on 2010-08-23
7
569 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

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…
I have a large data set and a SSIS package. How can I load this file in multi threading?
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
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

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