Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
powerbiuser223
Regular Visitor

Deriving forecast accuracy and bias from raw data by SKU level

Hi everyone, 

 

I am looking for help to get forecast accuracy from the raw data below and I need it to be dynamic/easy to refresh when new data comes in every month. 

Here are some points to note:

- Forecast accuracy = 1 - (sum of ABS error / sum of sales)

- Bias = (sum of forecast / sum of sales) - 1

- New data will be added in the following month (i.e. July 2023 submission which consist of forecast for month of July onwards to Dec 2023 for the same SKU)

- I want to look at different period of forecast accuracy:

Lag 1 = June vs May

Lag 2 = June vs April

Lag 3 = June vs March

Hence, when July 2023 submission comes in, I need the forecast accuracy to be automatically changed to:

Lag 1 = July vs June

Lag 2 = July vs May

Lag 3= July vs April

- In the dashboard, I do want to see forecast accuracy & bias by SKU, by country and all other categories the SKU have (which is not present in this simplified table)

 

Should I do the calculations with DAX in measures or Powerquery? And how should I go about doing it. I am not sure where to begin. 

 

Note: this is incomplete data. There is more than 1 SKU but the same logic applies.

powerbiuser223_0-1689155035058.png

 

2 REPLIES 2
lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Hi, here are the sample data and the goal of the dashboard - to get forecast accuracy (and eventually bias)

https://docs.google.com/spreadsheets/d/e/2PACX-1vRSa3nOxPqP4mqzqXSWa_k8yxehvSPGfp88DDnZLr1cq-Et_yFSr...

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.