Solved

creating chart in ssrs based on calculated cell values?

Posted on 2010-08-23
7
570 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 
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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
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…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

734 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