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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
marcopaz
Frequent Visitor

Measure to Forecast based on average

Hello,

 

I am having a hard time to create a DAX formula that will create a projection of when a project will be completed based on how much is being Earned per month. I am trying to achieve something like the table below, where Power BI would detect the last month the Contractor earned something (2021 May), and then it would do two things:

1- Calculate the amount of months remaining at the given Average Earned so far

2- Project the Average Earnings for the remaining months.

 

marcopaz_0-1630443685663.jpeg

 

I had no issue on getting item 1, however I am still having a hard time to get the Average projected through the remaining months to complete.

 

Any ideas ?

 

Thanks,

1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

1 create a date table, mark it as date table, and create a column of "YearMonthNumber" 

wdx223_Daniel_0-1630469829704.png

2 create a relationship between fact table and date table with date columns

wdx223_Daniel_1-1630469898229.png

3 create two measures

wdx223_Daniel_2-1630469958812.png

 

 

 

View solution in original post

2 REPLIES 2
wdx223_Daniel
Super User
Super User

1 create a date table, mark it as date table, and create a column of "YearMonthNumber" 

wdx223_Daniel_0-1630469829704.png

2 create a relationship between fact table and date table with date columns

wdx223_Daniel_1-1630469898229.png

3 create two measures

wdx223_Daniel_2-1630469958812.png

 

 

 

Thank you very much Daniel, it worked perfectly ! I am still kind trying to understand the magic you've done to create the logic in which Power BI would project these values forward, but I am very happy with your solution.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors