ReportViewer: Grouping / Repeating Table? - reportviewer

I'm not quite sure how to do this. I went to the resource: http://www.gotreportviewer.com/, but I couldn't find the exact answer. I'm using VS 2010 .NET Framework 4, so I assume I'm also using ReportViewer2008. Oh, and I am using RDLC files.
They showed a table example where the data was grouped/sorted and they had Group Header and Group Footer's, which seems to be what I want (I think), but I can't figure out how to add those rows to my table.
Basically I have an Object (Registration) which contains:
Group Name
First Name
Last Name
I pass in an ObservableCollection as the Object DataSource. What I want to do is this:
[GroupName]
[First Name] [LastName]
Total: ##
...
Grand Total: ##
Basically, sort by: GroupName, then FirstName, then LastName. I think the way I need my data grouped/sorted is self-explanatory. I have the sorting down pact, but I can't filter/repeat the data. And, I'm not sure how to get Total / Grand Total. I'm sure I could figure out Grand Total, but Total... I have no idea.

I was having trouble with the Grand Total. I'm using VS2010 and finally I found out how to add a Grand Total to my report. I only have one group so I selected the little down arrow next to 'Group1' at the bottom of the screen, where it says 'Row Groups'. Then selected 'Add Total' and then selected 'After'. This added a row to the bottom with an expression like: Sum(field). I changed this to Count(field), which is what I needed, field being the field needed for the Grand Total.

Related

Grand totals row not summing in Google Data Studio

Well, I'm absolute newbie in Google Data Studio, but for any reason, my grand totals rows is not working.
I'm learning to use this tool, and I made an easy table with just countries and sessions.
Piece of Cake. Now I just want to add a total row where it sums all sessions. That's all. I activated option Show Summary Row but it shows nothing.
Thing's I've done and not worked:
Update and refresh
Changed time period and tried different dates just in case.
Delete and create again full table.
Checked connection. I get data and the data is right, I just cannot sum it.
Changed size and format of table, just in case it where a problems or margins or font color.
And I know it can be done, because different sources. I've read this question here:
Grand Total is wrong in Google Data Studio
But it did not help. In that question, a user posted an image in the comments:
As you can see, he managed to get what I'm trying to do.
So I must be doing something wrong, and I do not why.
UPDATE 2: If I apply a filter, I get no totals. You can see my config in the right side of image.
Can anybody give me a clue of how to make a grand totals row in Google Data Studio?
Thanks
Sounds like a bug. It should be a case of selecting that tick box. Strangely, I looked at an existing table I have with totals and when I unticked the box and then ticked again, the totals didn't reappear and disappeared off another table on the page (like your example). They did reappear eventually with some refreshing of the data and page but seems like there's something wrong with them.
I don't think this is a bug I think it part of the design.
I actually just discovered the reason this is happening at least for me, it doesn't actually sum the values in the table, the grand total summary of a table is a sum of whatever the metric being used is not the actual rows shown in the chart. so if you have a dimension (like age / gender) where there is data thresholding applied internally by google but are using a metric such as users you will see the grand total from the metric value without the thresholding applied from the dimension.
Proof below
You can see the grand total for column 2 is not 953.6 its 453.6 and if i look at a non threshold dimension (country)
you can see where the 953.6 comes from since the data source supplied to the table uses 80% of all users 1192 * .8 give me 953.6 which is what the grand total is displaying. Conclusion, the only way this number could be possible is if, when using a threshold dimension for a table with metric there will be a discrepancy since the grand total value is not coming from the table values but rather from metric source data, which will not have the tables dimension applied for some odd reason.

How to add a figure to only a particular group in vb.net RDLC report

