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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

percentage difference

Status
Not open for further replies.

Monkey820

Technical User
Dec 11, 2003
62
0
0
US
Hi!

I need to show the difference between 2 values in percentage.

I have been away from crystal for a while and am feeling lost.

Any help appreciated.

Thanks
 
Between two fields? Two group summaries? You should provide more info initially. Syntax would be:

if {table.field1} <> 0 then
({table.field2}-{table.field1}) % {table.field1}

-LB
 
I need to know the percentage {Table.Avgcost} difference from {Table.Stdcost} per itemnumber and if the percentage is over 10% to change the font color to red.

This is a detail line item.

 
and .... I need to format the value
ex: 10%
 
So did you try my suggestion for the display? All you have to do then is click on the % icon in the toolbar. Then for the color, go to format field->font->color->x+2 and enter:

if currentfieldvalue > 10 then crred else crnocolor

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top