SSRS Keep Together property doesn't work - reporting-services

i have a report page,and inside of it,near the end of the page there is a 6x3 table. when i run the report,first row is shown in the first page,and the other 5 rows are shown in the second page even if the keep together property is set to True. Does not the Keep Together property mean that keep all the rows together . How can i fix that ? thanks in advance.

The keep together property attempts to keep individual rows on the same page, not all the rows.
i.e, if you have a detailed row that is filled with content spanning multiple lines, that will still be kept together in the same page when possible.
One possible solution might be to put a rectangle in that page, and putting the table inside the rectangle. Not 100% sure it will work, but that is what I would try.
Hope it helps.

I was having the same problem. The solution is to right click on the table, Add Group, and put everything you want unbroken up in the same group.

Related

SSRS - How to repeat entire first column on each new page for Matrix

How can I get the entire first row of a matrix column(aka Row Headers) to repeat when the columns of the matrix expand to new pages?
I've tried many solutions I've found online, but none of them have helped. I checked repeat row headers/column headers under Tablix Properties, under advanced > Row groups I set all static elements to Fixed Data/RepeatOnNewPage = True/KeepWithGroup = AFter. None of these have worked.
An example of the report setup/First column. https://imgur.com/a/oX8b6p0
I would expect the entire first column to repeat on additional pages when the number of columns spans more than 1 page.
Sometimes to get around the wonky-ness of SSRS, sometimes the best solution is an alternate solution.
If everything you are trying isn't working, you could always put labels in the page header that way it guaranteed repeats. However this solution isn't ideal because of the extra whitespace it creates in the header even if you hide the textboxes.

SSRS - Adding empty cells under a tablix to fill empty spaces on the page (if any)

I work with ssrs with a dynamic row data in matrix/tablix. There is possibility when I have more than one page (say it two pages) where the data just fill half of the second page and leave a blank space below (half page blank space on the second page). How is the way to fill this blank space with empty rows? (whether rendering empty rows in the tablix, or inserting background image, or anything. I don't have any solution yet as it is dynamic data with many possibilities of the blank space size on the page)
Unfortunately there aren't any settings in the reporter that support this behavior. There are however several workarounds you could use to get the wanted result.
[1]
You could determine the amount of rows that fit on the first page and on the second page, just in case you have items above the
table on the first page. Before you send the datasource to the
reporter count the total rows and check if it exceeds the first page.
Then calculate the number of rows missing to fill an entire second
page (or third/fourth... if you ever get more data). Finally you add
empty rows/objects at the end of your datasource, which will of cource
cause the pages to be filled to the end.
As was pointed out before, this solution is only possible when working
with fixed row heights. If certain columns can have multi-line cells
then these could be checked as well and taken in account when
calculating the number of rows being displayed on the page. This makes
it slightly more complicated but is still a valid solution if you can
predict which columns might be troublesome.
[2]
A second solution would be to hide the table borders and place the table inside a rectangle that spans the maximum size of the
page. The borders of this rectangle can be used to display the table
outer borders and columns can be displayed by adding lines inside the
rectangle. This will cause the columns to fill the last page of the
report automatically. Unfortunately this isn't a solution to display
horizontal grid lines.
[3]
A third approach is adding an extra table directly below your table
with the same size of columns. Using the same method as from the first
solution you could fill the second table to represent the empty rows.
You'll probably have the same issue as with the first solution when
dealing with multi-line rows though.
I believe solution [1] and [3] will offer the most exact solution, if you're willing to do the math. If you don't want any horizontal lines then I suggest using approach [2].
Using an image to overlay the borders is of course another option but then you'll have the same issues when dealing with the multi-line rows. If you plan on working with fixed row heights, where you leave space for multi-line cells then this is becomes a valid approach but so does solutions [1] and [3].
Update:
If you only need the filled pages for printing you could make sure you add enough empty rows to fill at least the entire last page, these may go to a new page (1 new page, not 2... you can use a simple calculated guess for this) and exclude the last page when printing.

Fixed row in SSRS Child Group

Hi below is an image of my report which utilizes a toggle. The toggle data is only one row which will then contain 50+ records, as well as column headers for that data.
I am wondering if there is a way to Fix these (sub) column headers after they have been toggled open?
I can get the first row Fixed, and when using the same techniques on the Child Group I receive the message:
The tablix 'Tablix1' has an incorrectly set FixedData property. FixedData is not allowed to be set on row TablixMember, unless it is also set on the first row.>
But, when it is set on both rows, neither of them act as though they are Fixed Data :/
I don't even need the first row fixed but if anybody has suggestions please help!
Below is a link to a picture of the report, you'll notice the yellowish row with my toggle, and i would like the column headers below that to be fixed. Is this possible??
https://www.flickr.com/photos/125488420#N02/14450152092/
The row groups below: (I KNOW ABOUT (Static) vs Static.. This image is of the original version. Please just note which rows should be Static headers, please done make that the only content of your response)
That said, I think my grouping is the issue, but I'm struggling to get it the way I want
https://www.flickr.com/photos/125488420#N02/14450154942/in/photostream/
I have an answer, though it is not what I'd hoped for.
Firstly, in order to have a static row, the first row must ALSO be static.
Further, any static rows need to be "Contiguous" meaning that there cannot be a gap between them (ie rows 1-3 is ok but not rows 1 & 3 only)..
I experimented with some workarounds such as using multiple tablixs, row groupings, etc.
And in the end it was unsuccessful, and not worth continued effort. Unfortunately users will not be able to have the headers follow them down. :(
If somebody has a solution or Non-Contiguous Fixed data is allowed in future releases please post!

SSRS tables side by side

Ive got an RS report set up and i have 2 separate tables, one is a 10 column table with 6 of the columns hidden until expanded on. I also have a table next to this one, however this table sits at the far end of the first table as if it was all expanded. What i want to do is have it so that the 2nd table sits on the end of the first table and moves when the fields are expanded or collapsed! Hope that makes sense!
Managed to get it to do exactly what I needed, took a bit of trial and error but it was actually the chart that sat below the two tables that was affecting the position of the second table. I put the two table inside a rectangle sitting side by side and it worked perfectly!
Try to show top #number rows and not hide unnecessary ones. and by expanding change #number.
You cannot achieve what you want. Moving elements like that would require SSRS to sometimes move your table on the next page when it goes too far on the right.

Multiple tables/tablix depending on query

Is it possible to display dynamic number of tablix(es) in a report?
That is, if we do not know the number of tables/tablixes to be displayed in advance.
The requirement is that all the output tables will have exact same structure (row and column lables, groupings, etc.).
If you are using data from a single data source, you could achieve this result by using a single tablix, having the highest grouping on the item(s) you want to use to break up the tablix and including a page break as part of that grouping.
For now, I found a way to solve it. Created a static row within the top group and set set its RepeatOnNewPaAge=true. Remove the borders, so that it looks like a separate text above the table.
This way, it prints the latest group info at the top (because it is part of the group) and also gets displayed on every page, because it is statc. Cool huh? :-)