Reply
abazzan
Helper I
Helper I
Partially syndicated - Outbound

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. 

abazzan_0-1696451226815.png

abazzan_1-1696451250625.png

 

 

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.

abazzan_2-1696451376524.png

 

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. 

@parry2k 

1 REPLY 1
lbendlin
Super User
Super User

Syndicated - Outbound

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.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

avatar user

Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)