stormtrooper
Programmer
Hello there. I have deficit report in which I have to select facilities that have deficits, but, if updated without a deficit, not show up on the report. I'm running CR9 and data is from DB2.
Here is what the data would look like from DB2:
FAC_NO AMT LST_CHG_DT
12345 5000 2006-08-10
12345 -2345 2004-12-12
88888 -900 2006-07-30
88888 -1500 2005-10-31
Currently the record selection criteria on the report is as follows:
{AMT} < 0.00
The group selection criteria is as follows:
{LST_CHG_DT} = Maximum({LST_CHG_DT},{FAC_NO})
I know that this will only yield the negative amounts. I need to know if there is a way to select the facilities that only have a deficit amount and have not had an updated positive amount. (ie. facility 12345 would not show on the report and facility 88888 would show -900)
Thanks,
Here is what the data would look like from DB2:
FAC_NO AMT LST_CHG_DT
12345 5000 2006-08-10
12345 -2345 2004-12-12
88888 -900 2006-07-30
88888 -1500 2005-10-31
Currently the record selection criteria on the report is as follows:
{AMT} < 0.00
The group selection criteria is as follows:
{LST_CHG_DT} = Maximum({LST_CHG_DT},{FAC_NO})
I know that this will only yield the negative amounts. I need to know if there is a way to select the facilities that only have a deficit amount and have not had an updated positive amount. (ie. facility 12345 would not show on the report and facility 88888 would show -900)
Thanks,