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
Anonymous
Not applicable

Forecast Future Date

Hi all, second time posting and I hope I have the correct forum. I have been battling this calculation for weeks now with no forward traction. I just cant take it anymore! Please help! I've read so many post on this forum on how to solve, I feel as if I know some of you! 🙂  

My scenario.. I have a date table, I have a fact table with non continous dates. I am attempting to fill in blank values with the average of the last three values. I am creating barcharts for my forecast not a table. although neither is working. I do have a relationship between fact and datetable by date. I do not have a full years worth of data and my calculations are by week (start date on Sunday. The issue is, I can get the calc to work for dates that currently have data. I dont need the values to be available for dates that have actual values. If I slice to a date (datetable [start of week] that has no values,then the column is completely blank. Here is my last attempt... I'm dizzy at this point trying different things. Please help!!

DT Forecast =

  If (ISBlank(ResBasicsPlanCombo[Entered Hrs.]),VAR FVD= min(ResBasicsPlanCombo[Week Starting]) VAR CurrentDate =

      CALCULATE(

         LASTNONBLANK('ResBasicsPlanCombo'[Week Starting],ResBasicsPlanCombo[EnteredHrs.]),

     ResBasicsPlanCombo[Week Starting]< FVD)

     VAR Assign= Calculate([FinalHrs],ResBasicsPlanCombo[Week Starting]>=CurrentDate)

Return Assign

2020-08-07_2-49-46B.jpg

 

4 REPLIES 4
DataInsights
Super User
Super User

@Anonymous, would you be able to clarify the result you want? In the example, the average of 40.25 is at the total level. Do you want to calculate this average at the Catcher level or the total level? If you could walk through a few examples and provide a screenshot of the desired output, it would be helpful.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

@DataInsightsAt the catcher level. Thanks so much for trying to help. I have been pounding my head for weeks now!Example.jpgenshot of example....

Anonymous
Not applicable

Hi @Anonymous,

If you share some dummy data with a similar data structure and expected result it should help us clarify your data structure and do test coding formula on these sample data.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.