I have the following formulas in different sections of my report
{@InterpreterPresent?}
if not isnull({tlkpSpeciality.Caption}) and {tlkpSpeciality.Caption} = "Interpreter" then 1 else 0
{@InterpreterRequired?}
if not isnull({tblPerson.InterpreterReq}) and {tblPerson.InterpreterReq} = True then 1 else 0
{@IntReqCase}
whileprintingrecords;
if Sum ({@InterpreterRequired?}, {tblCase.CaseID}) > 0 then 1 else 0
{@IntPresCase}
whileprintingrecords;
if Sum ({@InterpreterPresent?}, {tblCase.CaseID}) > 0 and
Sum ({@InterpreterRequired?}, {tblCase.CaseID}) > 0 then 1 else 0
{@CountIntPres}
whileprintingrecords;
Shared NumberVar IntPrest;
If {@IntPresCase} = 1 then
IntPrest:= IntPrest + {@IntPresCase}
Else
IntPrest;
{@CountIntReq}
whileprintingrecords;
Shared NumberVar IntReq;
If {@IntReqCase} = 1 then
IntReq:= IntReq + 1
else
IntReq;
{@ResetVar}
Shared NumberVar IntReq:=0;
Shared NumberVar IntPrest:=0;
{@ShowIntPres}
Shared NumberVar IntPrest;
{@ShowIntReq}
Shared NumberVar IntReq;
{@%Perc}
whileprintingrecords;
Shared NumberVar IntPrest;
Shared NumberVar IntReq;
If IntPrest > 0 and IntReq > 0 then
IntPrest/IntReq *100
Else
0.00
There are 2 groups in my report
Group 1 - tblTeam.Team
Group 2 – tblCase.CaseID
This is how the formulas are placed on the report:
GH1 {@ResetVar}
GH2
D {@InterpreterRequired?} {@InterpreterPresent?}
GF2 {@IntReqCase}, {@CountIntReq} {@IntPresCase},{@CountIntPres}
GF1 {@ShowIntPres}, {@ShowIntReq},{@%Perc}
All sections are suppressed except GF1
I want to create a graph to show value of {@%Perc} but it doesn’t appear in the available field list in the chart expert.
Any ideas ?
Apologies for the long explanation but couldn't think of any other way to put it.
Many thanks in advance.
C8
{@InterpreterPresent?}
if not isnull({tlkpSpeciality.Caption}) and {tlkpSpeciality.Caption} = "Interpreter" then 1 else 0
{@InterpreterRequired?}
if not isnull({tblPerson.InterpreterReq}) and {tblPerson.InterpreterReq} = True then 1 else 0
{@IntReqCase}
whileprintingrecords;
if Sum ({@InterpreterRequired?}, {tblCase.CaseID}) > 0 then 1 else 0
{@IntPresCase}
whileprintingrecords;
if Sum ({@InterpreterPresent?}, {tblCase.CaseID}) > 0 and
Sum ({@InterpreterRequired?}, {tblCase.CaseID}) > 0 then 1 else 0
{@CountIntPres}
whileprintingrecords;
Shared NumberVar IntPrest;
If {@IntPresCase} = 1 then
IntPrest:= IntPrest + {@IntPresCase}
Else
IntPrest;
{@CountIntReq}
whileprintingrecords;
Shared NumberVar IntReq;
If {@IntReqCase} = 1 then
IntReq:= IntReq + 1
else
IntReq;
{@ResetVar}
Shared NumberVar IntReq:=0;
Shared NumberVar IntPrest:=0;
{@ShowIntPres}
Shared NumberVar IntPrest;
{@ShowIntReq}
Shared NumberVar IntReq;
{@%Perc}
whileprintingrecords;
Shared NumberVar IntPrest;
Shared NumberVar IntReq;
If IntPrest > 0 and IntReq > 0 then
IntPrest/IntReq *100
Else
0.00
There are 2 groups in my report
Group 1 - tblTeam.Team
Group 2 – tblCase.CaseID
This is how the formulas are placed on the report:
GH1 {@ResetVar}
GH2
D {@InterpreterRequired?} {@InterpreterPresent?}
GF2 {@IntReqCase}, {@CountIntReq} {@IntPresCase},{@CountIntPres}
GF1 {@ShowIntPres}, {@ShowIntReq},{@%Perc}
All sections are suppressed except GF1
I want to create a graph to show value of {@%Perc} but it doesn’t appear in the available field list in the chart expert.
Any ideas ?
Apologies for the long explanation but couldn't think of any other way to put it.
Many thanks in advance.
C8