title: Power BI count the occurrence of a value in a measure
body: <p>I'm trying to count the occurrence of a value in a measure. I wonder if it is possible? This is what I have tried so far. [EUI Yearly (kbtu/ft2)] is a measure I made.</p>
  <pre><code>EUI Count = 
  CALCULATE (
      COUNTROWS ( df ),
      ALLSELECTED ( df ),
      VALUES ( df[EUI Yearly (kbtu/ft2)] )
  )
  </code></pre>
  <p>It returns an error: Column 'EUI Yearly (kbtu/ft2)' in table 'df' cannot be found or may not be used in this expression.</p>
  <p>Any fix to this? Thanks in advance!</p>