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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to create complicated report in webfocus

Status
Not open for further replies.

ecomajor

Programmer
Sep 13, 2004
7
US
Hi,
I have a reports. Lets say that it has 3 fields. and lets say I am pulling 3 rows of data. The 4 fields are begining balance, inflow, outflow and ending_balance. I want the sum values of the inflow and outflow fields and I only want to take the begining balance from the row that has the earlist date and I only want to take the ending balance from the row with the last date. I wanted to create a computed field but the problem is that I cant seem to force the report compiler to evaluate every row. can someone please email me help as I dont have internet access that often.

thanks
 
ecomajor,

start by ensuring the data is in the correct order then use the FST and LST operators

eg

TABLE FILE X
PRINT *
BY DATE
ON TABLE HOLD
END

TABLE FILE HOLD
SUM FST.BEGINNING
INFLOW
OUTFLOW
LST.ENDING
END
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top