Skip to main content

Hello!

 

I am looking to add color thresholds to a line graph shown below. I have added the average trend line and want the line graph to be green above the average and red below the average. The average is moving, so you cannot just type a number.

Color Thresholds on Line Graph Above or Below Average

5 answers
  1. Nov 22, 2017, 8:11 AM

    Hi Allie Bing,

     

    Steps;-

    • Create a calculation that will be used to greater than and below then the average values in the line chart.

    If SUM([Sales Target])>=WINDOW_AVG(SUM([Sales Target])) Then "High"

    else "low"

    END

    • Add the crated calculation to the colors mark in the sheet as shown below

    Hi Allie Bing, Steps;-Create a calculation that will be used to greater than and below then the average values in the line chart.

    Select the required color scheme

    pastedImage_3.png

    Final Output:-

    pastedImage_4.png

    I have also added the measure to the labels and selected it to match the marks color this gives a more clear view

    pastedImage_5.png

    Hope this helps.

     

    Regards,

    -AV.

0/9000