Forum Discussion

francomaestri's avatar
francomaestri
Frequent Visitor
4 years ago

Dynamic X Axis constant according a filter

Greeting everyone!

 

I have problems with the constant values of the X axis. I have a range filter, but when I use it, I need the constant values outside the range to disappear. Is there an easy way to implement it? I have tried with an measure and an IF, but I could not make it work. Another option, more manual, that I thought was to create a verification box and select which constant lines show. Again, without results. Any ideas?


Thanks!

 

 

2 Replies

  • francomaestri , I created 2 Line and used them on x-axis constant line and they respond to the slicer

     

    l1 = MINX(ALLSELECTED('Date') , 'Date'[Year])
    
    l2 = MINX(ALLSELECTED('Date') , 'Date'[Year])+1

     

     

     

     

     

     

    • francomaestri's avatar
      francomaestri
      Frequent Visitor

      Hey, thanks! That's really usefull. Nevertheless, what I needed was to have fixed values for de constant lines. I.E., always on the same years, but to make them disapear when the corresponding year is not in the range of the filter. Any ideas for that?