Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO RETURN THE PREVIOUS VALUE IN CRYSTAL REPORT

Status
Not open for further replies.

Shania Last

Systems Engineer
Apr 16, 2021
1
0
0
ID
HI ALL,

I HAVE A TABLE IN CRYSTAL REPORT 2013 LIKE THIS :

table3_ab53u0.png


this table is about sales data for each day, and on the 2rd there were no sales. so the column A is 0 on the date.

and the column of SUM is Running total of column A, and grouping by DATE.

I want ifnull sales on the that, then select previous value like this:
IFNULL_h9e6zq.png


I have created a formula for this column like this:

IF ({SUM}) = 0

THEN ({SUM}) = PREVIOUS({SUM})

And the result is still null.

I dont know what else to do, so that the value not null
 
There is a previous function in Crystal. Normally I use it do filter out duplicate values.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top