Hi,
sorry new to the forum but could really do with some help....
I have a crosstab in crystal 9
looks like this -
all B2B B2c Balance
serviceDESC Rate
T1 8 100 50 25 25
T2 8 129 128 2 -255
the data is pulled from a sql server 2000 view called VIDS_RPT_IPSC_ADV_RENT_TOTAL
The balance Colunm is the grand total summary and i have created a formula field using
if (Previous({VIDS_RPT_IPSC_ADV_RENT_TOTAL.ServiceDESC})={VIDS_RPT_IPSC_ADV_RENT_TOTAL.ServiceDESC}) and
({VIDS_RPT_IPSC_ADV_RENT_TOTAL.ServiceDESC}=Next({VIDS_RPT_IPSC_ADV_RENT_TOTAL.ServiceDESC})) and
(Previous({VIDS_RPT_IPSC_ADV_RENT_TOTAL.RATE})={VIDS_RPT_IPSC_ADV_RENT_TOTAL.RATE}) and
({VIDS_RPT_IPSC_ADV_RENT_TOTAL.RATE}=Next({VIDS_RPT_IPSC_ADV_RENT_TOTAL.RATE}))
then
Previous({VIDS_RPT_IPSC_ADV_RENT_TOTAL.Record_Count})-{VIDS_RPT_IPSC_ADV_RENT_TOTAL.Record_Count}-Next({VIDS_RPT_IPSC_ADV_RENT_TOTAL.Record_Count})
else 0
however as i have tried to show in the example for some reason when the calculation produces a negative result it puts some wierd Number in there.
i.e. 129-128-2=-255
anyone got any idea why this might be happening??
Thanks for your help in advance.
sorry new to the forum but could really do with some help....
I have a crosstab in crystal 9
looks like this -
all B2B B2c Balance
serviceDESC Rate
T1 8 100 50 25 25
T2 8 129 128 2 -255
the data is pulled from a sql server 2000 view called VIDS_RPT_IPSC_ADV_RENT_TOTAL
The balance Colunm is the grand total summary and i have created a formula field using
if (Previous({VIDS_RPT_IPSC_ADV_RENT_TOTAL.ServiceDESC})={VIDS_RPT_IPSC_ADV_RENT_TOTAL.ServiceDESC}) and
({VIDS_RPT_IPSC_ADV_RENT_TOTAL.ServiceDESC}=Next({VIDS_RPT_IPSC_ADV_RENT_TOTAL.ServiceDESC})) and
(Previous({VIDS_RPT_IPSC_ADV_RENT_TOTAL.RATE})={VIDS_RPT_IPSC_ADV_RENT_TOTAL.RATE}) and
({VIDS_RPT_IPSC_ADV_RENT_TOTAL.RATE}=Next({VIDS_RPT_IPSC_ADV_RENT_TOTAL.RATE}))
then
Previous({VIDS_RPT_IPSC_ADV_RENT_TOTAL.Record_Count})-{VIDS_RPT_IPSC_ADV_RENT_TOTAL.Record_Count}-Next({VIDS_RPT_IPSC_ADV_RENT_TOTAL.Record_Count})
else 0
however as i have tried to show in the example for some reason when the calculation produces a negative result it puts some wierd Number in there.
i.e. 129-128-2=-255
anyone got any idea why this might be happening??
Thanks for your help in advance.