SSRS - Matrix Column Subtotals - reporting-services

I'm trying to create a report which has some interesting subtotals which I'm struggling with. Here's what I'm looking to create:
Col Group A (Currency)
Col Group B (Branch)
Row Group A (Account Group)
Row Group B (Open/Close Balance) Amount
Here's an example of what my data could look like:
CAD CAD USD
Main Div A Div B
Account Rec Open 100.00 50.00 25.00
Account Rec Close 123.00 50.00 35.00
Account Pay etc
What I'm trying to accomplish is blank columns after each Col Group without any page breaks. In this example after the CAD currency I'd like to have 4 blank columns to make some calculations (in some cases related to another dataset in the report). Is this possible?

Are you just looking to add some more columns to the Currency group, i.e. in the Designer this will look like:
With the end result like:
I've only added two columns here to keep the image from getting too complicated, but you can add as many as you like.
To do this, I just specified that a Group Footer be included when creating the Currency group, then added another column to the right of the footer row that was created.
Is this the sort of thing you're after?

Related

SSRS Report - Badges

Is there an easy way to do a page of badges in an SSRS report? I am looking at 2 across and 3 down per page based on a list. I have built one so far of a single column using a list box but the problem is that it is not advancing to the next record and shows me the same record over and over until I get to the end of the count of total records in the dataset so I know I am doing something wrong. I am using Visual Studio 2017
I use a matrix when I am making a grid with boxes that go across and down.
First I add a ROW_NUMBER to the query to have the order in which to show the records. I subtract 1 so the values start with 0.
SELECT *, ROW_NUMBER()OVER(ORDER BY EFF_DATE) - 1 ROW_NUM
FROM BLAH_BLAH...
Then in SSRS, add 2 Calculated Fields to the dataset with the ROW_NUM.
The first is named ROW. It will have an integer with the row that the record will end up in.
=INT(Fields!ROW_NUM.Value / 2)
The second is COLUMN that will give the a column number.
=Fields!ROW_NUM.Value MOD 2
Then in the matrix, set the grouping based on the calculated fields.
COLUMN GROUP
Group and Sort by COLUMN
ROW GROUP
Group and Sort by ROW
The 2 can be changed to use whatever number of columns is needed.

How to sum line item of subreport added in SSRS tablix

I've sub-report in one of the SSRS Tablix Cell. It works fine when details grouping is enabled of the tablix. Like below.
Product | Line Item | Adjusted Billings (sub-report column)
XYZ | $30 | $45
XYZ | $30 | $40
As soon as I group the tablix based on Product then the report comes like below:
Product | Line Item | Adjusted Billings (sub-report column)
XYZ | $60 | $45
But my targeted report output would be like this:
Product | Line Item | Adjusted Billings (sub-report column)
XYZ | $60 | $85
In sub-report, I am also using a tablix with one column and header row is set to invisible. Additionally, I've add Sum() in sub-report column as well but still not able to get required results.
Can someone please let me know what I am missing to get required results?
When you add a parent group to your tablix (in your case the XYZ) then click the option Add group header (or footer). An extra row will appear above the detail row. In the detail row you will see all the detailed data (like you first example table). Above this detail row (the header you added) you can write the following expressions:
'First Cell
=Sum(Fields!LineItem.Value)
'Second Cell
=Sum(Fields!AdjustedBillings.Value)
Now it will be displayed like you want it. You can additionally hide the detail rows, this way you just the the summed data.
Basically what is happening is Your sub report cannot group based on Product, It takes the First row and displays it. This is a very classic SSRS issue/use case with Developers.
What I would suggest, Add Product as a Column in your sub report as well and then try grouping on Main Report, If this does not work try grouping in your sub report based on Product as well. This shall work.

SSRS - how to create a double entry table

