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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Change data point color when overlapped (line chart)

Hi Everyone

 

I have a line chart that is being created by multiple measures to show the data points (dots) on the line. This is how it is being created in PBIX. I converted the lines (A, B, C, D, E) into dots and Total remains as the blue line in the chart. However, there are some data points where multiple data points (dots - A, B, C, D, E) will overlap each other on the blue line (Total). Would like to know if there is a way to change the color of the dot to Black when there's an overlap in the data (refer to second screenshot below).

 

Current chart

beekee_1-1598463424062.png

 

Overlapped data points (want to change the dot color to Black)

beekee_0-1598463145203.png

 

 

Regards,

BK

 

3 REPLIES 3
v-lili6-msft
Community Support
Community Support

HI  @Anonymous 

To my knowledge, your requirement couldn't achieve for line chart in power bi for now.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@Anonymous , i doubt that is possible. as conditional formatting is not allowed with multiple values on line/bar visual. Check if its working. Create a color measure whenever two values match. Use that in conditional formatting using "Field Value" option in bar first and then change visual to line.

example measure

Color sales = if(AVERAGE(Sales[Sales Amount])<170,"green","red")
Color Year = if(FIRSTNONBLANK(Table[Year],2014) <=2016,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))

Color  = if(FIRSTNONBLANK(Table[Year],2014) <=2016 && AVERAGE(Sales[Sales Amount])<170 
,"lightgreen",if(FIRSTNONBLANK(Table[Year],2014)>2018,"red","yellow"))
Color sales = if([Sales Today] -[sales yesterday]>0,"green","red")

color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)

https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

 

I am not too sure what you mean. Can you show in PBIX?

 

Thanks & Regards,

BK

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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