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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
wbcogswell26
Frequent Visitor

Power BI Forecast - Using More Data than Visualizing - Hiding Data?

Hello! I'm fairly new to Power BI so I hope this isn't an easy question. 

I have a request to create a visual where I layer two line charts ontop of one another; 1 showing 2023 and then forcasting out 2024; the other showing 2024 actuals. However, the ask is to use data back to 2018 to create the forecast. I have created the visual by layering two line charts ontop of one another, one 2018 - 2023 and then adding a forecast; the other just showing actuals. (This also may not be the best solution)

Is there a way to hide years? I need the data to be present for the forecast, but I would like the visual to only be the past completed year and the current year. I know I can actually create a forcast model outside of PowerBI, but figured if the feature is built in it would be an easy viz. I also tried to move the visual into negaitve space; aka chaging the position to -1000 x 10 so that the top 2 year were the only ones on the viz, but it does not seem Power BI has this feature (something I used to do in Tableau). 

Any help would be appreciated! I'm prepping for the answer to be creating the forecast prior to creating the viz, but hoping there is a solution! Forecast Question.png

1 ACCEPTED SOLUTION

@wbcogswell26 Here's another idea. A third layered visual where you create a measure that returns a value if the date is less than 1/1/2023 but BLANK otherwise. Set width of the line to 1 more than the width of the current line. Set the color to the background color (white).



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@wbcogswell26 One possible solution would be to use the horizontal zoom slider. I will see if I can think of something else. Any chance you could provide sample data or a sample PBIX?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@wbcogswell26 Here's another idea. A third layered visual where you create a measure that returns a value if the date is less than 1/1/2023 but BLANK otherwise. Set width of the line to 1 more than the width of the current line. Set the color to the background color (white).



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

The Zoom Slider is a great quick solution, this will at least let me build the inital view, but I imagine I'll have to adjust this monthly as the data changes? It would be amazing if I could set a date as the start of the zoom slider; 

 

I attempted to load a PBIX having recreated the views using the Super Store Sales data, but I don't have permissions yet to load PBIX files, but essentially its just Month, Year, and Sales. 

 

I'll try the this view with the white, that may fix the need to adjust the Zoom on a monthly basis! 

 

Appreciate the help @Greg_Deckler

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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