I have an RDLC report which sums totals for each group in VB.Net. It is working fine but what I want to do is to add a figure outside the group to only a particular group based on users selection.
Assuming there are three groups: Food Dept, Security Dept and Sales Dept. I want a figure 2000 to be added to only the Food Dept without affecting the Sales and Security Dept. Any help?
You can use an expression like this:
=Sum(Fields!ValueToSum.Value) + IIf(Fields!Departments.Value = "Food Dept", 2000, 0)
This is a simple example: use ReportParameters instead of constant ("Food Dept", 2000).
I would add a parameter and assign the value. An integer parameter for ex: #FoodDeptOffset can be added to the fields as
=Sum(Fields!FoodDept.Value) + (Parameters!FoodDeptOffset.Value)
Thanks A lot for the answers. I was able to sort it out by passing a parameter which did the trick. On the main form which loads the Reportviewer I attached A combo box giving the users an option to select which field the wanted to add to and the passed it as a parameter to the rdlc report.

Webi - Ranking Sections displays wrong order

I have a list of customers and their revenue. For certain reasons, I want to display one section per customer, for the TOP 10 customers (in regards to their revenues). Sounds simple.
However, when I activate the ranking for the sections, the customer with the 7th highest revenue is placed on the top of the list, and is given the running count '8'.
I tried everything I could think of to put them back into order, with no success. Any ideas?
I finally found a solution - the reason for this strange behaviour is the fact that section filters don't always seem to work.
Let me explain:
I had a filter on both the section and the table therein, limiting customers only to a certain subgroup thereof. The filter on the table worked, so that the displayed revenue represented the correct revenue I expected. However, the filter on the section did NOT work, so that the ranking took into consideration the entire revenue, and not only the subgroup's revenue. Therefore Customer 8 landed on first place, because in total, he had the highest revenue.
So if you have this problem, check your filters.
Next, I'll be trying to find out why the section filters don't apply...

Acess Report - Sum the Value of a Field If the value of another Field Matches Criteria

I have an Access Database and i'm trying to create a report that has me a bit stumped. Basically this report is going to display each employee's order processing performance based on a user specified date range, the report gives an itemized detail of each unique product on the order and it's price and Quantity.
Each Product has an 'Assembly Category' either 'DRFLUSH' or 'FRAME'.
In the summary of each Order i want to total the Quantities of each Assembly Category in a separate field.
Initially i rushed this report and have now found that the way i intended on completing this task is incorrect as the value given is only a Count of how many times an instance of each value 'DRFLUSH' or 'FRAME' occurs. I started with as follows: (Please ignore the bad practice with field naming i have taken this database on from a previous employee).
=Count(IIf([ASSEMBLY ITEM CATEGORY]="FRAME",1,Null))
And
=Count(IIf([ASSEMBLY ITEM CATEGORY]="DRFLUSH",1,Null))
However as previously stated this is wrong. I want the fields to sum the Quantity of each line item but only where the criteria is matched.
Any help is greatly appreciated, i'm sure this is a ridiculously simple task however i just cannot seem to wrap my head around it today.
Thanks
Alex
Sorted this by changing the statements to as follows:
=Count(IIf([ASSEMBLY ITEM CATEGORY]="FRAME",[QTY],Null))
=Count(IIf([ASSEMBLY ITEM CATEGORY]="DRFLUSH",[QTY],Null))

Theoretically basic RDLC groups and supgrouping

I'm trying to do something that I thought ought to be reasonably simple but I keep failing... Maybe I just need more coffee, but I thoguht i see if anyone else has solved the problem already.
I've got a report, it contains a pile off rows.
I want the row to show up grouped by one column called office.
I want the groups of offices sorted by their column region.
I want the rows within the office group sorted by column name.
so it'd show up like this
Region1
Agency a
a
b
c
Agency b
a
b
Region 2
Agency a1
a
b
c
etc...
I can get the grouping, I can get the groups sorted by region.
but I can't get the contents of the group to be sorted by name.
my curret guess was Group by Office
then in the sort tab, sort by region, then office, then name. no joy.
Any help is appreciated.
if it's relavant I'm using c# and vs2008.
Thanks,
E-
I often have problems with sorting in the rdl/rdlc and end up having to sort the data that is coming to the report to get it to show up correct. Also sometimes it helps if you add sorting on every group. So for your Region group you'd add all the sorting. Then on the Office Group also add sorting.
Try putting the sort in the table, it worked for me