making tablix row disappear if there is no value in SSRS - reporting-services

I'm working on SSRS report which looks like this:
So what's happening is here I have 2 rows of detail in Yellow and in Red. The row with EXPR right under the RED line is the Totals.
In every case, i will need to have the YELLOW row of data, but there are times that I don't have data in RED Row but I still always need to display the TOTALS row (right under RED line)
I am able to successfully hide the textboxes in TextBox Properties --> visibility. I also set the same thing for Row Visibility (RED row)
The problem is -- if I have no data in RED row, all textboxes get hidden, but I still have a gap, and I'm hoping there is a way to get rid of it, so the EXPR below RED line moves up and is right below the YELLOW line.
Any ideas? Is this possible?

You should set the RED row visibility to hidden, not the visibility of each individual text box.
If visible, the row will take up space even when all contained controls are hidden.
If hidden, the row will not be drawn and the space reclaimed to the parent container.

Related

SSRS - having tablix grow upwards

I need to insert a tablix at the bottom of a page and then "grow" upwards, depending on the number of rows returned. Looks like SSRS assumes you only want a tablix to grow downwards, with the location options being TOP and LEFT, instead of including a BOTTOM option.
Is it possible to create an Expression for the location? The only workaround I have thought of so far is to create some kind of blank object above the tablix whose size would change depending on the tablix result set, and "push" the tablix down.

Disable 'Allow height to increase' option of textbox properties in SSRS

I have a SSRS report which use a background image. I need data appears in a fixed position box in image. There are 2 boxes that need to insert table to.
I put data in a tablix with row group, tablix1 in box1, tablix2 in box2.
Data will be listed in row in box1. the more row added, the tablix2 will be push down and won't fit the box2's possition.
Any solution, please?

SSRS (ReportBuilder 3.0) - How to remove whitespace taken by a hidden Tablix?

In the SSRS report, I've a tablix which has a single row and a single column (single cell). That row has a single rectangle that contains other rectangles containing other elements. The visiblity expression is set at the tablix level (both tablix visibility and row visibility), but not at the contained rectangles etc. The tablix has a visibility expression set as:
=Fields!ShipmentType.Value<>"Sales
The tablix row also has its row visibility set as:
=IsNothing(Fields!Calc_ShipToAddress.Value)
I've checked the values of these fields and per the values the tablix must be hidden which it is, however, it is still taking whitespace on the PDF.
There are three other tablixes; all three have just the tablix visiblity set, but not the row visibility. Interestingly, these tablixes don't take the whitespace when hidden.
I've searched online various solutions including various posts on SO too, but none has worked for me so far. I've even set the visibility of the column for that tablix, but still it takes the whitespace.
I'm putting this as an answer for any future searches in the hope that it might help someone with a similar situation.
In my case, the reason for the top tablix to be always visible as white space (although all the text in it was hidden) was the height of the top tablix. That tablix was overlapping the next tablix by a small notch and hence was visible as a white space on the report. I zoomed to 400% for something else and accidentally found this overlap.
Once I fixed tablix's height, the report functioned as expected and the tablix was hidden completely (no white space).

SSRS Rectangle auto growing

I have textbox inside a table cell (this is the default configuration) and value in the text box's text is empty and it used purely as a toggle button for a child grouping. In the design image below I have colour coded for emphasis the 6 grouping levels in red (one pink). When I run it is all fine there is a single row of data, I click the toggle and the child group shows as this is the way I have set it up. I wanted to add something else to the cell that contained the toggle (i.e. the pink cell) so I changed my textbox to a rectangle and I added first in a sense the original textbox (placed in the top left hand corner of the rectangle) and ran the report and now the rectangle's height has grown to 2 rows at run time as supposed to one row (height of the textbox) at design time - why? Is there a way to prevent this?
NB: the run time screen shot is me changing the height and width of the rectangle to an arbitrary size greater than the width and height of the textbox. So when the report is run the width stays the same the height doubles.
Design Time
With 6 textboxes (NB: each box represents a different hierarchical (drill down) level)
After I change the 2nd textbox (counting right to left) to Rectangle (arbitrary height and width) + Textbox
Run Time
(NB: height of rectangle doubles in size at runtime compared to design time)

Repeat a vertical line on every page in Report Builder / SSRS

I wish to include a vertical line on every page of my report, which runs from the top to bottom of the report body. How can I achieve this?
I've tried using RepeatWith, but it doesn't seem to work, the line appears only on the first page.
Thanks
Is this for look and feel purposes only?
I would create an image with such line and use it as the body background. Or if you're using a tablix that spans across multiple pages, another idea would be to create an empty column on the tablix with a border on the left side.
And yet another idea would be to use a rectangle with a left/right border and place all your tablixes inside the rectangle as this would make the rectangle to be expanded to multiple pages keeping the border (the vertical line) on your report.
I don't think that you can tell SSRS to automatically repeat lines on multiple pages.
I've figured out a way to solve that problem (without using RepeatWith, RepeatOnNewPage or Report Background Image)
I wrote a simple code to add blank rows to the table in the body. The number of rows to be added will be determined by the body height and the height of a row.
For example, if the body height is 6" and height of a row is 0.5" then a total of 12 rows can be fitted into one page. So if your table has 4 rows then add 8 extra black rows so as to make the table height equal to the report body.
If the number of rows is more than 12, say 15, then you'll add [12 - (15 mod 12)] rows
, i.e. 9 blank rows.
And you can have side borders on any of the columns as required, resulting in a vertical line running throughout the page.