Table of Contents with Page Numbers in SSRS - reporting-services

I have been researching how to do this. It looks like I can name the DocumentMapLabel for a matrix item, in an SSRS report. I can then create basically a hyperlink to that matrix, in another item (such as another cell in another matrix). What I can't seem to figure out, is how to get the dynamic page number to also be computed. It would seem if you could have page numbers in the footer, then SSRS is capable of calculating a page number. I want to get the page number, that the beginning of a matrix or tablix starts at.
Is this something that can be done?
Thanks!

Related

SSRS grouping - dataset values in header and footer

Been pulling my hair out over an issue in SSRS. I"m converting Crystal reports to SSRS. What I have is a Dataset in a table in my detail area of my SSRS report, grouping on a certain field, displays data and summaries by group, no problem. What i need to have however, is data from that same group in the page header and footer, sometimes certain values as a summation of a numerical value from the dataset for that same group. When I attempt this (i.e. = Sum(Fields!payment_amt.Value, "DataSet1"), I get the summation of that value for the entire dataset, not just for the group in question. I need it for just the group. in the page header and footer. Likewise doing something like First(Fields!columnname.Value, "DataSet1") will only display the initial value of the comlumname for the dataset, and does not page to the next value in the grouping as I scroll through the pages
SSRS will not allow you to put a table or subreport in the header or footer, so i cannot simulate the data retrieval in the header and footer to match the specified grouping in the detail area. It seems Crystal Reports and other report tools can handle something like this just fine, with sort of "free form" in the headers and footers, which display the proper data in the page headers and footers base on the specified groupings.
SSRS seems to rigid with requiring the Table Layout for datasets for grouping, not allowing for free form style. is there a way around this?
Without seeing exactly what you are trying to achieve I can't give a specific answer but you can reference textbox names including the textboxes that make up your tablix.
So, if you have a tablix and one of the columns showed, say, an account balance. Click the cell in question and get it's name from the properties window. If it's called, say Textbox99 then in your header you can refernce is with something like
=FIRST(ReportItems!TextBox99.Value)
Other types of aggregations are available..

Interactive Sorting in a paginated row group Tablix with Chart

I have simplified my problem as follows:
A tablix with 2 columns dataset: Code (a, b, c, ...), and Value (random < 100).
Make a paginating group of 5 rows from the detail, steps here.
Add an additional row inside the group, merge all columns, put rectangle to hold a Chart pointing to the same dataset. This is Chart1.
Add another row outside the group, to hold another copy of the exact Chart above. This is to later help the interactive sorting to work on the details beyond the boundary of the groups. This is Chart2. The final design will appear like this:
Create an interactive sorting for the column Code following this:
The final work shall look like this, where you can navigate the pages, while also have the 'sliding window' effect for viewing the chart, that is: Page 1 is a-e, Page 2 is f-j, etc.. Note that the interactive sort is also honored.
For simplicity, please download my RDL here.
Now, my problem: I have to make Chart1 to be on top of the Tablix1.
Doing so will make the column header of Tablix1 to be sandwiched between the Chart1 and the details. This will make the Interactive Sort to behave incorrectly, that each page have its own state of Interactive Sorting. How to solve this? Modified RDL here.
This link solves the question by doing a self referencing Drill Trough by the click of a cell or image. The Action will pass the parameter to toggle between Ascending and Descending sorting order of the Tablix.
Combining the above the solution with this other link, we can keep the number of tablix stays to one, regardless of the number of columns to sort.
Get the final RDL here.

Repeat multiple charts on each page of subreport

I've a SSRS page which has header, two charts with different datasets and a subreport below charts.
When I run the page and drill down (I click on one of the bars of chart, it calls itself) and data populates in subreport which spans multiple pages.
My problem is I want to repeat those charts on each page. I've searched and tried a lot However nothing worked forme.
How can I repeat charts in multiple pages of subreport? Please note that I've got charts with different data sets and that subreport is used at multiple places.
Thanks for the reply mike.
I believe it can not be achieved using subreports. hence, i embedded that subreport tablix into report and did as suggested by mike(charts went into header row).
Since tablix accepts only single dataset, i created a big dataset that has all the fields for two charts and data and applied required settings to get the job done.
It worked for me(at least to get the job done.).
I had a report that after each record (customer), I put a page break so that each record got its own numbers in one page. I also wanted to add a graph specific to only that customer. So i added the graphs into a table. In the table where my graphs were place, I added a parent group group - the same group as my data and I checked that the table also had the page break on the same group. This separated each record into a page each and also added the graphs to its corresponding record.
I would try to wrap the two charts and subreport inside a tablix. The dataset for the tablix would be one that returns a single row.
The two charts would go into the header row(s). The subreport would go in the Detail row.
Row and Column sizes need to be expanded to fit the chart and subreport sizes. There may be only one or two Columns depending on your layout.
Then I would use the dreaded "Advanced Mode" technique to get the header row(s) to repeat on each page, e.g.
http://blogs.msdn.com/b/robertbruckner/archive/2008/10/13/repeat-header-and-visible-fixed-header-table.aspx

Split pages in SSRS with parameters and different datasets

I would like to know how to organize my report to be able to display few charts coming from different datasets depending on a specific field for the page.
So I would like to have 5 pages containing each 3 charts from different datasets based on the same parameter.
It is something like the wizzard generates but I am not able to add a chart coming from other datasets and if I create another area with the parameter as header, it is splitted in 5*3 pages.
Any suggestion is welcome, thanks in advance.
Try inserting 5 Rectangle items into your report and add a page break after each one. You can then insert Charts into the Rectangle items, making sure they are sized appropriately. Also make sure the SSRS parameter points to the parameter used in the charts' Datasets.

Displaying different hidden textboxes from Dataset on Page Header in Reporting Services

In my report I have Matrices that appear according to the parameters on a SP. Each Matrix holds an specific "code"/description which I want to show on the Page Header accordingly.
I tried using an <<Expr>> but that didn't work well as it only shows the first record of the database instead of the code for the specific matrix.
Then I found out that I can show an specific textbox with "=ReportItems!TextBoxXX.Value" and so I added to each Matrix the code value hidden.
Now I thought of adding in the page header inside a TextBox a concatenation of all the values, but that didn't work, and I got a:
"The value expression for the textrun "textboc11.Paragraphs[0].TextRuns[0]" refers to more than one report item. An expression in a page header or footer can refer to only one report item.
Hence, my next attempt consisted of adding separate text boxes each one with the desired TextBox Value and one behind the other (like a Pile of textboxes). Everything working now, except that the "space" that each textbox occupies appears in the report showing the desired value and a white space above each textbox when rendered.
Any ideas of how to prevent this behavior? Maybe creating an array with the textboxes and creating an IIF or I don't know, I've been searching for days and nothing seems like a good approach.
I hope someone can give me some advice and that I explained myself.
Thanks!