Reporting services - different formatting for patrent group - reporting-services

I have a raport in SSRS with several row groups, like:
Is it possible to specify formatting for one of the groups (the main one)? To achieve effect like this (lines of the main group are bold):

Unfortunately, there's no easy way to do this.
The easiest way to do this would be to create a List object (which is just a table with a single cell).
Set the Dataset to the same as the current table.
Set the grouping to Group By the field in Column 1.
Add the borders to the cell.
Drop the current table into the new List.
The list will break up the data by the column 1 group and then the current table will display the data as it does now.

What I will do for this is I will make a child for sub report to handle the grouping where I will pass the parameters that will filter and display all of the data from a group.
then the parent class will be the one to calls it thru list and from there I can change the border style or size of list. in this way, the grouping will have a solid border per group

Related

How to bind multiple table to single dataset in ssrs

I am trying to repeat the table data for showing 2 list based on in-out time. So I have copy-paste the table and applied filter function based on in-out time to single dataset. I can view two table in report output as it is but when exporting to PDF table gets overlapped on each other. Also filter seems to get applied to only one table.
How we can tackle PDF export issue?
What are best way to repeat table using single dataset?
Insert a list into the report.
If you can group the row group on something that will generate two rows then brilliant - you will only need one tablix in the list.
If that is not possible, group the row group on 1. Then insert a new row group adjacent below, also grouped on 1. On the new row that has appeared in the list, insert a new rectangle. Now you can past a copy of the tablix into each rectangle, and page break on the row groups instead of the tables.
The groups & rectangles will prevent overlapping when exporting to PDF.

How can I add an interactive sorting on expression column in Sql Server Reporting Services Report

Hi I am new to SSRS and I created a form. I also added a couple of column based on expressions. I was trying to sort the table on the basis of an expression column but the option is not available in cell properties - interactive sorting. Can anyone please guide me on how to achieve it. Thanks.
You have two ways of solving this that I can think of. You can either:
Move your calculated columns to your Dataset
When you add a dataset to a report, on the Fields tab you have the option to add Calculated Fields. If you add your expression column here, you will be able to use it in the Sort tab of your Tablix just as you would a normal column.
OR
Repeat the expression in the Sort property.
If you are not able to create your calculated field on your dataset (perhaps if you reference other datasets or do something out of scope), then you will need to duplicate your expression in the Sort tab of your Tablix. (To access this, click anywhere on your table and then right-click on the small grey square in the top left-hand corner of your table).
If you click Add for a new Sort condition and hit the fx button, you can paste the same expression you used for your column into here and use it to sort your dataset.
The downside of this is that you're replicating your logic and potentially duplicating work.
To enable the interactive shorting in a table you need to have a row group. So by this you can sort the whole table or only a portion of the table.
Say in your case you need to sort the table basis of some expression. For an example you need have an interactive sort based on the values. In the below screenshot I have 2 groups i.e. Customer and Project and I want to have an interactive sort based on the revenue.
Now right click on the Revenue and go to the 'Textbox' properties and select the group and sort by. Here in the screenshot I will sorting based on the total revenue for different Customers.
Now after running the report if you click on the Revenue column it will sort accordingly.
Let me know if this is what you are looking for.

Matching a field with rowgroup value

I'm converting some reports from Access to Oracle. Within Access you can use multiple headers but within SSRS you cannot.
I need to place (within the header of SSRS) a field which takes its value from the value of the current row group.
I know it's unnecessary however, those are the requirements I have been given within the spec.
Any idea how I would achieve this?
If I understand the requirements correctly, you can do something similar in SSRS. Some similar data to yours:
And a table based on this:
There is a group based on DepartmentName. This is set to page break for each group member.
Note that I have three group header rows: one to display the Department Name at the top of the page, one for the columns headers and one for spacing.
Since this is in the Group scope, it will always display the correct name:

List Report in Report Builder 3 - Can it be side by side?

Can a list report in Report builder 3 be side by side instead of top to bottom and if so where can I make that change.
edit--- from what I have found on the net I have to do something along the lines off newspaper column, can some explain in layman terms how to do this.
This definitely possible, but not something offered by default. First we need to understand what SSRS creates when you select a List, then do something similar at the column level instead of the row level.
When you create a List, this is actually a Tablix with one row, one column and one TextBox, with a Rectangle embedded in the TextBox. Since it's a Rectangle, you can then embed any element in the Rectangle in the required position to achieve a free-form list:
You can see there is one group created automatically, called Details. This has no group expression, which means it will just repeat for each row in the DataSet:
So a simple List looks something like this:
To achieve a side-by-side List, we need to change the underlying Tablix to have a similar group to Details, but in a column group.
To do this:
Delete the row group Details.
Add a new column group (name doesn't matter). When creating a group, you must select a column from your DataSet - just select any row here.
Remove the group expression from the new column group
Now we have an equivalent Details group at the column level. It should look something like this:
When run this is now a side-by-side List as required:

Exclude hidden table row from total

I've created a table with a group filter so some values stay hidden.
However, the row that shows the sum() of the above values, still counts the filtered values.
Usually I would apply the filter to the query, but I'm also using this same dataset in other tables on the same report so that's not an option.
Am I missing something here, or is this a flaw in MS Reporting Services?
This appears to be a "feature" of SSRS, apparently because it calculates values in table headers and footers before rendering the detail section of a data table.
One way around this would be to add a derived Boolean column to your dataset (assuming your data source is SQL Server, using a CASE statement or similar) showing whether the row should be excluded from the table where the filter is required.
You can then change your table filter to check the indicator, and use a expression to carry out a conditional sum to aggregate the correct total. Something like
=SUM(Iif(Fields!ExcludeRow.Value = True,0,Fields!ValueToSum.Value))
It's more of a question than answer...
How to resolve this issue if you know whether the row is hidden or not ONLY at the Row Group level?
i.e. if you're filtering on the totals by this Row Group, i.e. you cannot have a field indicating if Row is excluded or not in a dataset.
ex: I have AR Aging report which has totals per months, patients. I need to filter out negative totals per patients (Patient row group), but I have column groups as well - per month, so my dataset cannot be per-patient granularity and therefore, the only place SSRS can decide whether to hide or show the row is on the Row Group level...
I had the same issue but I had too many column totals where to enter the Iif().
I resolved it by removing the filter from the group and putting the filter into the Tablix Properties dialog box (Select Tablix, Right-click the top left corner grey box and choose Tablixc Properties).