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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

October NL Carousel

Fabric Community Update - October 2024

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