Conditional formatting in rounded values - formatting

Facing a trouble in Cognos 10, in my report I have to apply conditional formatting for values less than zero (except zero) as red, for which I am also applying round-off to zero decimals. Now the problem is values like -0.1 are getting rounded-off to 0, but also shown in red due to conditional formatting.
Is there any work around to show the rounded zero values in black?

Try rounding off the value on your condition on conditional style too. Like these:
round(([ColumnValue]*100),0) < 0
then set the foreground color or background color to red. Hope it helps.

Related

SSRS Bar Chart Conditional Formating

I am trying to conditional format a bar in my Bar Chart.
I am comparing Planned Time VS Actual time and I want to set a conditional format to display different colors IF Actual is less than or Equal to Planned then show me RED else GREEN.
I am unable to find a way to do this. Please Help!
I tried SWITCH and IIF functions but nothing happens. Same of my code attached.
=iif(Fields!ActualDuration.Value <= Fields!PlannedDuration.Value, "Light Coral", "Dark Sea Green")
I expect the bars to change color according to my criteria.
Because your chart sums the values, your expression for the Series Fill property also needs to use SUM:
=iif(SUM(Fields!ActualDuration.Value) <= SUM(Fields!PlannedDuration.Value), "Light Coral", "Dark Sea Green")

VBA - Conditional Formatting with tick mark and x mark

So, I am trying to use these symbols from conditional formatting, but I only need the red x and green tick mark. Is there a way to use only those two with conditional formatting and apply it within my code.
For those that have answered this is what my screen looks like.
Thanks
Depending on what you are applying you conditional formatting you could just set both to green then the last one to red as the picture show, when the number is greater equal than 0 is green else red. ( It's the italian excel version but i think that you can understand what i did)
See this:
Note the comparison operators with values. For Yellow select > instead of >=.
Go to CF menu.
Manage Rules
Edit Rule
Select ! and pick "No cell icon"

Using BIRT, how can I ensure that the background colour in a row is the same height in each cell in the row?

I have a BIRT report that I have set up to use conditional formatting so that the colour of the row alternates between grey and white. It works as expected except for the fact that the grey colour in a field with a string extends slightly below where the grey extends in a field with an integer. In other words, if the grey background is 1 inch high with an integer, it is 1.1 inch high with a string. I cannot see any differences in any of the margin or padding settings so I am not sure what would be causing this small issue.
It is easy to be confused with styling, because we can set style properties on rows, cells or data fields within cells.
As you describe this issue, i think you have not applied this conditional formatting on rows, but on cells or data fields.
When a BIRT table is selected in the outline view of Eclipse designer, we need to click on the left to select the whole row, and then define a conditional formatting. Thus, physically we can't have height differences between cells (at least in html format) because the style is applied on a "div" container.

Formatting in excel showing -0.02 as -0

I have applied following format on excel cell. ##0\%;[Red]\(##0\%\)
This format is rounding off the value and showing negative number in red color within brackets.
issue: small values such as -0.03 is shown as (0%) instead of coming as 0%. showing 0 as negative does not make any sense.
What should i do to force -0 to be shown as 0 instead of (0).
Thank you
It will color and parenthesise your number based on its actual value, not how it displays.
Hence, it you don't want that showing up, you need to change the actual value, such as with:
=trunc(<current formula>,0)
or (most likely better):
=round(<current formula>,0)
Alternatively, you can apply conditional formatting to a cell so that the given formatting is only applied if, for example, round(<this cell>,0) = 0.
In that case, you could apply "##0\%" if the rounding results in 0 or your current format "##0\%;[Red]\(##0\%\)" otherwise.

Reporting Services Chart - Custom Axis Label

I have a SQL Server Reporting Services (2008) chart (error chart). The X-axis has date intervals 1/1/2009, 2/1/2009, etc. The Y-axis has numeric intervals of 50. Values on the Y-axis are 0, 50 and 100. However, instead of displaying 0, 50 and 100 i would like to display "Small","Medium" and "Large" respectively. Does anyone know how this text replacement can be performed?
This is a bit of a hack, but here goes:
First, normalize your values around zero, so the smallest value is -50 and the largest value is 50. You can do this in the chart control itself, no need to change your dataset. Your values are between 0 and 100, so just subtract 50.
Next, under value axis properties -> axis options, set your minimum to -50, maximum to 50, and interval to 50.
Finally, under value axis properties -> Number, select Category as "Custom" and enter this in as the custom format expression: ="Large;Small;Medium"
(that's an excel format code: pos;neg;zero)
You should get something like this:
alt text http://img44.imageshack.us/img44/9011/chartz.png
According to Arbitrary Label for Y axis in SSRS Charts, you can achieve the similar effect by using strip line collection. See How to: Highlight Chart Data by Adding Strip Lines.