I have a line report on the SSRS and the last horizontal axis value is showing the time after the current time. So I would like to add a line to the graph to show to the current time before the last horizontal axis value.
My data structure like as below:
The output which I am expecting is:
I tried to add the current datetime value into the result set but it did not work.
Related
I would like to re-create a line chart in SSRS like the one below (created in excel)
Target vs Revenue
I can re-create the running value (green line - revenue) but I have no idea how to do the straight target line (grey one) that should end at the end of the current month. The value for this line comes from a text parameter (I type in the target for current month manually), so ideally this should be a running value of the parameter number divided by the number of days for this month ending on the last day.
Can I have an angled StripLine to achieve that or shall I use an expression, if so, can you help me to build it, please?
Thank you for your help.
This answer assumes you know what month you are running the report for and you can therefore determine the number of days in that month. I won;t cover that here, ask a new question if you can't do that.
To create your target line, open your dataset properties, click the 'Fields' tab and Add a new field.
Call the new field Target or whatever you want and hit the fx button next to field source. Set the field source to following expression.
=(Parameters!Target.Value/31) * DAY(Fields!myRevenueDateField.Value)
You will just need to swap out the 31 for the actual number of days in the month, and the correct date fields from your dataset.
I used some sample data in my test with a target of 3000 and got the following result.
I can seem to figure out what how to set up a way to graph the following table into a graph with multiple lines. I have the following table:
I would like each row of the SRReportName be a different line and each column from ProcessingMinsYesterday and the rest (not SRReportName column) to be an value in the X-axis and the Y-axis to be that numerical value within the tables. So it would look like this:
You can represent each report by a line in the chart, just add SSRSReportName to the Series pane. However to get the desired x-axis you have to unpivot your ProcessingMins columns from the query.
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.
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.
I have a dataset that is showing the correct data, but putting it into a stacked bar chart and using the RunningValue function to try and plot it cumulatively is giving numbers that start way higher than they should.
My data is aggregated at the database, giving a dataset of:
Date of data
Count
Sum of Value
Filter Item 1
Time Since Date
Stacking Category
5 other fields
I am plotting with Time Since X along the X axis, Stacking Category is my Series field (there are 4 possible options), and my Y is using this function:
=RunningValue(IIF(Parameters!VolumeOrValue.Value="Volume",
Fields!Count.Value,
Fields!SumValue.Value),Sum,Nothing)
This should show me in the first X bar only 1 of the series, with a count as 1, or value of 100. Instead I get 3 of the series, with Counts summed up to 2500, which is more than the total sum of all of the count fields.
Can anyone point me to where my problem is?
Edit: Setting the CategoryField in the Series Properties dialog to match the Catgory that is set for the chart means that each bar is increasing by the right amount, but each stacked slice starts at the size of the entire value of the last bar. I need to get the reset to work properly, but I can't set any "Groupings" as normally recommended, and choosing any field name or Series name causes an error.
I managed to get it working quite simply...
Clicking on the Field on the right hand side of the chart on the Drop Series Fields Here section has a Group properties which when expanded has a name of the grouping. Plugging this into the RunningValue function as the last argument got it working properly (after removing the CategoryField setting).