I don't understand how the minimum formula works or whether it can be applied in this report. I'm using CR7 and the report groups by UserName.
I have formula {@A} that stores the call durations for all inbound calls:
If {@CallDirection} = "Inbound" Then ({@CallDur}/60) Else 0
What I'd like to have is the minimum call duration for each user excluding zeros displayed at the Group Footer section. This is the {@MinDur} formula:
Global NumberVar x;
Global NUmberVar grpNo;
If OnFirstRecord Then
(
grpNo := GroupNumber;
x := {@A};
)
Else If grpNo <> GroupNUmber Then
(
grpNo := GroupNumber;
x := {@A};
);
If {@A} <> 0 Then
(
If {@A} < x Then
x := {@A};
);
x;
I have six user records in the database but only 4 is showing. The {@mindur} for 3 users are correct but one is wrong. I'm not sure if the formula is correct. Please advise. Thanks.
I have formula {@A} that stores the call durations for all inbound calls:
If {@CallDirection} = "Inbound" Then ({@CallDur}/60) Else 0
What I'd like to have is the minimum call duration for each user excluding zeros displayed at the Group Footer section. This is the {@MinDur} formula:
Global NumberVar x;
Global NUmberVar grpNo;
If OnFirstRecord Then
(
grpNo := GroupNumber;
x := {@A};
)
Else If grpNo <> GroupNUmber Then
(
grpNo := GroupNumber;
x := {@A};
);
If {@A} <> 0 Then
(
If {@A} < x Then
x := {@A};
);
x;
I have six user records in the database but only 4 is showing. The {@mindur} for 3 users are correct but one is wrong. I'm not sure if the formula is correct. Please advise. Thanks.