Format chart value from 20 decimal places to no decimal places - reporting-services

I have created a line graph to show monthly % data on the y-axis.
Can I format the value shown to show as a %? At the moment I'm seeing figures like 0.9335180054409484 - not much use.
This value is showing from an expression:
=Sum(Fields!Under20minutes.Value / Count(Fields!xno.Value) - which gives me the correct number - it's just I want it formatted as a %.
Any help much appreciated, thanks.

You should be able to just right-click on the series labels in your chart, and click on Series Label Properties. Go to "Number", and change to %, choose decimal places, etc.

Related

SSRS single bar-chart

Good day all,
Please am trying to create a SSRS report that looks like the image below
i have my table structure in this manner
Please note the data are not in relation with the chart
But all i could get as a result is a multiple bar chart. that resembles the image below.
Thanks in anticipations of your response
First of all, your "Balance on COC" is negative. That's probably not just a chart visualization issue.
You can format the numbers on the y-axis to be more readable like they are in your first screenshot. Click on the Chart Axis and set the LabelsFormat property to #,0;(#,0).
While numbers in the chart can have up to 16 digits, that is highly unreadable for most people. You might want to consider visualizing the numbers in Billions instead.
To get the labels on the x-axis you'll need to set that field as the Category Group. Then you can delete the legend area from the chart. You can also remove the "Axis Title" areas since they are not needed in this case. This will all make it look more polished like the other image.

SSRS 2016 : Issue using custom Parameters

I have a problem using a custom set of parameters.
I have data coming back in raw format. Some are numbers and some are .011 for percent.
I also have a format table that reviews the data and set it to the correct display based upon format. I have added two custom parameters, Target Min and Target Max. these parameters are text parameters and based upon what you enter, they change the color of the background for the table.
For example, if the Target Min is 35 and Target Max if 45, the text boxes with 35-45 are colored yellow and if they are above 45 they are colored red.
The problem comes in when I am adding the Min and Max for a percent. The raw data is .11 but the display based on Format is 11%. The parameters are not picking up the values unless I add .11 for Min and whatever for Max.
ANy help would be greatly appreciated.

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

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.

Microsoft Reporting Server Chart x-axis question

I have a simple chart, and on the x-axis I have numbers ranging from 10000 to 10031.
The numbers are from a SQL call, and these values have values, which are plotted on the y-axis, just a simple chart.
The chart is only showing six of the numbers between 10000 and 10031, and having the user figure out the other numbers, I suppose to avoid clutter.
I would like all of the x-axis number to show up, and to fit it will need to be rotated 90 degrees.
I cannot find a setting to make all of the numbers show up.
In "Axis Properties", select "Axis Options" and put in "1" for the expression to show all. "2" will show every other, and the default, "0" will mean for Reporting Services to optimize as it sees fit, usually between every fourth or sixth element.