Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

moving monthly average

$
0
0

Okay, I know there are many that have stumbled across this but I don't see any answers here that I can use. My fiscal year starts in April and I need to calculate a 6-month moving average of sales qty. The problem is, is that my date table starts in APR 2015, and even though I filter out FY15, the result set appears to include it in the values when I only want to start from FY16 onward. Any help on this will be appreciated!!

My calculation is as follows:

 

Qty 12M Months (act) = CALCULATE (
CALCULATE ( COUNTROWS ( VALUES ( Dates[FYM] ) ), Sales ),
DATESBETWEEN (
Dates[Date],
SAMEPERIODLASTYEAR ( NEXTDAY ( LASTDATE ( Dates[Date] ) ) ),
LASTDATE ( Dates[Date] )
)
)

 

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>