Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Fixed line in line graph

Hi peeps   I have a link graph which is affected by an array of slicers however I do not want one of the lines to be changed when slicers are changes. My example is in the below. I want the "DPS Av...
  • v-yanjiang-msft's avatar
    4 years ago

    Hi Anonymous ,

    In your fomula below, you add a extra symbol "{", it caused the error.

    Additonally, you should use the allexcept function, otherwise the fixed line value is the same for each date.

    If the Axis of the line chart is [Date], modify the formula like this:

    Fixed Line =
    CALCULATE (
        [DSP Average],
        ALLEXCEPT ( 'Unscheduled Leave', 'Unscheduled Leave'[Date] )
    )
    

    Get the correct result in my sample.

    I attach my sample below for your reference.

     

    Best Regards,
    Community Support Team _ kalyj

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