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.
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.