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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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