Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Exclude Values from Trend Line

Hello, 

 

I have an area chart where the x-axis is the date and y-axes is percentile.  I have also added a trend line based on the percentile over time but i want to exclude 2 dates from it while still keeping them in the area chart. How would i go about doing this? 

 

Thanks,

  • Anonymous may be put condition in your measure and return BLANK() for the dates you want to skip, here is an example

     

    Your Measure= 
    VAR __d = MAX ( Calendar[Date] )
    RETURN
    IF ( __d = "2019-01-01" || __d = "2019-02-01", BLANK(), [Your Measure] )
    

     

1 Reply

  • Anonymous may be put condition in your measure and return BLANK() for the dates you want to skip, here is an example

     

    Your Measure= 
    VAR __d = MAX ( Calendar[Date] )
    RETURN
    IF ( __d = "2019-01-01" || __d = "2019-02-01", BLANK(), [Your Measure] )