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
AnonymousPerson
Advocate V
Advocate V

Stop a Power BI Forecast Line at a specific end date?

Hello All...

I have a line graph in Power BI Desktop (shown below). I want to forecast daily YTD sales through the end of this year

The Forecast analysis tool built into the line graph only lets me specify a number of future periods. Well, this is always relative to what day of the year today is. I don't want to change it every day.

Is there a way to say that regardless of what day of the year today is, I only want to see a forecast through 12/31/2021?  Even with a 3rd party visual or a custom measure?

Putting a date filter on the visual doesn't work because the forecast time period parameters override that.

dballanco_0-1615064016033.png

 

 

In the screen-shot, everything right of the vertical line should not be there.

Thanks!

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

Hi, @AnonymousPerson 

According to your requirement, I think that you can go to the X-axis of the line chart and set the end date manually as “2021-12-31”, like this:

v-robertq-msft_0-1615273849546.png

 

Then the Forecast Line over '2021-12-31' will be hided in the line chart easily.

And you can get what you want.

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

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
v-robertq-msft
Community Support
Community Support

Hi, @AnonymousPerson 

According to your requirement, I think that you can go to the X-axis of the line chart and set the end date manually as “2021-12-31”, like this:

v-robertq-msft_0-1615273849546.png

 

Then the Forecast Line over '2021-12-31' will be hided in the line chart easily.

And you can get what you want.

You can download my test pbix file here

 

If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.

How to Get Your Question Answered Quickly 

 

Best Regards,

Community Support Team _Robert Qin

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

That works... Thanks!  I'll settle for updating the visual once per year, compared to once per day. 🙂

AllisonKennedy
Super User
Super User

@AnonymousPerson  Really good question, I'm posting here partly because I want to subscribe to other replies - there's possibly a custom visual that does this already. 

 

You could definitely achieve using a custom measure, but that would require you to do the forecasting formula manually and determine what type of regression analysis you want to use, takes the AI out of the visual. 

 

There are lots of different versions of this post in the Ideas forum - you can up vote it to see if it gets short listed: https://ideas.powerbi.com/ideas/idea/?ideaid=4b232cae-0823-4408-9a96-e42e124adcc4 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.