cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Cobra77 Member
Member

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

Accepted Solutions
Community Support Team
Community Support Team

Re: How calculate forecast on YTD with the last values

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

3 REPLIES 3
Community Support Team
Community Support Team

Re: How calculate forecast on YTD with the last values

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.
Cobra77 Member
Member

Re: How calculate forecast on YTD with the last values

Community Support Team
Community Support Team

Re: How calculate forecast on YTD with the last values

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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors