I am using SSRS 2008 and I created a tablix with several groupings. However, I see now that my latest grouping is below the details. This was a mistake because I should have all groupings in my tablix preceding my details group. All of my groups are adjacent to each other. How to reposition this group so that it precedes details group instead?
Separate note: is there a way to merge cells for a range of rows? I only know how to merge cell one row at a time! And is there a way to copy n rows? Or do I have to copy one row at a time?
Yes, the row group is actually below the Details group. See attached images.
[Essentially deleting previous post on this. It was based on a bad assumption.]
I would insert a new group where appropriate, then delete cells and columns as appropriate to get the rows for the two groups to match in number: then you can copy and paste the cells (many at once) from the old group to the new.
Make sure that your grouping formulas or fields match and then delete the old group.
(You probably already discovered this, but a clean easy way to create groups is by dragging fields from "Report Data" to the "Row Groups" subwindow: this method will refuse to create a group below details.)
I think the only alternative is to edit the XML and that is dangerous: be careful and keep old versions to revert if needed.
Related
I've been trying to figure this out, but I'm struggling.
Working in Microsoft Report Builder (latest version), I have a table that, for the most part, contains general information from a specific table, which I'll call GeneralInfo. In that table, each person has only a single row containing information about that person. However, one of my columns has a one-to-many relationship with the rest of the row. I'll call this other column DetailInfo.
This table provides an example of the kind of thing I'm going for:
In this example, all of the white cells come from the GeneralInfo table. The Orange cell may include many rows of work history, and each entry includes multiple elements from the DetailInfo table, separated by Newlines. The two tables can be matched / joined on the ID value.
This may not be the best way to go about a report, but it's part of the spec I was given. I know this can be done, but I'm having trouble learning how. Can anyone help me out?
Edit - I just found out that another column is also potentially one-to-many. In the example table, it would be saying that the "Occupation" value comes from the DetailInfo table, rather than the GeneralInfo table.
In MOST circumstances, this would just be "Construction Foreman" over and over again, and we would only want to show that once. However, in rare circumstances, an individual may have multiple concurrent (differing) Occupation values that would have to be shown. Is that possible? Should I make that a separate question?
I took Soundappan A's advice and created a sub-report in the column that needed the extra data. This video was helpful to me in learning how to set that up:
https://www.youtube.com/watch?v=LhSitVAnhyc
I have a data set where i'm using a table to display Name, Radio #, and Unit # information in SSRS tablix. As some of the groups have 60+ members, i thought it would be better to expand the tables into 4 columns repeating those detail fields instead of displaying a 3 page long skinny table. In the SQL i used a row count%4 function to assign a "position" number 0-3 for each name. If i create a table with the detail members above and then add a parent column group on position, i get the tables repeated as i want but each name/radio/unit appears on a unique row. I've tried several different ways of grouping rows/columns but always seem to get this staggered table (with only name/radio to make it easier to digest): sample_pic
Sorry if this is a duplicate. I've really searched quite a bit before putting this in but it's probably the case that if i knew what to search, i wouldn't be putting this question in. So if you'd rather tell me what to search i can do that too. :)
SSRS will display a row in the table for each row returned from the dataset, this is normal behaviour for data to display.
One way to get what you want is to create a query which has all the information form your column headings in one row, probably with a pivot or similar.
Or you could just display your columns in separate tables.
I have a weekly report that is pretty basic.
Engineer, Account number, Name, Date etc.
The twist that I am not sure how to accomplish is that the user needs to see a list of attachments based on the above criteria. I have a query which creates a single row for each attachment.
The layout I am looking is per the attached image. What I need to do is take the Attachment Name and create a row for each attachment under the existing tablix based on all of the other columns. Basically what is happening is that for each SIOA name, multiple attachments are being created. I just need to see them listed below for each occurrence. I hope this makes some sense.
Since I cannot post the image, I have a basic tablix with 11 columns. One of the columns is Attachment. I need the attachments grouped as separate rows below the other 10 columns. This way the user will see only one row for each project and multiple rows of the attachments.
If I'm understanding correctly, I think the simplest solution is to make a new row group based on the Account# (or whatever unique ID you may have for each record). Then put all your fields except the attachment field at the group level, and leave only the attachment field at the details level. That way you will get one row per group, with all the attachment rows listed beneath that group. More information on creating row groups here. You could also get fancy with a drilldown action if you wanted to.
Is there a way to remove and then recreate row groups? We have a report that is believed to be "corrupt" (because we've upgraded from SSRS 2008 to R2). From what we've researched, recreating the row groups might fix it for us.
I've found these links:
http://msdn.microsoft.com/en-us/library/ms170712.aspx
http://technet.microsoft.com/en-us/library/dd255263.aspx
but I can't seem to create groups without extra rows/columns being created that are not needed for the report.
After a long couple of weeks trying to solve the problem within the .rdl files, we opened a ticket with Microsoft.
A work-around was provided to us in that; We could remove a row from multiple groups by right clicking that row > Insert Row > Outside Group - Above.
This effectively creates a duplicate row outside of one of the groups. We then followed the steps above on the newly created row.In turn we created 4 duplicate rows (each in one less group then the previous row), and kept the last created row which wasn't in any groups!
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).