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

Problem with aging crosstab

Status
Not open for further replies.

Lucieann

Technical User
Aug 29, 2003
35
US
I am using the following formula for aging records in a crosstab:

If datediff("d",{TITM1301.ExpireDate}, currentdate) in 0 to 30 then "0-30" else
If datediff("d",{TITM1301.ExpireDate}, currentdate) in 31 to 60 then "31-60" else
if datediff("d",{TITM1301.ExpireDate}, currentdate) in 61 to 90 then "61-90" else
if datediff("d",{TITM1301.ExpireDate}, currentdate) >90 then "91+" else ""

The problem is that I have items that have aged 22 days, but are showing in the 31-60 colums of my crosstab.

Also how can you make a crosstab show all columns even if the value is 0? In this case, I'm only showing 31-60, 61-90 and 90+ columns. I would like to see the 0-30 as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top