Conditional Formatting using Numeric Operands with a Decimal
Posted: Fri Sep 03, 2010 2:04 pm
Hello,
I am trying to set up conditional formatting on a field assigned to a variable, TRRatio_USA, that needs to be formatted as a percentage; therefore, true value is a decimal, such as 1.85. So, I entered: TRRatio_USA . So, in an attempt to workaround, I tried several things:
1.) I multiplied my variable by 100 displaying 0 decimal places, and turned the field to the expression: {TRRatio_USA + "%"}, and changed the format to General. Set the conditional formatting to TRRatio_USA < 85. This results in the value being displayed with several decimal places, and the formatting is not enabled for values less than 85. I then formatted the field to number, displaying zero decimals, and had the same results. I realize this is because adding the "%" makes the field a string.
2. So, I changed the field to reference the variable only, rather than the expression including the "%", and I am able to format as needed. But how do I get the "%" sign on?
I am trying to set up conditional formatting on a field assigned to a variable, TRRatio_USA, that needs to be formatted as a percentage; therefore, true value is a decimal, such as 1.85. So, I entered: TRRatio_USA . So, in an attempt to workaround, I tried several things:
1.) I multiplied my variable by 100 displaying 0 decimal places, and turned the field to the expression: {TRRatio_USA + "%"}, and changed the format to General. Set the conditional formatting to TRRatio_USA < 85. This results in the value being displayed with several decimal places, and the formatting is not enabled for values less than 85. I then formatted the field to number, displaying zero decimals, and had the same results. I realize this is because adding the "%" makes the field a string.
2. So, I changed the field to reference the variable only, rather than the expression including the "%", and I am able to format as needed. But how do I get the "%" sign on?