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
Anonymous
Not applicable

Line with two colors

I am trying to create a line graph that shows historical and forecasted data, and I want the color for the forecasted data to be lighter. I have created a new column to have it added as legend:

 

Quarter Color = if(Annual[Quarter]<DATE(2018,4,1),"Inflation","Inflation forecast")

 

But after doing that, the line is not continuous anymore and it looks like this:

 

https://imgur.com/a/5uLrbSl

 

Is there any alternative?

0 REPLIES 0

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.