Forum Discussion
Moving 3 months average in Mattrix
Hi All,
i could able to achieve sum of the months.
Provided the example for "sum" of all the columns and we are showing that in right hand side.
Can we calculate moving 3 months average in matrix? Provided the sample output below.
Thanks in Advance
6 Replies
- Greg_Deckler
Community Champion
See if my Time Intelligence the Hard Way provides a way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008- amitchandak
Super User
Try like
Avg3 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date Filer],ENDOFMONTH(Sales[Sales Date]),-3,MONTH))/3Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners/ba-p/890814
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p/881739
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601- AnonymousNot applicable
Hi amitchandak ,
It almost worked with sample data.
But i am not sure why it is not working properly for Source System "A". Very Starnge, might be issue from my side.
Thanks