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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
fariz
Regular Visitor

How to create a line chart to show Sales and Forecast with Year legend?

How can I create the same chart below? The red lines are Sales while the blue is Forecast. The chart separates the lines by Year (legend). In Power BI, I tried using a line chart or combo chart but I still cannot add the Year column into the Legend under Visualizations if I add Sales and Forecast.

 

Is the only way to create a measure that combines Sales and Forecast? However, I won't be able to differentiate Sales and Forecast for the current year (2023 will have red and blue line)

 

Appreciate any advice!

fariz_0-1688114260946.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @fariz there are many workrounds for creating forecasts at line chart.
Please refer linked tutorials:
https://www.youtube.com/watch?v=_TAGpAJ9rTQ&t=94s

https://www.youtube.com/watch?v=dWyieDU4zWY&t=16s

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Hi @fariz there are many workrounds for creating forecasts at line chart.
Please refer linked tutorials:
https://www.youtube.com/watch?v=_TAGpAJ9rTQ&t=94s

https://www.youtube.com/watch?v=dWyieDU4zWY&t=16s

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.