How to apply color dynamically in a header text box on Tablix SSRS - ssrs-2008

I did a ssrs report using Tablix Matrix control. I am designing that matrix with one column and many rows. That once column will repeat based on the group that i had from SP at run time. It works fine. But now I want to change the background color dynamically for the header text box of the tablix. Is it possible?
I need to do dynamically. Since I dont know how many column will get at run time. It depends upon the data from Stored Procedure.
Can any one help me out this?

You can set the background color for the textbox to an expression, just like any other text box. For example, something like this:
=Iif(Fields!MyHeader.Value = "AlertColumn", "#FF0000", "#FFFFFF")

This is a bit old post. But I can say that yes we can achive alternate row/Column background color on Matrix control.
Please take a look into Matrix row/column background color thred.

Related

How to combine text field and graphic element in jasper report

I have requirement to show data in table column in a way to graphically represent severity of value. Meaning, depending on data value in range 1-10, I should show different color circle together with value, as shown on image.
Any idea what is the best way how to do this in jasper report template. Not sure if it is possible to use ellipse graphic element for this.
Thanks

show each column in the cross-tab in different background color -Tableau

I am Creating a Cross-tab with Tableau Desktop 10.0.
I need to show each column in the cross-tab in different background color. How to do this tableau. I have read about a method using calculated columns, but i am looking for other options. Also is it possible differentiate each columns with a line?
Thanks for help
I'm not sure what you mean by calculated columns but the only way I know is to use a dummy Measure in the columns shelf and then place the actual measure you want on the Text pill. Set the marks to Bar and increase the size to full. Each Measure will have its own dummy Measure in the column shelf. Take a look at this example. https://dl.dropboxusercontent.com/u/60455118/160919%20stack%20question.twbx
As for differentiating each column with a line, you can do this by going Format > Borders > Column and adjust the Column Divider.

How to properly display a grid

I need to change a crystal report. It's a simple grid with header, footer and rows inside a group.
The grid is drawned with lines and inside each square a field is added to display the data. Is this the "normal" way of doing this? I would expect just adding fields with borders would be enought without the need to draw the grid line by line.
I'm using version 14
If you are happy with the kind of display with borders to the fields then you don't need to add the lines to form a grid else if you need to be more user friendly then you can add lines.
Either of the option is just a design change but not the logic change in the report...
So the answer for this question would be up to the user requirement and design requirement of the report

if entry from database is of a certain value, substitute an image on the report

I am trying to read a value from my database, and depending on the character, have a different image show. Basically the values will either be b,r,g,or y for blue, red, green yellow and in the report I would like to show a colored circle corresponding to the entry. Does anyone know a quick way to do this? I am new to crystal reports. Thank you.
Circles are created using a rectangle (yes, really). Set the roundness=100%. Unfortunately, you can't hide/show (suppress, In Crystal's vernacular) a rectangle with conditional logic. Nor can you change its x and y values. So, for your purposes, its useless.
One option is to insert four, colored, images of circles. Suppress all but the one that you want to display.
Another option is to insert a text box, then add a circular, wingding character to it (Word can help w/ this). Use the text box's conditional formatting to change its color.
One additional suggestion to craig. You could:
create an image file for each of the coloured circles
add one of these coloured circles to the report
right click, format graphic
from the picture tab, select the formula editor for graphic location
enter a formula which looks for the relevant coloured circle image file
'C:\circles\' + {table.field} + '.jpg'
L

Different color of rectangles (even/odd row)

I know how to color the full section (Section Expert - Color - Use Modulo Formula) but I also want to color rectangles in a row different. Well I think best way to explain this is an image:
http://i40.tinypic.com/2jd4wl.png
I made the layout using rectangles (hope they're called so in the english version)
is there any way to solve this? Maybe a possibility to set the background color of a ractangle by a formula?
I don't believe that drawing objects, including the box and line, support conditional colors in CR2008. Unfortunately, they also don't support conditional suppression so you can't just stack the objects and selectively suppress them to get the colors you want, either.
Other fields DO support conditional backgrounds, though. So you should be able to do away with the boxes altogether and just use the display fields (whether DB fields, formulas, whatever) to color the report. If you JUST want the colored boxes with no data in it, you can be sneaky and insert a blank text field and conditionally color the background (Right click on field -> "Format Text" -> "Border" tab -> "Background" -> Enter a conditional formula that returns a color). Bam, you've now got yourself a conditionally-colored box/rectangle.