Referencing the last row's data in Crystal Report

Posted by yeahumok on Stack Overflow See other posts from Stack Overflow or by yeahumok
Published on 2010-03-31T16:56:55Z Indexed on 2010/03/31 17:53 UTC
Read the original article Hit count: 350

Filed under:

I have a report where the fields come from data pulled from a SQL server. I have a total field that i have added to the report...however i have an interesting conundrum--i was hoping someone had a formula i could use.

Three of my columns do NOT need summation...however my project requirements are telling me instead to just pull the last number from the last row in the report and putting that in the total row. To better clarify:

1999   0.1%   0.2%   0.3%
2001   -2%    0.3%   3.4%

Basically, in the total field, i'd be pulling the values from 2001 since it is the last report row. In my total row, i want to have -2%, 0.3% and 3.4% showing (since those are the last row's values). SO basically, i just want to pull the last report row's data (NOT total it).

Anybody have a formula i can use for this?

© Stack Overflow or respective owner

Related posts about crystal-reports