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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
seanprincivalle
Regular Visitor

Line Graph Color Help

I am trying to convert the following line chart to format anything above my .2% threshold as colored and anything below as grayed. 

seanprincivalle_2-1714666087944.png

 

Is there a way to format the line colors like below or no?

 

seanprincivalle_1-1714665932319.png

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @seanprincivalle ,

 

Line charts can be customized with line colors, but only one line color is supported for the time being. You can create a value to implement two colors of the line.

 

Here are the steps you can follow:

1. Place the following fields in the line chart.

vyangliumsft_0-1714712386434.png

Format – Lines – Color – change line color.

vyangliumsft_1-1714712386438.png

2. Create measure.

Measure =
var _sum=SUMX('Table',[Value])
return
IF(
    _sum>=0.002,_sum,BLANK())

3. Result:

vyangliumsft_2-1714712408654.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

Hi  @seanprincivalle ,

 

Line charts can be customized with line colors, but only one line color is supported for the time being. You can create a value to implement two colors of the line.

 

Here are the steps you can follow:

1. Place the following fields in the line chart.

vyangliumsft_0-1714712386434.png

Format – Lines – Color – change line color.

vyangliumsft_1-1714712386438.png

2. Create measure.

Measure =
var _sum=SUMX('Table',[Value])
return
IF(
    _sum>=0.002,_sum,BLANK())

3. Result:

vyangliumsft_2-1714712408654.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.