SSRS Report matching parent/child data incorrectly - reporting-services

I am having an odd issue with SSRS. I built a report that works correctly when filtered down to a single part number in the underlying data set query. When I take that filter off so that all data is displayed on the report, it does not work correctly. In the latter instance, all of the child details display incorrectly (and randomly) under a single part number.
First case, when filtered to a single part number... all looks good and report works correctly:
Second case, after taking filter off so that all data comes through... All of the part numbers show no detail, except randomly one part number will show all of the detail:
I have been unable to figure out what is causing this confusing behavior... Any tips?
Thanks!!!

Related

flatten results onto one line in report builder

report example
i have a report that displays client contact details, but annoyingly for each different contact type it displays the results on a separate line! Can anyone advise if it possible to show the results on one line using an expression or some sort of filter, not using SQL.
as you can see from the image Miss S has both a mobile (MBL) and telephone (TEL) number but they show on different rows, if in my program i were to add an email address then it would add a third line, is it possible to flatten the results down to one row?
regards
You'll need to remove the Contact Type column from the tablix as this won't be valid once you put all the contact details on the same row.
Once this is removed, you will then need to edit the row group (under the main design window) and group by the first 5 columns only. There may already be grouping set, if so check that contact type is not in the group by list, if it is remove it.
Alternative
After saying all this, I can't help but think this report would be a whole lot easier, assuming the data was structured correctly (it may already be), to use a matrix control. That way all this and the answer to your previous question (asked recently) would be automatic. I won't go into detail but if you are interested, create a new question and show the output from your dataset query, the query code itself and the desired output. optionally, accept this answer ! :)

SSRS Tablix strange behavior with lookup expression

I'm seeing some odd behavior with an SSRS report I'm working on. I have a 2 tablix elements that are are populated with the same dataset from a stored procedure. I have applied a filter on each tablix based on an Active field (Active and Inactive) in the dataset. Data looks fine and until I add an expression to the last textbox column field to do a simple calculation (see below). The values based on the data expression come back correct but the tablix now shows a duplicate row for one record (last record) in the tablix that has the filter set to Active. I'm not quite sure what is going on because the data is the same hasn't changed from when the expression is not there.
=Fields!Avg.Value/Lookup("Low Risk", Fields!RiskGroup.Value, Fields!Avg.Value, "ReportData")
Update:
So I haven't solve the problem but have more information. What looks to be happening is due to the order of the records coming back in SQL and how the tablix is filtering. The "Low Risk" record used in the lookup is the last record in the grouping. My 2 tablix I mentioned previous are identical with the exception of tablix filtering on Active field. If the Low Risk is the last record in the data set there are no data issues. However if the Low Risk is not the last record that is when the tablix goes awry. Anyway, still researching but anyone has any information it would be greatly appreciated.
Update:
Still haven't found the issue but found a workaround. I've extracted the lookup expression to a textbox and then reference that textbox in my tablix expressions and seems to do the trick....Still very odd behavior. I actually mocked up a simpler dataset and didn't see the same behavior so must be due to something in my dataset that I can't pinpoint.

SSRS 2005 - Sorting with page groups in SSRS 2005

One of our SSRS 2005 reports would time out when executed at the "All" level (was returning upwards of 80K records), so I added a group to the table whose sole purpose was to force a page break after every 500 records. I found the grouping in another post. It looks like this:
=IIF(Fields!ShowPageBreaks.Value = 1, Floor((RowNumber(Nothing) - 1) / 500), Nothing)
The problem is that the user sort no longer works correctly. E.g., "A"s show up at the top of multiple pages. I haven't been able to find any pattern in how SSRS decides to perform the sort. I've tried playing around with the Sort Scope and the Sort Target, like setting one to the Table and one the other to the Group, both to the Table, one or the other to nothing, etc and nothing seems to work.
Has anyone found a solution to a problem like this?
The sorting is happening within each group, aka, "working as intended." You're creating a somewhat arbitrary and random set of record groups based on row position in an un-ordered set.
You need to find a way to sort properly (in the SQL?) prior to applying any sort of grouping, or use a less random means of paging.

'un-merge' multiple nested column headers in a matrix chart

I have spent far too long on this and would really appreciate any help someone is able to give. I am creating a cross tab type report in SSRS (2012) using a matrix. Everything is working fine - however my end result must have each column separated from the next (i.e. no merging on common groups). I have three nested groups for the column groups (see figure) and want the output to show individual columns as opposed to merged on common groups.
I have seemingly exhausted all options - and am absolutely stuck - is anyone able to help?
Forgive - I found by adding grouping appropriate to my report and then deleting the row and inserting rows inside the group and re entering the values worked. These appear as 'static' in the advanced mode setting.

Matrix report - Page breaks for each column group

I'm using VS2005 to create my reports.
I have a matrix report that works beatifully. I have country going down on the left hand side (row group called "matrix1_country_name") and data going across for 2 column groups, product_node and month (column groups "matrix1_Node" and "matrix1_calendar_month_name" respectively)
The only thing I want to improve is that this report will always show 5 year/60 months of data, and with multiple nodes I'd rather have each node be on its own page (Ideally I'd love to have it on the same page but in the rows just below to first node, but I'm not sure that's even possible).
I've seen numerous responses on these boards about putting in page breaks on column groups, but I can't seem to find how to do that in VS2005. The examples I've read that can do that seem to have a different interface so I'm guessing they aren't in VS2005.
Does VS2005 allow you to add page breaks after each group item and I'm just missing it? Or is there a trick I can do to get that to happen? I've also read about nestin matrix reports in list reports but that seems more complicated than doing the page break on the column group, so I'd rather do the easiest solution if I can.
Ah, I see pagebreaks are ignored on column_groups. Well I guess I'll try one of these workarounds.
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/ea9d795b-8d17-41d2-a1d7-a4069ebb4539