I need to create a report which is something similar to a Pivot Table.
The report would be something like below, with more towns
I C S Total
Town1 1 2 3 6
Town2 7 1 1 9
Town3 2 3 1 6
Total 10 6 5 21
In Crystal reports, there is an integrated function called Cross table
(see pictures below)
I'm looking for a similar function in SSRS, if there is any. I parsed the internet but I could not find anything that is relevant
Thanks!
You need a matrix to do so
Select the row, once the matrix created, like the image below and click on the row group and look at the group properties
You then choose the row for which you want to do the grouping like the image below
Repeat the operations for the column group.
You will need to add additional row and columns for the total.
I will do that for the row. You click the row to highlight it and then click on insert rows. You then choose Outside group below like in the picture below
Repeat the operations for the column group.
To have total, please put the following formula in your row and column created outside of the group SUM(COUNT(Fields!name_of_your_field.Value)) and you have the double entry table.
Let me know through the comments if you have any issues, I'll happy to help.

Merging multiple Rows in ssrs report to a single one

I need help regarding SSRS Reporting my data is Coming from a Query and I also have added the Column Group Named as Subject Name Showing on the top of the Table() Also Added ApplicantID as Row Group and FName as a Row Group in the Report to fulfill my requirement that was just to show
Since I am not Sure how many subjects a user can select its all decide on the run time so i did added the Subject name as a column group
All the Subject records in a single row for a specific ApplicantId Instead of showing below my Requirement is
It Should looks like as a table
Anatomy Surgery Zoology
Part ISt
14 Hanan Qureshi Iqbal Qureshi 15.00 20.00 10.00
15 Tasneem Alam Imtiaz Alam 30.00 10.00 20.00
etc instead of Showing in a seperate row it should show in a single row
Details group is your problem as #hemanth said you need to remove this and add in an aggregate function (max, min, sum, average) any will work since there is only one value for each SubjectName, Obtained Mark Combo. this will give you all the marks on one line for each applicant.

Grand totals in Telerik Reporting

I'm trying to put together what I had thought would be a fairly simple report using Telerik Reporting, and I'm having a problem.
The data source is a DataTable containing outergroupid, innergroupid, number1, and number2, sorted by outergroupid, innergroupid.
I want a report laid out like this:
Outer Group 1
Inner Group 1.1 12 14
Inner Group 1.2 11 17
Outer Group 1 Totals: 23 31
Outer Group 2
Inner Group 2.1 22 24
Inner Group 2.2 21 37
Outer Group 2 Totals: 43 61
Totals: 66 92
And all of this is pretty easy, except the final grand total.
I created a group on outergroupid, and added a header with the id, and a footer with id, "Totals:", and Sum() on the numeric fields, and that handled the subtotals fine.
My problem: if I add a grand totals line in the report footer, I get a page break between the detail and the report footer - which I can't have. I've fiddled with KeepTogether, and it doesn't seem to have made a difference.
My next try was to create a global group within the detail. I'd figured that if I introduced a group with no grouping expression, it's GroupFooter would process after everything. It didn't.
So, what I need is either a way to keep the report footer from breaking onto another page, or a way to create a group that groups on everything.
Any ideas?
Solution 1 (on a 'traditional' report): add a fake group on top the real group. With a condition e.g. like "1=1".
Note: do not use the footer for this.
Solution 2: use a table item (a.k.a crosstab). On a table item, you can easily have totals and grandtotals.
The table item (with its details, totals and grandtotals) will be on the same report's section. E.g. on the report's Detail section.
You must create a report to have 2 grouping ,first you already have , A second is group that upper level than your current group,and then that group you must set data for grouping(fake data column from Databse ) at whole report , at last on report set show group footer then set content you want to.
For easy designing you can use a table object or it applies to normal report too.
Add a row group on the detail section and then add a parent row group of the 1st group by allowing the wizard (if comes any) to add their header and footer rows.
Now after all rows (in detail section) add a new row (for grand total). Any aggregated value added in this new row shall a grand total and will be shown on the same page.