Hi,
I am using a cross tab. There is a formula for Percentage which is as follows :
if {Command.Label}= "A" then 0
else if {Command.Label}= "B" then
if {Command.initial_count} = 0 then 0
else ({Command.Counts}/{Command.initial_count}*100)
else if {Command.failed_count} = 0 then 0
else ({Command.Counts}/{Command.failed_count}*100)
Under the summarized fields when I choose 'Weighted Avg of Command Percentage with command.initial_count' I get the correct %'s where Label = 'B'. If I choose 'Weighted Avg of Command Percentage with command.failed_count' I get incorrect %'s for Label B, but correct %'s for Label C. Is there a way I can handle this? I am using Crystal Reports 2008.
Thanks in advance,
Petronas
I am using a cross tab. There is a formula for Percentage which is as follows :
if {Command.Label}= "A" then 0
else if {Command.Label}= "B" then
if {Command.initial_count} = 0 then 0
else ({Command.Counts}/{Command.initial_count}*100)
else if {Command.failed_count} = 0 then 0
else ({Command.Counts}/{Command.failed_count}*100)
Under the summarized fields when I choose 'Weighted Avg of Command Percentage with command.initial_count' I get the correct %'s where Label = 'B'. If I choose 'Weighted Avg of Command Percentage with command.failed_count' I get incorrect %'s for Label B, but correct %'s for Label C. Is there a way I can handle this? I am using Crystal Reports 2008.
Thanks in advance,
Petronas