My report displays yearly usage by month. Variables are used to sum and display the total usage per month, it's essentially a manual crosstab. We display total usage and costs.
My problem is determining average usage (total usage/number of months showing usage). For example, I have an item which was issued in Jan (8 units) and Mar (2 units), total usage (10 units) and divide by (2 months), I should get 5 but I haven't been able to figure out how to count the number of months showing usage. The dates in the table show daily transactions and are converted within the report options to string fields (long story - cannot change this aspect).
I can get an average based upon the number of transactions but I need it based upon the number of months showing usage.
I'm using CRWv8.5Pro and the db is Sybase 7.
Any suggestions welcome!
Thanks!
My problem is determining average usage (total usage/number of months showing usage). For example, I have an item which was issued in Jan (8 units) and Mar (2 units), total usage (10 units) and divide by (2 months), I should get 5 but I haven't been able to figure out how to count the number of months showing usage. The dates in the table show daily transactions and are converted within the report options to string fields (long story - cannot change this aspect).
I can get an average based upon the number of transactions but I need it based upon the number of months showing usage.
I'm using CRWv8.5Pro and the db is Sybase 7.
Any suggestions welcome!
Thanks!