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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
zeke101
Helper II
Helper II

Line Chart - Change color of line based on a give date

Hello,

I have 2 data sets - the first dataset contains the raw data that I want counted in the line chart.  The data contains multiple sites and we are trying to count the effectiveness of a new algorithm that was released on a certain date.  So my 2nd dataset contains the site and the date of the change of the algorithm.  I'm wanting the visual to show different colors on the trendline depending upon when the algorithm was deployed. 

Example: If site ABC123 had the new algorithm deployed on 10/15/2021 all the volume prior to 10/15/2021 would be black and everything on or after 10/15/2021 would be red. 

zeke101_0-1639174491567.png

 

3 REPLIES 3
zeke101
Helper II
Helper II

So I was able to figure out how to do a color change for one line........

zeke101_0-1639495663253.png

but when trying to add 2 lines, I lose the conditional formatting.

zeke101_1-1639495945048.png

Is there a way to do both lines? or just create some sort of indicator on that date with both lines (doesnt necessarily need to be a color change) ? 

VijayP
Super User
Super User

@zeke101 

Is this you want

VijayP_0-1639197580178.png

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@VijayP 

Yes, something similar --- each "Zone(Location)" has a date and so based on that date, I need the color of the graph to change similar to how you show in your screenshot. It needs to be dynamic as there are multiple dates for specific "Zone(Location)". 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors