question on tsavg
Hi,
I want to take the avg of the sales for the past 52 weeks.I can use the tsavg function from wtoday to wtoday-52 for taking the avg of the sales for the past 52 weeks.(total sum of sales for 52 weeks/52)
But if the item has registered its first sale from 10 weeks back, then while taking avg, total sum should be divided with 10.
Do we have any function to identiy the first non zero value for finding the avg.
Thanks.