SSRS column group displays data on unique rows - reporting-services

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.

Related

How to make textbox display difference in table size

I have two tables, A and B. I always know that table B is going to consist of a smaller number of entries. For the sake of argument, lets say that table A contains 5 entries and table B contains 2 entries. I always know that table B is going to consist of a smaller number of entries.
I want to have a form display the difference in the size of the two tables within a textbox. So in this case it should display a value of 3.
I have never used VBA before, and I am a bit confused on how to actually get the textbox to display this. I tried setting up a "before update" script, but I have had no luck. If someone could help me out, that be great.
In a form, use below expression to textbox control source.
=DCount("*","[Table1]")-DCount("*","[Table2]")

SSRS (MS Report Builder) - How do I add multiple lines of queried details to a single row of otherwise more general info?

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

SSRS Multiple Datasets from different data sources into one table with grouping causing duplicate rows

SSRS report needs to have aggregate and grouping from two data sets. I have managed to get this working using the lookup funcion. Looks like it is now duplicating the rows when I only want it to show the top row.
I have two groups. Active and Stanby. Each has different values in it but the same value per row.
I tried to hide duplicates under properties, but that now keeps the first row and the border of all other rows with an empty field inside of it.
The hide visibility doesnt seem to work - i think it might be because of the grouping.
Can someone help?
See attached image

Correctly display the columns in a PivotTable

I have a pivot table in Excel. I have field headings on my other sheet I have got the date in them that correspond with a name.
When I make the pivot table all of the columns that have different amounts of data in them all show the same total. It is almost like it is counting the blanks.
Please look at the pictures and tell me if I am doing something wrong.
It probably is counting the blanks -- even though there is nothing in the cell, there may be formatting or other aspects that the pivot will include in the count. To fix this, you can either:
Filter your raw data and filter each column to just show the (Blanks). Highlight the entire column and press delete
Instead of "Yes" use 1. In your pivot instead of "Count" choose the value field setting of "Count Numbers"

SSRS - Why is my table duplicating rows?

I am creating a report in SSRS. I have a table showing the date and time the report was generated, it's a single column table with one expression =Now() and is not linked to any datasets.
The trouble I am having is that it returns 77 rows all with the exact same date. My main dataset returns 77 rows in a different table but that table is not linked to this one in any way.
How can I stop it from returning so many rows? The reason I'm using a table and not a text box is because I want it to have the same look and feel as other data presented in my report i.e. Header Row and Data Presented underneath. There are a few tables that use the same approach and all of them are returning duplicate rows. As you can see from the image below, I just need the first row from each table.
EDIT: Looks like SSRS automatically references a dataset when I insert a new table. When I change the table properties dataset to none it returns an error. Is there a way around this? I don't want data from any dataset, just want to use an simple expression =now()
As you've seen, a Tablix requires a DataSet, and when you only have one DataSet in a report it will link to this DataSet automatically in some circumstances.
You've mentioned you don't want to use Textboxes, but this does seem like the easiest option.
If you're set on using a Tablix for ease of formatting, to prevent any repeating rows just delete the Details group that gets set up by default when you create a Table through the designer:
This leaves a table with one header row only - you can add more header rows as required:
The result is a table that will only display the header rows once, i.e. no repeating rows.
You can add Summary data or individual fields from the DataSet to these header rows; if no aggregation is specified it will just take the first row by default.