Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Percentage Completion - Ideas to improve

Status
Not open for further replies.

CR85user

Technical User
Jan 18, 2005
522
GB
Hi Folks,

Could I ask for any ideas to improve the formulae I use currently to display a completed percentage.

I have a percentage value - call it {@Completed} example values:
10
45
67
99
100

I then have a formula referencing this to display a proportionate value - call this {@growth}

Code:
//Completed percentile based on scoring
if {@Completed} <= 101 then replicatestring('|',12+{@Completed}) else ''

This is simply a check that the percentile is within the correct constraints and then to display a relevant width of the field. The +12 is to allow spacing for the percentile value itself to be placed in bold on top of the field.

I then place this field on the detail line and format the field as follows:
Border -> Tight Horizontal (Ticked)
Border -> Background (Ticked) X+2 Formula as follows:

Code:
color(255-{@Completed}*2,{@Completed}*2,0)

Font -> Color (Ticked) X+2 Formula as above:

Code:
color(255-{@Completed}*2,{@Completed}*2,0)

This then ranges the background and text colours to show a red colour for low percentiles up to green for completed. The middle ranges however are a pretty muddy brown rather than orange as such.

Any ideas How I can tweak this a little to show a more suitable range of fading colours?

Any help would be appreciated.

'J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top