Set Border Width of a Group using Expression in SSRS - reporting-services

I am developing a multi-grouped report. Base on the level of a group, I am to set the bottom border width to 2pt else 1pt. I only know how to set the default for all groups. I have googled and tried various expressions but unable to get around the requirement.
An example of what I want to achieve is shown in the image below

I would imagine you could evaluate the scope on a group and set a row(s) bottom border accordingly.
If you right-click a row I assume you could apply the following in an expression:
<For the Border.BorderWidth.Bottom property of the detail or row group>
=IIF(Level("MyGroup")=0,"1pt","2pt")

The answer by Ross Bush seems to be correct. Though I would use Choose as it gives more options should you need more width.
I've used 10pt and 20pt so the difference is easily visible for this example.

Related

How to add a border around a group with no record

This shouldn't be this difficult for me but I cannot get this to work. I'm simply trying to provide a border around each Division group in my matrix report.
I am currently using the following to set the Top Borderstyle to solid if the type is "Binds" which is the first Type record in the group
=IIf(Fields!Type.Value="Binds","Solid","Nothing")
It's working for most of the matrix except the records with a 0 as the Binds Value. I set the text box expression to =VAL(REPLACE(Sum(Fields!Value.Value),"",0)) to remove the white space of a null value.
I'm assuming it's not setting the Top Borderstyle to "Solid" for some because there are no actual values in the Binds row within each division.
I can't use
=IIF((Fields!Type.Value)="Binds" OR IsNothing(Fields!Type.Value),"Solid","Nothing")
because all rows within the Division with null values would have the Top Border set to solid. I only need the first row in every group (Type="Binds") to have the Top Border set to solid.
If I did not make myself clear or you need anything further please let me know.
Does anyone have any ideas? I'm about to lose it. Any help would be greatly appreciated!

Alternate Row Colour SSRS not working

i currently have the row background colour set with expression that is;
=IIF(ROWNUMBER(NOTHING) MOD 2,"White","Silver")
However on some rows it seems that colour is not alternating and staying the same like the image below. Does any one know why this may be happening
The expression itself is fine, it's the scope that's the problem. The ROWNUMBER function gives different results based on which groups it's in within your matrix. You are currently using Nothing as the argument which tells it to use the default scope. You will need to look into overriding that with the correct group name so that the row numbers are calculated relative to the scope you actually want.

SSRS - Shrink report width when hiding columns

Using SSRS 2013. I am able to hide columns with boolean values, but the report (body) width does not shrink when columns are hidden. Thus, there is excess blank/white space to the right of the report. Is it possible to eliminate this excess space? If yes, kindly will you please advise how?
The report body width - as with any column width and unlike heights - is a set value that cannot be changed on execution. You need to either put up with the white space, format your presentation layer to not be affected by the appearance of the white space or redesign your report so the objective of hiding the columns can be achieved in a different way.
I ran into this exact same limitation of SSRS. I was able to achieve what I believe you are trying to get (consistent report and report col width when certain columns are hidden due to parameter vals, etc.)- by simply having 2, separately formatted report tablix/tables in the report and hiding/showing based on a parameter (or some SSRS-expressible logic):
1 for the condition when all columns are present; 1 for the condition when some columns are omitted- both of them formatted to utilize all available screen real estate to minimize white space and make things look "clean".
Instead of hiding column(s) when my hidden condition is true- I simply show the 2nd tablix and hide the 1st. And when the filter changes to show all columns, I do the reverse (hide the 2nd tablix and make the 1st visible again).
Not sure if that helps, but I figured I should share if it might aid anybody else facing this issue.
PS: Your tablix Hidden expressions will look something like this:
[the full column tablix].Hidden
=iif(Parameters!parmOmitSomeCols.Value = true, false, true)
[the tablix with some columns omitted].Hidden
=iif(Parameters!parmOmitSomeCols.Value = false, true, false)

SSRS: Set layout properties group (BorderStyle, BorderWidth, Padding,...) at once

I'm starting to use SSRS and would like to start my project on a clean manner and easy to change in a future the style of the report.
So I'm declaring several parameters for each layout properties (font-family, fonz-size, color, border-style, border-width,....) and would like to know if it's possible to do "merge some" :
instead of doing this for each property :
This would be more efficient and easy to set. But Visual Studio (2015 version) doesn't allow me to do it.
In CSS we can do "padding : 10px 5px 2px 4px" or "padding-left: 10px; padding-right: 5px...." (other possiblities but wanted to show here only the corresponding).
Thanks for your help.
Yes you can - you just need to put a comma between each.
Copy and paste this into the top level padding property:
=Parameters!ReportParameter1.Value, 19pt, =Parameters!ReportParameter1.Value, =Parameters!ReportParameter1.Value
and then expand that property - you will see that padding right has been set.
Unfortunately when you select all the entities (i.e rows within a taxlib) that have different properties the Padding options for Left, Right, Top and Bottom will disappear. In order to do this, you will need to copy the formatting to a notepad. Then clear all formatting from the existing select all and then simply copy and paste. It's very daunting, but I have found that there is no other way sadly.
I found the solution !!
For example, I want to set the border color for property Left,Right,Top,Bottom at once :
Declare a parameter TableBody_BorderColor_LRTB.
In "General" check "Allow multiple values"
In "Default Values", select "Specific values
Click to "Add" 4 times for the 4 values
By our custom convention, the first value will refer to Left (L is at the first position of LRTB), the 4th value will refer to Bottom
Then select the body of the tablix, and in the BorderColor property write :
Black; =Parameters!TableBody_BorderColor_LRTB.Value(0); =Parameters!TableBody_BorderColor_LRTB.Value(1); =Parameters!TableBody_BorderColor_LRTB.Value(2); =Parameters!TableBody_BorderColor_LRTB.Value(3)
The "Black" is for the default Color.
And then we select the first value Value(0) that is assigned to Left, etc...

Alternate Row shading : Business Objects - WebIntelligence

I am a n00b on WebI.
Could somebody please tell me how to do alternate row shading in a BO CrossTab.
Thanks
You don't say what version you are using, but in XI R2 and above it is automatically applied to a block. To manually apply it, select the block (dotted border around the entire crosstab), then in the properties under Display, is a set of options called Alternate Row/Color. Specify the colour for the non-white rows, and the frequency tells XI how often to apply the alternate colour.
In previous versions you can create a new variable with the following code:
=Mod(LineNumber(),2)
And then add an alerter to the crosstab to set the background colour to your alternative colour whenever this variable equals 1 (i.e. for odd rows).
I'm creating a web intelligence report in BO XI 3.0, I need to create blocks with a required alternative colour(239,239,239) in the rows. When i try to change the default colour (240,240,240) of non-white rows to any other colour, the colours are applied to all the body cells in all rows of block. I checked the frequency aswell, it is set to 2. But i'm not sure why is this issue..??