Changing the colour of a text box when the value is zero

Hello
I have some code in an expression that changes the fill colour of a text box in a matrix in an SSRS report.
When the value in the year fields is greater than zero then fine it changes the colour to what I want it to be but when the value is zero then the colour just stays white.
I'm not testing the value in the year fields but in the Tier field. It seems to default to no colour when the year fields are 0 though.
The code I am using is as follows
=switch(Fields!TIER.Value=1,"PaleGreen",Fields!TIER.Value=2,"Cyan",Fields!TIER.Value=3,"Beige")
This code is in the year field textbox fill property.
I have loaded a screenshot to show an example showing what is happening in the matrix.
Thanks for any help on this
Regards
John

Hi John,
According to your description, you want to change the background color of a textbox when its value is greater than zero. If in this scenario, we can use the expression below to control the BackgroundColor property of the textbox:
=iif(Fields!SalesAmount.Value>0,"Yellow","White")
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • How to set the cursor in a text box when the application starts?

    Hi. It's me again. Its seems to me that there isn't any Spanish speaker, so I reformulate my question in English. What I want is to place the cursor in the text box so that the user can enter the text. Could anybody help me? Thanks in advance. MamenFLASH$

    Hi. I have Flash 2004 Professional, as 2. Any idea of how can I do it 
    by means of Java Script or action script 2? Thanks in advance. 
    MamenFLASH$
    El 23/01/2010, a las 21:22, kglad escribió:
    >
    you can do that when your flash has focus.  (how you do it depends 
    on your as version).
    >
    and while flash can't set focus on itself, you may be able to use 
    javascript to set focus on your flash.
    >

  • How to disply the input text box when the data in the table is empty

    Hi,
    I m using JDeveloper 11g 5.1.1.1 : How to display the Input text box when the data in the table is empty or by using the dual table.
    Since there is no record in the table, screen is displying only the lable. not displying the Input text box.? Any property is there to enable?.
    One more case i tried by using dual (eg Select '0' as name from dual) created one view object and dragged in the JSF screen as input combo box with list of values.
    In this case also it is not displaying the combo box.Just displaying the Lable name and 0 only.
    Regards
    Bijesh K

    Hi,
    I didn,t get you.Could you please explain. I am not choosing the ADF table. Selecting and dragging ADF form only.
    Regards
    Bijesh K

  • How do I change the colour of my text box?

    Hey
    What would I add to this code:
    <td width="3"><input name="question" type="text" id="subject" value="Here" size="50" /></td>
    To make the input box black?
    Thank You

    Or, adding css to just the input...
    <input name="question" type="text" id="subject" value="Here" size="50" style="background-color:black; color:white;" />
    the color:white can be changed to any color you want to have the text show as using hex colors (#ffffff for example).

  • How can I drag the edge/resize a text box on the 3rd row w/o changing all the rows above it?

    I am new to Acrobat and FormsCentral of course.
    I have three rows of text boxes, something like this:
    Name
    (other text fields)
    Primary Address
    I want the input box to be immediately following the label; for example (pretend the underline is the input box:
    Name ___________
    (other text fields)
    Primary Address ___________
    However, Forms Central looks like this:
    Name        _________________
    (other text fields)
    Primary
    Address     ______________
    When I try to edit the Primary Address box, either by dragging the right label edge or the left text box edge on that field, it also drags the edges of the fields above it!
    Is there a way NOT to do this?
    I've been trying to find tutorials on how to manipulate the design/layout of the forms, but so far all the YouTube and other tutorials I've seen simply do a vertical form, one field per line.
    Thanks!

    You can change the size of the label, the text input box, and the field itself (border around the field in the design tab) - however there is one exception to being able to control the size of every field individually:
    Fields that have "Labels left" or "Labels right" that are also the first field in a row will all share the same label width.
    This is probably what you are encountering, this is how the fields work for now, those first in a row label left/right labels are all the same width.
    Thanks,
    Josh

  • Using a Substitution Variable in a text box when the member isn't used in a grid

    Hi,
    I'm trying to create a footer in my report to display a substitution variable for the "Period" dimension. The Period dimension is not used in any of the rows or columns in my grid in my report in FR studio. It is left as a POV. I am trying to reference the substitution variable for CurrentMonth, which is independant of what the user selects for the Peiod POV.
    For example, the user runs the report and selects YearTotal for the Period dimension. I want to bring back the substitution variable of &CurrentMonth for Period even though it is not selected in the Grid for the report. Is there a way to do that?
    The workaround I am using is adding a second Grid and selecting the Substitution variable in the row and referencing the function from the second grid, which is hidden. This is bulky, and I'm hoping for a cleaner solution. The function I'm using from Grid 2 is below:
    <<MemberAlias("Grid2", 1, "Period")>>
    If I referenced Grid1 for Period, the function would display the user's POV selection, which is not what I want.
    Any help would be much appreciated. Thanks so much!!
    Tiffany

    Tiffany,
    I do the following which I think may fit you need:
    Add the "Period" dimension to the Columns section.
    Make the "Period" dimension the top most member of your column selections.
    Hide that row.
    Set the left most column to "Current Poinf of View for Period"
    Select "Same As Col A" (for example) for the remaining report columns.
    Add a column to the far right and use the &CurrentMonth substitution variable for the "Period" dimension. (The other dimensions in that column should be set, if possible, to retrieve as little data as possible.)
    Hide the new column.
    Change the function in the footer to <<MemberAlias(Grid1, A, "Period")>>
    This should allow your user to select their desired period without impacting the hidden column value of &CurrentMonth which will be displayed in your footer.
    Bill

  • How to change the font size of Text box tool ?

    How to change the font size of Text box tool ?
    I am using Acrobat PDF 6.0
    Tools > Advanced Commenting > Text Box Tool
    I need to know how to change the font size. The default font size is too big.
    let me know
    Thanks

    I do not have AA6 available right now (I can check at home this evening). I am also using AA Pro, not Std. In AA7, there is a text box tool that is a commenting tool. When I started typing, a properties toolbar came up that had the font size and such. I haven't figured out how to get the toolbar after the fact. In AA8, I selected the text box tool and then went to view and selected the properties bar (the font size and all showed then), or use Ctrl-E when editing the text. I have not been able to figure out how to edit the text in a text box after you have created it - think it is a mental block right now. Bill

  • Changing a PDF with a text box, and then flatten the text box onto the underlying PDF before sending the document out.

    I download PDF documents from municipalities, often and from numerous municipalities.
    They have a scanned image of a form that I need to fill out,
    I enter my contact info as a text box onto the form, along with other information,
    but when I save the document, there seems no way to flatten the fields so that the person I send the document to has a true PDF and cannot change the document.
    They could delete one of the text boxes or change the text in the box (by mistake),
    which could case some major complications.
    How do I flatten the document, so I can send it back to the municipalities as a PDF that cannot be changed.
    I am using Acrobat X Pro, on windows XP machine

    I doubt you could fix this. Generally a "garbled" file is considered unusable for copying, and that's that. If a PDF uses random mappings instead of standard ones it looks fine on screen, but text extraction is impossible.
    Short of converting every page to bitmap and OCRing again.

  • The curser includes a text box from a previous image or link when the curser is positioned on the side of the page. i click and it goes away but only to return again on the next launched page. how do i get rid of this?

    the cursor includes a text box from a previous image or link when the cursor is positioned on the side of the page. it will mainly happen when i hit "back" from the page i was on. i click and it goes away but only to return again on the next launched page. i also keep several tabs open and it will carry over to any one of them i go to. how do i get rid of this?
    == This happened ==
    Every time Firefox opened
    == when i upgraded to most recent version 3.6.8

    A number of extensions can cause that problem, you'll need to do a little troubleshooting to find out which extension is causing that to happen for you.
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • How do I add text to a photo when making a calendar from iPhoto?  I see the text box for the dates but not for the actual photo...thanks.

    I can't find a way to add text to a photo once it's been put into the top pane of the calendar month...is there a way to do this since I'd like to add a descriptor to the photos?  I see the text box when you click on the calendar date, but don't find one for the photo pane.  Thanks for any assistance.

    Right - you can not add text to photos with iPhoto - you must use an external editor
    LN

  • Is it possible to change the size of a text box on a photo book page

    I am a first-time user of the photo book application in iPhoto. I am wondering if it is possible to:
    1. change the size of a text box
    2. have more than one text box on a page
    3. move the text box around.
    Thanks, in advance, for any suggestions someone might have.
    newtongrammy

    I am a first-time user of the photo book application in iPhoto.
    I also was a first-time user, so I started using it. Exploring the possibilities, learning my way around.
    Thanks, in advance, for any suggestions someone might have.
    Click the ? icon
    Oops. Sorry, but you're in the wrong forum : iLife > iPhoto

  • Changing text features (font, point size etc) in multiple text boxes at the same time

    That pretty much says it all: I'm using pages for some simple initial rendering to send my graphic designer and it would save me some time if I could change the font & point-size for all the various text boxes at the same time.
    Cheers,
    Rax

    Thank you both!
    How 'bout changing the actual content uniformly? Am I still stuck changing each box individually? I know that I am pushing it to do things that it wasn't made for, but I can dream, can't I?
    Thanks again,
    Rax

  • How do you change the font in multiple text boxes?

    I just started using illustrator and I can't figure this one out.  Maybe someone can point me in the right direction.
    I made a bunch of text boxes using the type tool.  Is there a way I can link the boxes and easily change the font?
    Thanks,
    Justin

    You select the text frames holding dow the shift keys then go to Type>Thread text, I would select the text frames in the order you wan them threaded.
    Then once threaded you click the text tool inside of one of the text strings and do a command A to select all the text and then choose any method of changing the font such as Character Panel, Control Panel or Type>Font menu item.
    you can also look into creating Paragraph styles as well.

  • How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit.

    How to change the font size of Text Box  Properties Appearance tab into 2 decimal digit. I am uanble to modify it to 5.38 pt for example. Its only allowing to 1 decimal place.

    Click on each field and the choose Properties from either File menu (or if on Mac hold dow mouse button until context menu appears choose properties)
    go to Font
    choose desired size and type font,you can choose to make this the default.
    Do this with each field.
    Or if you have a lot of fields:
    while one is selected select all of them
    then go to fonts in properties
    change Font and size and make default.

  • My mac keeps highlighting different boxes all the time and a text box has appeared on the screen that says what box is highlighted if the sound is turned up when you press a key or click on a box you are informed of the action any ideas what i can do?

    Hi my Mac keeps highlighting different action boxes (on its own) all the time a strange text box has appeared on the screen that informs you if you press a key or click on a item. if the sound is turned up you are informed when a item is highlighted or a you click on a item HELP!

    Hi Thanks for your help fixed the problem
    Kind Regards
    Nannedee

Maybe you are looking for