SSRS Bar Chart Grouping by Date Range - reporting-services

I have a dataset that calculates the actual business days. I've added a bar chart with #beginningdate and #enddate parameters. When I preview the report it only brings back one bar (the first range "1-10 Days") in the report.
The report renders with all 8 bars on the chart I'm only using the #enddate parameter, but the performance on the report is horrible.
Here's my ranges for the chart:
I'm sorting the grouping with the following expression:
Notice the As of Date parameter...this takes a long time to render.
What I need is to get the bar chart (as shown above) shown the same when I have set-up the grouping when I enter a date range.
As you can see below, the report only returns one bar in the chart even though I have 2 date parameters and changed my dataset AND A.EFFECTIVEDATE BETWEEN (#ASOFDATE) AND (#ENDDATE)
How do I make this work to pull back the bars in the chart when adding a date range?
Hopefully this makes sense.
Thank you,

I figured this issue out. What you have to do is right click on the X axis. Under the Axis Options go to intervals and change it from Auto to 1. This fixed my issue and I can now run a chart with a date range.
My chart looks like this with a date range.

Related

SSRS Tablix and Chart Filtering

I have a chart and matrix that shows records for a given date range. User wants to see the records for indidual months.If the user selects date range from January to April then the results would be 4 charts and 4 tablix based on month instead of single chart and single tablix that shows for all months. Could anyone please help me on how to do that. TIA
Create a list
Insert your existing Tablix/Matrix into the body of the list
Right click the Row header (grey box) of the List and on the General tab set the Group expression to group on the Month value, i.e.
=Month(Fields!myDate.Value)
Right click the Row header (grey box) of the List and on the Filters tab set two expressions.
Expression Operator Value
-------------------- -------- --------------------------
=Fields!myDate.Value >= =Parameters!StartDate.Value
=Fields!myDate.Value <= =Parameters!EndDate.Value
This approach will then take an output that looks like this (for all months)
When applied, and the parameters set so that StartDate = 01/Jan/2015 and EndDate = 28/Feb/2015, will look like this
Note how the data for each month appears separately.
Let me know if this approach works for you, or if you need any further assistance.

Need Savings totals by month to pull data correctly and display in Chart

My data and this SSRS chart have a ton of problems, I'll try to keep my question(s) succinct.
First, as you can see by this chart and this screenshot of my data (just showing date and April Savings), my expression/chart is not summing all of the savings within a month, which is my goal.
It appears to be picking one amount within the correct month and using it. I set up a tool tip for April so I could see what number it's pulling (since clearly the chart columns are not representing the data whatsoever - another issue).
You'll see in the SQL data screenshot that it does indeed pull $1,230 from the April 2013 Savings. How can I get this to Sum within the month AND still do a running value from the beginning of time data began to current, this often will include multiple years.
Here's my Chart Data (note that my Team Goal works perfectly, and is even charted correctly - but if anyone knows how to force that line to go from end to end on my chart, feel free to let me know.) :
To summarize, how can I sum each month's data, while still do a running value across the months AND years?
Here's my Expression for Implementable Savings:
=RunningValue(Sum(Fields!ImplementableSavings.Value), Sum, nothing)
(obviously if I can get one working, I can get both)
My Expression for ImplementedSavingsMonth:
=MonthName(Month(Fields!ImplementedSavingsDate.Value))
My Expression for ImplementedSavingsYear:
=Year(Fields!ImplementedSavingsDate.Value)
Let me know if there's anything else I can provide.
Quick sidebar question: WHY does my chart column collect one piece of data. IE: see the tool tip $1,230 for April 2013), but the chart column displays that the number is around $1.7M? And in this scenario, both of my blue and yellow columns are displaying the same number, so why does blue always appear to be a higher number? I will ask this as a 2nd question if it's inappropriate for me to ask here.
I would use this Expression for Implementable Savings:
= RunningValue ( Fields!ImplementableSavings.Value, Sum, "Chart1")
.. assuming your Chart's name is Chart1.

SSRS Cumulative Chart or S graph

How to create a Column chart with a cumulative line graph running over the columns. I have a dataset that returns the columns months,Qty1 and Qty2 . Now I need a column chart that compares these two quantities for every month in the column and a cumulative line for each Qty running over the column charts.
Thanks !
To get a line chart on top of your bar chart:
(Assuming you're using Visual Studio to design your report, these steps may be different in other environments):
Create your bar chart with the monthly bars that you want.
Click on the chart, then in the ChartData window that pops up, click the green "+" in the Values section, and add the field that contains the value you want to use in your line chart.
Once the value is added, right click it in the ChartData window, and choose "Change Chart Type" - change to a line chart.
Tweak your category, series, and axis settings until it renders in a manner you like.
NOTE: If your cumulative field isn't already a running aggregate, you're going to need to either add such a field to your dataset, or use an expression to work out the aggregation; the line chart won't do that for you.

Drill Down on a Zero Value in an SSRS Bar Chart

I have a bar chart in SSRS that does legitimately produce zero values. Is it possible in SSRS to drill down on the zero values like you can with non-zero values? The action on the data series works great for all values other than zero.
What about a range chart? The range chart takes dates as values, so depending on how your data is grouped as long as they have a date associatead with it they will map out and then you can drill through. You might even be able to add dates yourself.
The only thing you have to watch out for it that the range chart takes in a range of dates so you need two. But you can always do a dateadd aggregate function to produce another column and that could be your second date value.
Let me know if this helps, Cheers!
The zero values still have a clickable link, it's right on the axis (or at zero). Not easy to find or to click but it does work.

How do I make a SSRS 2008 R2 Ranged Bar Chart always show data labels?

I am working on a Range Bar Chart in SSRS 2008 R2 that is configured to look something like a Gantt Chart. The Data set looks like:
Metric | Date-plot-1 | ... | Date-plot-n
My problem comes in with null values in Date-plot1. If my report dataset returns a data value, I see the date labels on the bottom of the chart. If that particular field is null, I either get no data labels, or "MM/dd/yyyy" (which is the formatting string I am applying to the dates).
Unfortunately, due to this being a data-quality report there can/will be NULL values in any/all of the columns. How can I get the axis label to display even if the first date plot is null?
what do you expect the values on the y axis to fall into if the X is null?
Nevertheless, I would deal with the null on the data source. Make it whatever value you answered my first question :)
If not possible, try to select the scale of the chart and see properties related with interval like intervalOffset.