Solved

creating chart in ssrs based on calculated cell values?

Posted on 2010-08-23
7
566 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

920 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

13 Experts available now in Live!

Get 1:1 Help Now