M
Marty Underwood
Got a quick question that I cannot get to work at work!
I have a field in SQL server that is set as a varchar but contains data like
extract the two and create a conditional formatting result in a datalist.
Basically it would be something like this.
Assume actualpercentage = 30
targetpercentage = >50
If actual percentagetargetpercentage = True then forecolor= "Green"
Else
forecolor = "Red"
In actual terms it would be like
If 30>50 = True then forecolor = "Green"
Else
forecolor = "Red"
Don't worry about setting the color I can get that accomplished if I could
just build the boolean expression. And trust me I know the way it is written
here seems weird but it represents what I need to test. Basically the target
percentage is anything above 50% so I need to test and see if the actual was
greater than the target. However, like I show before the target could be
anything like <2%
Thanks for any help, a function or any mechanism for that matter would be
great.
Marty U
I have a field in SQL server that is set as a varchar but contains data like
table stored as Decimal(14,2) that is the actual percentage. I need to50 or <2 which is actually a target percentage. I have data in another
extract the two and create a conditional formatting result in a datalist.
Basically it would be something like this.
Assume actualpercentage = 30
targetpercentage = >50
If actual percentagetargetpercentage = True then forecolor= "Green"
Else
forecolor = "Red"
In actual terms it would be like
If 30>50 = True then forecolor = "Green"
Else
forecolor = "Red"
Don't worry about setting the color I can get that accomplished if I could
just build the boolean expression. And trust me I know the way it is written
here seems weird but it represents what I need to test. Basically the target
percentage is anything above 50% so I need to test and see if the actual was
greater than the target. However, like I show before the target could be
anything like <2%
Thanks for any help, a function or any mechanism for that matter would be
great.
Marty U