Forum Discussion
Help with calculating 3 months rolling average
I have below Matrix which is 3 different measures (only below 2 are important)
"Cash Out ACT SAP" = Costs month by month
"Cash Out YTD SAP" = Accumulated costs based on first column
I want to calculate a forecast that goes into the empty cell/cells for column "Cash Out YTD SAP"
I want to make a forecast base on the last 3 months from "Cash Out ACT SAP"
So, in order to populate 12/1/2023 for "Cash Out ACT SAP" I will take average of (9/1 + 10/1 + 11/1)/3
I then want to PLUS than on "Cash Out YTD SAP" 11/1 to populate 12/1
Maybe new columns should be made.
Have tried below but returns an error:
1 Reply
- lbendlin
Super User
Better to use the WINDOW function for that.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523