I have an 2016 SSRS report with 3 Values and 1 Category Group
The first 2 values are hours per month and the 3rd Value is Agency spend
I've added a secondary axis for $value of agency spend
Secondary Vertical Axis Properties is set for Min: Auto and Max: Auto
This returns the Secondary Vertical Axis of $0 to $100 as the range when in fact the Agency $values are around $0 to $4000
When I set the Max to $5000, it works.
I've created this in Visual Studio 2017 with SSDT 2017. Wondering if this is a bug with the SSDT 2017?
Related
I have a line graph in my report.
My report has no parameters on it.
What I ideally want it to do is if I run the report today (May) it will only show me the last 12 months so May to May.
At the moment it is including April from last year as well, so would want that excluded. If I run it in two months time in July I would want it to only show July to July.
Hi,
The key here is the DatePaid field. This is the date that drives the graph.
The graph gets the Financial Year and Month from a date table.
The plots on the graph use an expression -
[code="other"]=SUM(IIF(Fields!InvoicePaid_.Value = "Yes" And Fields!PaidTarget.Value = "InTarget",1, 0))/Count(IIF(Fields!InvoicePaid_.Value = "Yes", 1, Nothing))[/code]
This allows a % to be calculated on the graph series you see above, to just show invoices that have been paid and are in target.
The report uses TSQL and I'm wondering if there is a flag I can place against any invoice that was paid 12 months ago. And then via a filter remove them from the graph?
So today date is 02/06/2015. I would want to mark all invoices with a flag upto 01/06/14 so they all appear on the graph - but May and April 2014 would be excluded.
Then when I run the report next month say - 7th of July 2015 - June 2014 will no longer appear on the graph but the 01/07/2014 and onwards would?
Hope that makes sense.
Alright, this is kind of a convoluted problem, so bear with me:
I have a chart that displays 25 hours worth of data from rows sent to it. The hours of the data are to be displayed starting and ending with the 22nd hour. That is, the x axis goes 22, 23, 0, 1, 2, ... 22. It's important to note that there are two 22nd hours on two separate days.
Now, it is possible that the database will not return some rows. In which case, there must be an empty space for that hour. However, there must still be 25 x axis values.
This combination of restrictions has me stumped. I can't represent the x axis as a custom scalar, because the values are to be displayed out of order and duplicated. And I can't find a way to use an x axis category because I won't get all of the categories from the data and, again, there is a duplicated 22nd hour.
Any help is appreciated, let me know if I can provide any additional information.
I would add a column to the dataset to calculate a "relative hour". This would start with a value of 0 for the 22nd hour, 1 for the 23rd etc finishing with 25 for the 2nd 22nd hour.
Then I would change the Category Group definition in the Chart to use that "relative hour" value as the "Group On" value. Note the Label can remain as is.
I would change the source dataset so that it always returns a row for all the 25 x axis values, e.g. via a right join to a numbers table. Rows representing those "missing" hours will need both the "relative hour" value and your existing hour column value for the label.
How can I chart year on year percentage change in a reporting services chart?
From my source data (which is a SharePoint 2010 list) I can use the "Previous" function in a table to work out the percentage change over time in years. I have row groups (the years shown below) and column groups (A, B and C).
A | B | C
-----------------
2010
2011 3% 4% 5%
2012 2% 3% 1%
The formula in the table is (year 2 rate - year 1 rate)/year 1 rate. The first row is blank because I have an iff function checking if there is a previous row, and to show nothing if that is the case. Otherwise it does the calculation.
I cannot use the previous function in a chart. How can I graph this? If this was a normal database I would look to doing something at that level and present the to reporting services, but with a SharePoint list I can not and have to do the grouping and other work in reporting services (2008 R2) itself.
Any ideas? I am open to presenting the data in another way if that can effectively provide some view of how the data has changed over time in a chart.
To extract another years set of use the lookupset function and the sum function e.g.
=sum(fields!number.value) - sum(lookupset(fields!year.value - 1, fields!year.value, fields!number.value, "dataset")
Further reading http://msdn.microsoft.com/en-us/library/ee240819.aspx
Also the lookupset function returns all matched values and the lookup function returns the first only.
I have to produce a report where in my row values should sum up on collapse (summary data) but column values should not sum up on collapse, rather show the last value. Here is a sample report
Fully expanded report
-2012
Jan Feb Mar
-India Chennai 10 8 9
Bangalore 15 15 16
Rows collapsed
-2012
Jan Feb Mar
+India 25 23 25
Columns collapsed:
+2012
+India 73
However, I don't need summarized data as sum for column collapse. The right data would be the last one available in the month data, which will be
Columns collapsed:
+2012
+India 25
I don't find any semi additive function available to be used in the report's tablix cells. Either i can use sum or last which applies to both rows and columns summary, which i don't want.
We don't have a problem with this in pivot table as we have defined the measure as a semi-additive measure on time dimension. The only problem is with the report designed using SSRS. Any idea on how this can be achieved?
It sounds like you are using a cube as your data source? If that's the case, don't use the SUM function in SSRS for the expression in the textbox. Instead, use the AGGREGATE function. That tells SSRS to get the value from the cube. If it's defined correctly in the cube (as shown by your pivot table) then you should get that same value in your report.
I'm a bit confused with this one.
I have a Dataset with a BackupDate and a BackupTime as well as a BackupType. The BackupDate is comprised of 12 characters from the left of a datetime string within a table. The BackupTime is comprised of 8 characters from the right of that same datetime string. So for example: BackupDate would be 'December 12 2008' and the BackupTime would be '12:53PM.'
I have added an XY-scatter chart to the report. I've added a 'series' value for the BackupType (so one can distinguish between a Full/Incr/Log backup). I've added a category value of BackupDate and set the Scale for the X-axis from the Min of BackupDate to the Max of BackupDate. I've then added an item to the Values with the Y variable set to BackupTime and the X variable set to BackupDate. The interval for the Y-axis is 12:00AM to 11:59PM and the formatting for the labels is 'hh:mmtt'.
The BackupTime matches the format of the Y-axis. The BackupDate matches the format of the X-axis. 10 entries are retrieved by my Dataset and the Legend is properly populated by the BackupType field.
No points are being plotted on the graph and no markers/pointers are shown if they are enabled. There should be a point on the graph for every point in time of each day there is a backup of a specific type.
Am I missing something? Does anyone know of a good tutorial dealing specifically with XY-scatter graphs and using them in a way I intend?
I am using the 2005 version of SSRS rather than the 2008 version.
Screenshot of what my chart currently looks like:
In case it could be dataset related:
SELECT TOP (10) backup_type, LTRIM(RTRIM(LEFT(backup_finish_date,
12))) AS BackupDate, LTRIM(RTRIM(RIGHT(backup_finish_date, 8))) AS BackupTime
FROM DBARepository.Backup_History
As requested, here are the results of this query. There is a Where clause to constrain the results to a specific database of a specific server that was not included in the above SQL Query.
Log Dec 26 2008 12:00PM
Log Dec 27 2008 4:00AM
Log Dec 27 2008 8:00AM
Log Dec 27 2008 12:00PM
Log Dec 27 2008 4:00PM
Log Dec 27 2008 8:00PM
Database Dec 27 2008 10:01PM
Log Dec 28 2008 12:00AM
Log Dec 28 2008 4:00AM
Log Dec 28 2008 8:00AM
As the data grows, the scatter chart avoids X-axis values if it extends the (floating/numeric) limitations
Open the chart properties->X-Axis tab->Minor tick mark->Numeric or time-scale values...
It should solve your problem.