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
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

 

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

 

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.