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
Cobra77
Post Patron
Post Patron

How calculate forecast on YTD with the last values

Hi ,

how to calculate a kind of forecast based on the last value of the month with data ?

Take for example with this dataset :

 

ytdforecast.jpgytdforecast2.jpg

 

we would like to have this YTD + forecast measure, which recovers the last existing monthly value and adds it up each month, dynamically.

 

thanks for your help

 

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @Cobra77 

 

Please kindly add the calculated column in calendar table:

Monthnum = MONTH([Date])

and then add the measure:

Measure = var a = MAX('Calendar'[Monthnum])-6
Return
IF([Sales YTD]=BLANK(),20*a+[Sales (YTD) basic],[Sales YTD])

3.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

4 REPLIES 4
Manish0664
New Member

20230103_160253.jpg

20230103_160300.jpg

 how I calculate measure for this????

Need actual 2023 then remaining forecast

v-diye-msft
Community Support
Community Support

Hi @Cobra77 

 

Please kindly add the calculated column in calendar table:

Monthnum = MONTH([Date])

and then add the measure:

Measure = var a = MAX('Calendar'[Monthnum])-6
Return
IF([Sales YTD]=BLANK(),20*a+[Sales (YTD) basic],[Sales YTD])

3.PNG

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
v-diye-msft
Community Support
Community Support

Hi @Cobra77 

 

You need to add the index column and create a measure. please kindly share your simple worksheet/dummy pbix, I'll draw it up for you.

 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the 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.