Forum Discussion

L_B's avatar
L_B
Frequent Visitor
6 years ago
Solved

Reference line (vertical) to a specific date

Hi all,

 

I want to insert a vertical reference line to a specific date (e.g. Covid-19 beginning) on a line graph. 

I've seen an option whereby you could literally draw such a line but this is not the solution I am looking for.

 

Does anyone know a solution?

 

thanks,

L_B

 

 

 

  • Hi L_B ,

     

    I have a similar sample about it. Actually the vertical line in my sample is a column from Line and stack/clustered column chart. It hights the minium date in my sample. You could refrence it to have a try. Hope it can give you a few ideas.

    Measure = 
    var mindate = MINX(ALL('Table'),'Table'[Date])
    return
    IF(SELECTEDVALUE('Table'[Date]) = mindate,1)

     

     

4 Replies