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.
Related
I have a table in SSRS 2008, which I manually typed the values for each cell like:
Name Age Ratio
Jack 15 50%
John 20 35%
...
My problem is, when I export the table into Excel after the report is executed, the ratio values are not coming as "percentage", so it seems like below and it becomes required for the user to change the cell format to do any process on the number.
So the green arrows at the left corner should not be there and the values would be in percentage format. I could not find how to fix it. I tried: Right click to the cell in ssrs -> Textbox properties -> Number -> Percentage for all the cells but it did not fix the issue. I also tried to assign custom formats like "#,0%", "#%" etc., but it also did not solve. It seems basic, but I am kinda stuck. Any help would be appreciated.
Thanks
Edit: After comments, I tried the advises and the result in excel:
I left the content as it is and made the format "P0"
Changed the content by removing % sign and different format of numbers. but In excel, all were texts :(
Use expressions for the values as decimals, e.g. =0.22. The results of these equations will be treated as numbers, unlike when you type a value into a text box.
In the Text Box Properties of the cells, in the Number options, choose the Percentage category. This uses a format of 0.00%, rather than P0.
Testing this with SSRS 2008 R2 and Excel 2013 seems to give the desired effect, as the green arrows are missing and you can insert formulas without adjusting the exported cells.
I have a bar chart and the business has requested that I set the height for each bar at a static height i.e. 40 for the entire result set and then have the data labels displayed above the bar.
How can I set the output to a static height for each bar for the entire chart?
It looks like setting the maximum on the Axis plays silly games with the data labels so - as with most things SSRS - lets get creative!
Create your chart as normal.
Open up your Series Properties and change your Series Data Value Field to =iif(<Your column value expression here> > 40, 40, <Your column value expression here>). This will max out your columns at 40.
Open up your Series Label Properties and change the Label Data to =<Your column value expression here>. This will show the true value in your Data Label.
******************************** Alternatively *******************************
you could just enable Scale Breaks on your vertical axis and see if the business likes the look of that as, I would imagine from experience, what they actually want is more visibility on the difference between the smaller columns that are dwarfed by your Oct 10 column and not a pointless column chart where comparison is impossible without manually reading a load of figures.
I have a range bar chart inside a table of row group and the chart is repeatedly generated according to a category. I want to increase chart height dynamically based on a category.
suppose
if category =A THEN CHART HEIGHT=10CM
if category =B THEN CHART HEIGHT=7CM
If you look in the Properties of the chart there is a field called DynamicHeight, which will, as suggested, dynamically change the height of the chart based on a value.
For example I have set a parameter called Offset to default to 8.
You can then set the value of DynamicHeight to
=CStr(Parameters!Offset.Value) + "cm"
Then, as you change the Offset parameter, the width of the chart changes.
DynamicHeight = 8
and
DynamicHeight = 4
Now how you calculate the height to be a meaningful and consistent is up to you... I get the impression you wouldn't want to use a parameter like the example above, but I'm sure it would be possible to create a calculation that will give you a sensible layout.
Update
Note it is not possible to alter the DynamicHeight on a table that is recreated multiple times in a Matrix.
I believe this is because the size of the chart area is determined to generate the layout of the report, and this area is then populated with the actual chart later in the rendering process. It doesn't know until the later stage that is should be a smaller size, so therefore is not the smaller size.
I have SSRS reports which has a column chart.
The column chart has 2 value: Actual and Target.
The actual value is displayed as column chart with data labels displayed
and target value as Range column (my data has different targets for different values and would like to display target line for each bar)
The problem which I am running into is that sometimes this target line gets displayed over the data labels and its hard to read the data value.
Is there any way to set these labels to display over the target line when this happens?
This is what is happening right now:
https://drive.google.com/file/d/0Bx_Po7ND9VtOcW8xN3JSNlk5NjQ/view?usp=sharing
Options I tried till now:
1) setting the target values as first series and actual as second series: In this case I don't get to see the target lines as bars gets painted over the target lines.
You can set your Range Series' Fill color to use Transparency to allow the elements behind the line to be seen.
On another note, in the future you may want to do this with a StripLine on the axis rather than creating a new series.
http://blogs.adatis.co.uk/blogs/jeoc/archive/2013/07/23/adding-strip-lines-to-reports.aspx
http://blog.jontav.com/post/7067899413/axis-striplines-in-ssrs-charts
I have an Access 2007 report with a control based on a lookup field which has a list of values. The field values are strings:
0. Late
1. Critical
2. Urgent
3. Normal
4. Low
5. Closed
6. Draft/On Hold
In the conditional formatting box, I use:
Field Value Is equal to "0) Late"
and choose a different color background and text color. This should conditionally change the background and text color of the textbox when it's value matches "0) Late", however instead of showing up as expected, the report simply doesn't print that value.
Access help says "When you apply conditional formatting to a lookup field, the condition must be based on the lookup ID, not the value returned by the lookup field."
I'm not sure what it means by Lookup ID. Is that a number based on the position in the lookup value list? I've tried using 1 instead of 0) Late, but that doesn't work either.
The fields in the report were set with background "Transparent"; the backgrounds needed to be set to "Normal" for the fill colors to show up.