Showing gridline at value 0 only - reporting-services

I am having bubble graph which shows two values:
YTD position
% growth from previous year
Both sets of values are ranging from negative to positive.
I would like to show gridlines (horizontal and vertical) only at value 0, so I have bubbles in 4 quadrants.
I have tried in "visibility" of the gridlines, but it didn't work:
iif(Fields!YTD_Actual.Value=0,"True","False")
Another option would be to differently format gridlines, but it didn't work either.

Related

SSRS hide negative values from scale

I need to hide specific values from the scale in a line chart.
The report should load from -10 to the automatic Maxim but Hiding negative values.
My series are all positive so I can't base my expression on it.
I thought to colour these negative values of white or no colour but I don't know the way to get the current scale value.
Temporarily I checked the "hide first and last labels along this axis" checkbox but it is not the way because It is subject to rescale showing other negative values for example as second element.

SSRS - Major/minor gridlines spacing

I have an SSRS report with a bar chart with multiple series by CountryName Category group. What I want to do is have gridlines which split each country like below:
However in SSRS the major gridlines seem to interval with the line in the middle of the country name when the grid interval is set to 1 like below:
Can someone point me in the right direction into how to rectify this?
Also is there a way of adding the X axis in SSRS to start from zero like I have in my first graph?
Thanks
You can do it, there is an offset property on the grid lines (horizontal and vertical are separate). Click one one of the gridlines and look in the properties pane. Change the offset to 0.5.
Gives you this.
I'm not sure what you meant about starting from zero on the X-Axis, you have negative values so you'll start from a negative number. If you meant you wantde zero aligned to the middle. You can do that to. You need to set the min and max values of the horizontal axis to the following
Min Value:
=MAX(ABS(Fields!MyValueField.Value), "MyDataSet")*-1
Max Value will be:
=MAX(ABS(Fields!MyValueField.Value), "MyDataSet")
Basically we take the ABSolute largest value and use that as the extent (*-1 for the min value). The problem is that zero might not show so you'll have to play around with the Axis properties maybe to get that working. I'm sure it's possible but I don't have time to test at the moment.
My test data is not great as the number are large

using indicator in ssrs

I am trying to use indicator in a report on a matrix. There is a column in my matrix called %Change and want my indicator to reflect the data from that column. The data in that column is like in the following picture:
My indicator expression is the same as one in the %change data rows:
=iif(Sum(iif(Fields!Year.Value = Max(Fields!Year.Value) - 1, Fields!Fact_Person_Count.Value, 0)) = 0, 0, ((Sum(iif(Fields!Year.Value = Max(Fields!Year.Value), Fields!Fact_Person_Count.Value, 0)) / Sum(iif(Fields!Year.Value = Max(Fields!Year.Value) - 1, Fields!Fact_Person_Count.Value, 0))) - 1))
The indicator properties window looks like this:
The values in the start and end are the percentage value that the expression will output, and if the percent is between -1000% and -15% then it should be red downwards arrow if between -15% to 15% then it must be right yellow arrow and if more the 15% then green upwards arrow.
I am not sure what I am doing wrong because the output literally shows indicators at random data rows (see the following images):
Update:
After the changes I made:
There are a total of 7 outputs in the report, devided through different years. thats why 7 images. Whats funny is the 4th column throughout doesnt show any values
If your textbox expression and the indicator expression are the same then Try to change the state Measurement Unit proporty into Numeric
enter image description here

Percentages in SSRS Chart

EDIT: The chart is fixed when I use a stacked chart instead of a stacked percentage chart, but this still doesn't tell me what is wrong with using the percentage chart.
I have a stacked percentage chart which is going from 0 to 10000% instead of 0 to 100%. It appears as if the values are formatted correctly (they add up to 1.01 due to rounding), and even dividing all the values by 100 in the query does not change it.
This is how the chart renders:
with the following Vertical Axis Properties:
I have a table below (with identical number formatting but with 2 percentage points), however that displays as expected:
Finally, here is the raw data set with an additional sum column not reflected in SSRS:
Has anyone come across this issue before? If I manually set the range of the chart from 0-100% (0-1) I can only see that bottom blue series.
Yep. I've seen exactly this. The numbers that the percent chart axis generates are in the range 0 to 100. But when you apply the number formatting as a percent, then the numbers are multiplied by 100 for display.
The trick to fix/work around this is to set the display format to only add the percent sign, not really format the number as a percent. Happily, this requires just one character:
In the Number format for the axis, switch the Category to "Custom." If you just switched from Percentage, you will see something similar to 0%.
Insert a backslash before the percent symbol: 0\% to indicate that you need a literal percent symbol, not to format the number as a percent (multiplied by 100.)
Voila.

SSRS chart does not show y-axis data labels when values are very small (<1)

I have chart that plots values of Y-axis less than 1 (0.1, 0.24, etc).
When the chart is built, Y-axis label just shows 0 at the origin and no other values along the axis.
My solution was a little ugly. Data series labels show up with the correct % signs, but the % signs do not show up on the Y axis.
Y axis: set Y axis range from 1-100 (or 1-120 so there is room to display the data labels that say 100%) Make sure you set your tick marks to Auto or a number between 1 and 100, otherwise you'll get one long bar of tick marks running all the way up the y axis.
Data series: on the series tab, change your Value Field formula to multiply your data series by 100.
Data series labels: on the series data label properties window > general tab, copy the formula from your data series Value Field into the Label Data value field. round it to 0 decimal points and add &"%" to the end to concatenate a percent to the end of it.
That way the right numbers display for my data series and my Y axis, but the % just doesn't show up on the Y axis. not perfect yet. and too much work.
I just tested this and it seems this happens in SSRS 2005 and not 2008. You can fix this by right clicking on your chart and going to properties. It should bring up the full Chart Properties, go to the Y Axis tab and set Major Gridlines at a value like .25/.5 or whatever you want.