cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Helper I

## Calculating predicted values by averaging previous months of Available Data

Hello,

I have consumption data from 2017 to Aug. 2023 in Consumptio_Cost table and Calendar Table, and an already calculated measure for Electric predicted values. It is calculating the average of previous months.

The ELE Predicted values is calculating,  September 2023 value = (Sep. 2022 + Sep2021 + Sep 2020 + Sep 2019 + Sep2018) / 5

and so on..

If I choose the FY to be FY2025, then Sep2024 value will take = (Sep 2023 + Sep2022 + Sep2021+Sep2020+Sep19 ) / 5 , but Sep 2023 value is equal to 0 because it is missing, so the forecast will be wrong as shown in this image.

I want it get the value by dividing by the last 5 years of only Available data.

So, Sep2024 will be = (Sep2022 + Sep2021+ Sep2020+Sep19 ) / 4.

Thank you very much.

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). Leave out anything not related to the issue.
If you are unsure how to do that please refer to 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.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.