Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Calculating Missing value percentage Post Reply Post New Topic
Author Message
shreyasee
Newbie
Newbie


Joined: 01 Nov 2008
Online Status: Offline
Posts: 1
Quote shreyasee Replybullet Topic: Calculating Missing value percentage
    Posted: 01 Nov 2008 at 8:35pm
Hi,
I am using Crystal Report 2008. In that I have created a Report by connecting it to a excel database. In that database there are many variables. For each variable I am trying to calculate the percentage of the missing values. Following is the code :

Numbervar Array a := UBound{dados_asc032907.patientinformation2};
Numbervar i;
Numbervar j := 0;

For i:= 1 To a Do
(
    If a = 0 Then
    (
        j := j+i;
    Else
        j;
    )
Exit For
);
b := j/a*100;
b;

But its giving error.
Can anybody help me to explain how the code should be written, as I am new to Crystal Report, I am little bit confused about the coding.

Thanks,
Shreyasee

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.