Forum Discussion

Maria9292's avatar
Maria9292
Helper II
5 years ago

Mark specific dates on a chart

I have 2 tables with different values and a Date table to connect them. I need to highlight a certain values from one of the tables on a double line ctart.

 

 

How can I do that?

 

Appreciate any help!

 

 

7 Replies

  • Hi Maria9292 

     

    Download sample PBIX with data and chart

     

    Create another series for the highlighted values - for the values you don't want to highlight leave them blank

     

    Add this Highlight series to the chart then in Format -> Shapes, 

     

    turn on Customize Series.  For the Highlight series, set the Stroke Width to 0

     

    and turn on Show Marker.  Set the marker color and size as you wish.

     

     

    Regards

    Phil

    • Maria9292's avatar
      Maria9292
      Helper II

      Thank you PhilipTreacy !

      That doesn't work with the way my data is shaped. 

      The second line on the chart is a Running total measure that takes dates from a Date table and values from a Fact table.

       

      Measure:

      Running Total =
      CALCULATE(
          SUM('Fact_Table'[Change]),
          FILTER(
              ALLSELECTED(Date[Date]),
              ISONORAFTER(Date[Date], MAX(Date[Date]), DESC)
          )
      )

       

      Fact Table:

       

      what I managed to do so far ( I took out the second values temporarily):

       I created a conditional column: if [Change] <> null then 1 else null, but what I need is if the there is a value in the Fact_Table[Change] (or if Fact_Table[Change] in not blank) then take the value from the Running total measure.

  • Hi Maria9292 

    So what values are you actually trying to highlight on the chart?  From your images it appeared you wanted to highlight points on the 2 lines?

    If you are wanting to use values from the measure won't you just get a line/points that increase in value because it's a Running Total?

    Regards

    Phil

    • Maria9292's avatar
      Maria9292
      Helper II

      PhilipTreacy the column contains positive and negative values, so even if de jure it's running total, de facto the line shouldn't increase.

      • PhilipTreacy's avatar
        PhilipTreacy
        Super User

        HI Maria9292 

        I'm still not clear on the actual values you want highlighted.  What does the data column of Positive or negative numbers actually look like?  The values?  Please provide an example.

        Is it just 1 or -1?  You supplied an mage of a Fact table with a Change column but it wasn't clear if that's what you are trying to plot.  Even if it was, which values do you want highlighted?

        regards

        Phl