Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

creating chart in ssrs based on calculated cell values?

Posted on 2010-08-23
7
Medium Priority
?
574 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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 1500 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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

885 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