Alternating Column Colors SSRS - reporting-services

I am making a chart in SSRS. I have two sets of columns - one stacked on top of the other. I would like the columns on top to be one color and the columns on bottom to be another. How can I do this?

Related

SSRS - Trying to force two tablixes to align with charts and hidden columns

I am trying to build a "quadrant" report, where there are four aligned, equal-sized tablixes (tablices?) on a page. Here's the issue I'm running into on the two quadrants that should be on the left side of the page:
The "top" tablix starts with a basic table, with the caveat that columns that sum to 0 are hidden. Below the table is a row with two pie charts, and each pie chart should be the size of roughly 2-4 of the table columns.
The "bottom" tablix has two side-by-side basic tables, each followed by side-by-side bar charts.
The problem is that they want the two tablixes to exactly align vertically. That is, they want both the left and right edges of the two tablixes perfectly aligned. But with the top tablix, columns sometimes show and sometimes don't, and when the pie charts span multiple columns including one or more that are hidden, SSRS likes to force one column to expand to the full width of the chart which is not what I want. This happens even if I have the top tablix having exactly 2N columns, where N is the number of actual data columns, and then any one of the data columns that is hidden has a "mirror universe" blank column that shows to try to fix the number of columns.
I am too new to post pictures, but I believe I'm able to link to a mock-up I made:
Link to mock-up of report

Place a logo at rdlc report so that it can update its position dynamically at the top of last column

I am working at a rdlc report and i want to Place a logo at the right most corner of the last column.
I placed it at fixed position at the top of last column. but when in a case a column hides in between than last column moves toward left but logo will remain at the same place and it creates a logo formatting issue.
please suggest an appropriate solution.
You have fallen foul of the inability of Reporting services to dynamically alter the location of items. It is not possible for you to automatically align this logo - without embedding it as part of a table. There are two ways around this problem.
Option 1
Add a new header row to your table. Merge the cells together. Insert a rectangle into it, and insert your logo on to this, as shown
The downside of this is when you hide a column, the last column expands to fill the new whitespace.
Option 2
Add a new header row to your table. Insert a rectangle into the furthest right column, and insert your logo on to this, as shown.
Notice how the logo moves with the columns
(4 columns visible)
(3 columns visible)
The downside of this however is that your final column must be the width of the logo, and must never be hidden, otherwise the logo will disappear.
Summary
These are the only workarounds I can think of. Hopefully one is suitable for you. As mentioned at the top SSRS really doesn't like dynamic layouting of objects!

How do I align the width of chart with the width of Tablix in SSRS 2008 R2 ? OR how to use DynamicWidth Property?

I am in a mid of creating a SSRS report, the report consists of a tablix and a chart, both depicts same data i.e. same database query.
The actual number of columns of the Tablix is dynamically decided by the number of rows returns by the query. We are displaying records in a COLUMN-WISE manner.
Example:
If 5 records are returned by the query then 5 columns will be displayed in Tablix...
If 8 records are returned by the query then 8 columns will be displayed in Tablix...
The number of records returned by the query is dynamic, hence the width of Tablix is dynamic.
Now about the chart, the width of chart always remains fixed, but we want that it should be same as the width of tablix, that means we require the bars of the Bar-chart should be aligned with the columns of the Tablix as each bar of chart depicts data in each column of Tablix.
We can manually change the width of chart, but it doesn't always gets aligned with the width of Tablix.
What we have tried which didn't worked
Placing the chart inside 1st row of Tablix. This didn't aligned it properly.
We have read that we can use DynamicWidth and DynamicHeight property of chart, but we don't know how to use it.
Anyone knows how do we align chart with dynamic width Tablix?
The number of columns is dynamic, but you know the width of each column as all the dynamic columns will be the same width. You also know the number of rows in your Dataset, so you can use an expression in DynamicWidth to make the chart width equal to the sum of the column widths.
For example if your dynamic columns are 2.5cm width and you have a dataset called Dataset1 then the expression for DynamicWidth property of the chart would be:
=2.5*CountRows("DataSet1") & "cm"
If you have any static columns in the table then you'll also need to add the width of those to the expression.
Having said all that, you mention aligning the bars of the bar chart with each column. If you want a single bar associated with the value in each column then alternatively you can look at adding a column oriented Data Bar inside a cell in your dynamic column, instead of the separate chart.

Single Stacked Column chart Adjust distance between y-axis and column

I have a single stacked column chart, there's only one Category group. The problem is the column (bar) always displays at the center. Since there's only one column, is it possible to move it closer to Y-axis?
Attached a pic for reference.
Thanks much

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.