Mixing detail rows in the middle of grouped rows - reporting-services

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)

Related

Keep rows together on the same page in ReportViewer (RDLC)

I've created a RDLC report that looks like this:
Basically data is grouped first by Category and then by Subcategory. Then, as you can see from the screenshot, the Details group has multiple rows, since I want to organize data in that "grid-like" layout.
Now, the problem is that I want the following pagination behavior:
The first row of the table ([Category]) should never have a page break after it, in other words: it should always stay together with the second row ([Subcategory])
Same with the second row ([Subcategory]): I never want a page break after it, it should always appear together with the first block of detail rows
The details rows should never be split into multiple pages, so I want all the 9 table rows in the details group to always appear together on the same page
I've been playing around for several hours with the KeepTogether and KeepWithGroup properties of the Row and Column groups, but they mostly seem to have no effect whatsoever. How should I set them to achieve the behavior I want?

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.

Freeze Column in SSRS report

I know this is been asked a million times and I have done it myself successfully a number of times however better to check than to assume it can't be done in my scenario.
Is it possible to freeze the first detail column where a parent group exists?
I have a parent Group setup which is grouped on 3 columns (in Advanced Mode Row Groups there are 4 columns above the Parent group, the 4th being the first detail row header and 2 static columns between the Group and the Details, the Details being the last column and I have a number of Static Column Groups) and I have right clicked on the Tablix header to view the properties and checked under Row Headers "Keep header visible while scrolling", and it Freezes my 3 columns in my Group only. So now I just want to freeze one more column the first detail column adjacent to the group - is it possible. I have as other posts suggest goto the static column and set the FixedData for scrolling but what Static column, I tried a number of combinations.
I also tried the Fixed Data on the first Column Group however When the "Keep header visible while scrolling is checked it does not compile and when it isn't ticked it freezes vertically and might I add horizontally as well which is just wrong and it scrolls on the first detail column only and not the 3 preceding group columns!!
Answer is to make my first detail column a child group of the existing parent column so now I have 2 levels of grouping and details. Should have thought of that!

Add "COUNT" column in SSRS in place of details rows

Apologies for this very newb-like question. I have some detail data that I want to group... I have added three group by columns (LOB, Event Classification, Assigned) to my table and want to add a third (Count) that counts the number of rows in the third (Assigned) group. At the moment I do this simply by adding a CountRows() column within the last (inner most) group. This is all I want to show. But I am forced to add a details column that I do not need (in this case I have "Amount"). Please see figure below:
Basically, I like what I have, except that I don't need that last "Amount" column. If I hide it, the row heights stay the same (i.e., their height is determined by the number of rows in the hidden column). I'm guessing I'm missing something pretty fundamental here. Any ideas?
From http://consulting.risualblogs.com/blog/2013/06/28/tablix-body-must-contain-at-least-one-column-ssrs/ I found:
Right click the last column, ‘Column Visibility’, ‘Hide’
2: On the ‘Row Groups’ or ‘Column Groups’, right click the ‘Details’ grouping and press delete, but only delete the grouping, not the associated rows and just delete the data in the last column.
It sounds like you need to place your values in the header of the last group defined which in your case is "Assigned". And remove the detail column. This should allow you to aggregate your values outward. The Count column would be a second group header for the Assigned group.

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? :-)