Forum Discussion

jshinnenkamp's avatar
jshinnenkamp
Frequent Visitor
8 years ago
Solved

Editing contant lines based on dates

    I have this chart with a constant line at 4. The chart is using relative date filtering so 2018 months will come into the chart as they occur. I would like to be able to change the consta...
  • Greg_Deckler's avatar
    Greg_Deckler
    8 years ago

    Sorry, my bad, wrap your YEAR() in a MAX function. It's a measure, so you need to do some kind of aggregation.

     

    Measure = IF(MAX(YEAR(Table[Date]))<2018,4,4.5)