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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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
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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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