Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tablix returns only 1 record for dataset

I have a tablix on an SSRS report:

enter image description here

When I run the report it only returns 1 record!

I did a sql server trace, and the query that is being executed is returning 14 rows.

On the same report, I dropped another table, and put just one field on it, and it returns 14 as expected. I noticed that the difference between the one that works and that one that doesnt is:

enter image description here

How can I get those 3 horizontal lines on the one that doesn't work?

What could be my issue? What did I do wrong?

like image 282
Alex Gordon Avatar asked Apr 16 '13 19:04

Alex Gordon


People also ask

How do I get top 10 records in SSRS?

For top 10 records from a dataset. 1: Go to the Row Group properties and add a filter on for TOP N . 2 . Sorting on "=Sum(Fields!

Can we use two datasets in SSRS?

There are many instances in which you may be required to build an SSRS report using two or more datasets. You may also be required to show information from both datasets in the same table in your report.

How do you keep the structure of the tablix when there is no data to show?

You can add a row outside of the outermost group right under the tablix header row. When there is no data, the table will show the headers and empty row. When there is data, the empty row will be hidden.


3 Answers

The screen shot shows you don't have any groups. You deleted the details group from the Tablix. You can add it back in by inserting a new group or building a new tablix object from scratch.

To add a group, click on a cell in the row that should have a group, in this case the [ReferredBy] cell. Select Add Group -> Row Group -> Adjacent Above. If your data is already grouped at the correct level of granularity, then select Show detail data in the Tablix Group screen. This will add the details triple bar in a row above your current row. If you need to group on something, then pick the field to group on. This will add a ) in a row above your current row. Copy and paste the contents of the cells in your existing row into the new row and delete your original row.

like image 175
Registered User Avatar answered Sep 22 '22 14:09

Registered User


One row when you expect multiple sounds like a grouping issue. Debugging something like this I would create a new table element below the current one and drag and drop a single column from the dataset. If it returns 14 you know it is not the dataset being evaluated as a problem but the table's expression. If it is also only returning one you probably have a predicate, filter expression, or parameter setting limiting the scope down as well.

like image 29
djangojazz Avatar answered Sep 23 '22 14:09

djangojazz


Probably, you set the expression for Textbox and not for the RowGroup. Just find the Group Properties then put the same expression in Group On.

like image 40
Yogendra Malav Avatar answered Sep 24 '22 14:09

Yogendra Malav