Forum Discussion

epaez's avatar
epaez
New Member
5 years ago
Solved

Forecast accuracy

Hello Community, thank you.

I have a linear series of product sales, month to month from the years 2015 to 2019, by product, customer

I'm using the Power BI Analitycs Forecast option to add the 2020 Forecast to the chart.

I see it correctly, but I would like to test the accuracy of this forecast:

The way to test it is to take the data from 2015,2016,2017,2018 and do the forecast for 2019, I'm already done, and I even have a graph with 2015,2016,2017,2018+forecast 2019 and another parallel with the real 2015.2016,2017,2018,2019 and I can see the comparison graphically of the year 2019, but I want to calculate the accuracy, that is to do a division (Real / Forecast)

any idea how to do that?

I don't know how to store this 2019 forecast in a table so that we can compare with the real of 2019.

Thank you.

Thank you

  • Hi epaez ,

    Basically you can export data from your line chart visual which includes forecast value like in 2019, here are the steps that you can try:

    1. Export data in the line chart including 2019 forecast as a .csv file

    2. Import the .csv file and transform data like only keep the date 2019 and the forecast value column in power query, close and apply it.

    3. Create a relationship between the new table and the initial table based on the date field.

    4. Create a measure to calculate the accuracy

    Forecast accuracy = 
    DIVIDE(SELECTEDVALUE('Sales Table'[Product sales]), SELECTEDVALUE('Forecast sales by 2019'[forecastValue]))​

    5. Use a table visual to show the comparison

    Attached a sample file in the below, hopes to help you.

     

    Best Regards,
    Yingjie Li

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies