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

5 Day Moving average - No Weekends in Data and how I skip weekends from my moving averages?

$
0
0

My data has only weekday, as per given formulas, my moving averages are considering weekends (Sat and Sudays) also as dates. How I skip those in my moving averages? please help.

 

My formulas:

5dayMovingSum =

CALCULATE(sum(Query1[Inv_Amount]),DATESINPERIOD(Query1[Inv_Date],LASTDATE(Query1[Inv_Date]),-5,day))

5dayMovingSum_Avg = CALCULATE(sum(Query1[Inv_Amount]),DATESINPERIOD(Query1[Inv_Date],LASTDATE(Query1[Inv_Date]),-5,day))/5

 

My Data screen shot:

Moving_Averages.png


Viewing all articles
Browse latest Browse all 216047

Trending Articles



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