title: How Measure works in PowerBI when displayed it with Chart
body: <p>I have been exploring on Time Series graph for one of my requirements. And I came across the following link to display the time-series chart. My requirement is similar to the one requested in the forum where I need to know No. of visitors to a coffee shop at various times.</p>
  <p>PowerBI Reference Link: <a href="https://community.powerbi.com/t5/Desktop/Start-and-end-time/m-p/762708#M367547" rel="nofollow noreferrer">https://community.powerbi.com/t5/Desktop/Start-and-end-time/m-p/762708#M367547</a></p>
  <p>My data is the following</p>
  <p><a href="https://i.stack.imgur.com/thNK8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/thNK8.png" alt="enter image description here" /></a></p>
  <p>And I would like to have the chart displayed like below</p>
  <p><a href="https://i.stack.imgur.com/twgfC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/twgfC.png" alt="enter image description here" /></a></p>
  <p>I got the chart based (link how I expected) on the advice from the forum. In the response they want me to add the following measure. This measure helped me to get the result as I expected. But I am not sure how this measure works especially the MinVal and MaxVal of the TimeTable would remains the same through out. And also the filter EntryTime&lt;=MinTime confuses me a lot. I believe MinTime would be 12:00 A.M and as per the data EntryTime would never be less than MinTime. Can any one please explain how this measure works in this context.</p>
  <pre><code>Number of clients 2 =
  VAR vMinVal =
      MIN ( TimeTable[Value] )
  VAR vMaxVal =
      MAX ( TimeTable[Value] )
  VAR vNumberOfClients =
      COUNTROWS (
          FILTER (
              ALLSELECTED ( ClientsTbl ),
              ClientsTbl[Entry Time] &lt;= vMinVal
                  &amp;&amp; ClientsTbl[Exit Time] &gt;= vMaxVal
          )
      )
  RETURN
      vNumberOfClients
  </code></pre>