SSRS report - missing borders in detail rows under groups - reporting-services

I want my report to have borders around all cells in all rows. In picture below you see that borders in detail rows under groups are missing. How to add them?

It is possible to show all the borders with a few rearrangements.
The problem is that you can't split vertically merged row group header cells from outer groups, this works only once in the first outer group.
The rearrangements would be to delete the outer group columns, here from left to right (delete only columns, not groups!), then you should be able to create new rows and columns step by step and split cells if necessary, at some point you may need the "HideDuplicates" options, depending on the actual structure of your tablix or matrix.
If needed, play with the options to add group results, add/delete rows, columns and headers (deleting only the rows, not the groups).

Related

SSRS Repeat table for each record of results

Apologies if I have missed it anywhere else but I can not find any examples of this.
I am pulling data from sql into SSRS and rather than have one row in a table per record, i want a table/group of tables to replicate per record with the ID field as a table title. Something similar to the below image. Is there an option in SSRS to do this? any help is greatly appreciated.
wanted output
You can do this with a row group based on NoticeNumber. Simply add two headers and group detail.
Add a table.
Add a row group with the group field being Notice No. Make sure you select the option to add group header.
Right click the row header added in 2a and select6 "Add Row|Inside Group Below".
Add the number of columns you want for each record.
Select all the in the top group header row, right click, and select merge.
Add your Notice number to the merge cells.
Select the merged cell and set its text alignment to left aligned.
Paint all you cells in the row produced in 3 above gray.

Create a Header Row in SSRS

I am trying to create a header row for a matrix in my SSRS report. Currently my matrix is configured as the following:
If I right+click to add a new row, it will insert a row above but I cannot merge the entire row of cells to form a single row, the grouping columns stay separate:
My work-around has been to add a text box above the matrix, but will not keep the the rows together in a page break:
Is it possible to add the header row? And if so, what would be a good way to accomplish this task?
I had the same issue! I wish they would let you merge across the row header; or add a new region of matrix called "title" .
My tablix also had dynamic columns, so I needed the width of the box on the top to expand and collapse with the rest of the table.
There are two ways you can handle it (that I know of)
1. Create a "parent" list object with two rows and insert the table in the second row
2. Put all the columns to the right of the row header
To solve my problem I tried both. First, I added the list with one column and two rows and I copied the entire table into the second row. The first row of the outer list is now centered and spans the entire table. It was messy because I had dynamic columns with a toggle for visibility. The outer list had to have columns that lined up with the visibility set to the same toggle. It was a messy work around because of that.
I decided to try the second method above and insert new columns on the other side of the row header.
The challenge is that row header group labels will repeat for each row... in your example RoleID would repeat down each detail row. I created an expression to only show when it was the first row of the group.
=iif(RowNumber("roleid_group") = 1,
max(Fields!roleID.Value,"roleid_group"),
"")
I used an expression to only show the border when it was the last row in the group:
=iif(RowNumber("roleid_group") = countrows("roleid_group"),"Solid","None")
This gives the illusion of a grouped row. Don't delete the row header columns (column 1 and 2) until you get it working because its hard to add them back.
Careful: This method though doesn't work well if the text of the row title needs to wrap. (The first row of the group will be wider --row height is set to can grow.)
If there is another way I would love to know. These are both somewhat tricky but get the job done.

Mixing detail rows in the middle of grouped rows

I have a report that need to show rows grouped by some criteria, let's say SubjectId.
But, final report preview need to looks like table below:
Little explanation:
Rows 11 and 12 belongs to group 1, and I need to put those 'Details rows' in the middle of table and after those two columns, I need to continue with group data, and that method would be valid for any group in table.
Everything would be easy if those two details columns are last two columns, but I have problem to get preview from picture if those columns are in the middle.
I'm not sure you can do this.
You could get something similar by just adding your Gender column at the end and then setting the HideDuplicates property of the textbox top True but that will not allow centering etc.
This was the output I got after applying the above.
I've used Category twice just as an illustration (that it belongs inside the row group)

Print all group footer rows on the next page if they won't all fit on the first page

I have a purchase order form in SSRS. It's grouped on the Purchase Order number. There are four rows in the group footer for totals.
Is there a way to keep all rows in the footer together? That is, if all of them won't fit on the page, that all of them will be printed on the next page.
You have two ways of attempting to accomplish this. Using the KeepTogether property for the selected rows or the entire group
Or when SSRS inevitably doesn't do what you want it to do, you can do the ole Rectangle and Textbox trick. Insert a row above the subtotal that is also a group footer. Then insert a rectangle. Once you do this, you can insert a bunch of text boxes and move them freely around and structure them in the same way you had them formatted the 4 separate rows. It would look something like the below. With this way SSRS couldn't split the row onto multiple pages because its all in the same row. For insurance purposes check the KeepTogether box for this row as well.

I can't merge certain cells in SSRS

I have added a row into my report by right clicking the top row and selected add row above. Then when I try and merge all the cells in the new row it doesn't give me the option when I have selected all the cells and right click.
I can Merge 2 or 3 cells but not the whole thing.
My question is why cannot I not merge all the cells? Is there something in the a certain cell I can't see or a creation property that needs to be changed.
Thanks
There seems to be an invisible lines between the row headers and the data, and also the column headers and the data. You cannot merge across these lines.
The solution is to keep you groups and delete the row and column headers. You can put the header rows inside the data area and you can merge cells too.
Sometimes you can only merge the cells from a row if you merge the cells from the row above.
_____1__________2_________3____
A |__________|__________|_________|
B |__________|__________|_________|
Sometimes you can only merge B1-B2-B3 if you merge A1-A2-A3 first.
This problem occure with grouping. You cannot merge across group lines. I have not had a problem merging when there is not a group. There is not a way around this.
if you're trying to create a header row for the whole table. you can create a separate table with 1 column and 2 rows and insert your table into the 2nd row of the new table. the 1st row can then be used as a header
The left-most column has been auto-added as a group, so it can't be merged with cells to the right. But you can delete that column and keep the grouping.
What I do is click on the second column (inside the grouping), then 'add column to left'. Then copy all of the Group fields from the left-most column into this new column, then delete the left-most group column. You should now be able to merge the cells.