SSRS empty value for sparkline - reporting-services

I created an SSRS report to show results of data received/loaded for the last 12 months. There are 3 data sources and 2 of them have data populated for the entire 12 months as expected. One of the Data Source has data populated for only the first 6 months, not the last 6. The trend line/sparkline is accurate for the 2 of the data sources but not for the 3rd where there is a drop off. I want to add a sparkline which shows the dropoff when the counts go from 999,999 to 0.
Example:
Click here to see report issue
Note: there is no data in the DB, so the results for the last cpl months or so never appear in the results set.
I need to update Data Source 1 to accurately reflect the last couple of months as 0.
Please help.

Related

SSRS Report only returns a single row of output instead of multiple pages of output

I am looking to build a report in SSRS that has 3 columns, similar to the data below.
The query behind the report returns a single row for every field in the 3 columns.
The report returns 20 rows for example, with 50 fields each pertaining to the elements outlined below.
However when I view the report I only see the first rows output. I need to create the elements in very particular positions and don't want to use tables and concatenate fields. I need a flat report 8.5 x 11 with elements in specific positions.
How do I fix the grouping so the report returns every row sent from the query.
There is no table, no groups. Only a single page with elements on it.
Please advise.

Add Paging to a SSRS Tablix in Report Builder

I currently have a report that consists of a single table/tablix that contains company name, year 1 revenue, and year 2 revenue. The table is sorted by year 1 revenue descending. The report often returns several hundred company names however. Is there a way to only display 10 records at a time and enable a paging option to then move on to the next group? I am using Report Builder 3.0.
Create a row group on your "details" row and hide it. Set the group on to:
Ceiling(RowNumber(Nothing))
It basically assigns whole numbers 1,2,3..to every consecutive chunk of 10 records.
Next, in the page break options configure the page to break at the end of every instance of group.
Ta-da! Pagination done.

ssrs linked reports not updating

I have created a linked report in ssrs. I have made a action from the values in a Pivot matrix to another report which shows just raw data. My Pivot matrix is perfect however when I click on a value for example 9 and takes me to my raw data report I only get back 8 results. My parameters pass through fine.I ran a query in sql server to see that result did not come back in the report and that record was created on a different date than the other 8 that came back which were all created on the same date.
Note some linking works fine if I click on the value of 10 it will bring back 10 results.
The scenario I have is the matrix has a count value of items on a particular day. For example day 1 has 10 assets sold and when I click on that value it is meant to show the 10 assets in another report. Sometimes only less will show. could this be a cache error or a coding error?
Thanks

SSRS 2012: Sparkline Chart Per Every Details Row

I have a stored procedure that returns data in this format:
Location MorningSales NoonSales NightSales
A 12 6 32
B 20 43 12
I have my table displaying the above data in details (not grouped) format. I now want to add a sparkline at the end of each row, using the numbers in those three fields.
They should look something like this:
I just cannot for the life of me figure out how to setup category groups for each field.
I was able to have this result before by bringing in the data as multiple rows for each Location, i.e.:
Location SalesTime SalesCount
A Morning 12
A Noon 6
A Night 32
B Morning 20
B Noon 43
B Night 12
But for the purposes of speed, I had to pre-calculate my sums and avgs in a stored procedure, since SSRS seemed to take forever and a day to render the report when it calculated the aggregates itself.
Is there any way to pull off what I'm trying to do here?
I think my question is similar to this one:
SQL Server Business Intelligence Studio: Line chart from single record
The accepted answer there is to rewrite the sql query and end up with something similar to the second dataset I showed here. If it can't be done any other way then fine, but I don't mind hacking and rigging to make it work for my situation.
Hope below link helps you in finding the solution:
http://www.sqlcircuit.com/2012/11/ssrs-how-to-add-sparkline-in-tabular.html

Monthly columns in SSRS 2008 from Fetch XML

I have an annual report where I want the months to be displayed in columns Jan-Dec, even for the months that don't have any values.
Today I have a matrix report that starts on May as that month is the month with the first values. But I want the tables to start on January, even if there are no values for that month.
I also wonder if I can have several rows in the same matrix but with different data sources (XMLFetches).
I'll explain a bit more. Really ought to be a fairly simple raport where I want to show how much is sold on a monthly basis and each month is a column and the rows are the products.
i'm using a fetchXML from CRM 2011 on-line.
Month jan feb mar apr may jun jul
Wheels 0 0 0 0 10 65 75
Cars 0 10 0 10 0 100 175
It's not possible to combine different datasets in the same matrix on the report, however, you can combine datasources to create one dataset before presenting the dataset to a report. For example you could use a stored procedure (or SSIS or powershell etc) to read from the database and combine the data into a table, temp table, table variable in the database and then query that from the report - or in the Fetch XML
To get a report that shows calendar entries even for entries that have no data you need to start with the calendar you require and then left-join it to your actual data.
If you are doing this from dynamics CRM and are familiar with editing the FetchXML yourself then you can join data from multiple entities using the with the as appropriate. This other article on stack overflow details that technique: Left join in FetchXml?
For example, if your report has just the months, you could create a calendar table with 3 columns, Year, Month and MonthNumber. The MonthNumber is important for sorting months in the report because you can't order months alphabetically. If you only ever show a single calendar year on the report then the year column might not be necessary but this is something you can reuse for many reports so it's worth doing properly. If you want to read more about them, look up "calendar table", there are many opinions on how to create them, but maybe start with a simple one to get comfortable with the idea.
If you left join the calendar table to your month data, you will get NULL values for the months January to April (because your data starts in May) and you may want to replace these NULL values with 0 or an empty string, depending on what is appropriate. Using isnull() or nvl() or whatever the appropriate function is in your database could be appropriate there.
The answer to how I built the sorting on month is that I used parameters to build up the month-year value for a specific column that I then use to compare with the month-year-value from the fetch.
In the column
=Sum(Cint(IIF(Fields!startmonth.value=Cint(Parameters!year.Value & Parameters!jan.Value),Fields!money.Value,0)))
So the month-year-value from the fetch is via a calculated field built up to e.g. 201302 and that is then compared to the selected year 2013 and added the monthvalue for that specific column 02=201302.