title: Power BI DAX - Need help in displaying Measure with Values and Text
body: <p>I'm trying to display a measure value with text in Card Visual.  For instance, I'd like to display all IDs with HasWrongTitle = True by Department (Slicer).  Based on the below data, I'd like to show &quot;2 of 4&quot; without slicer selection and &quot;1 of 4&quot; with slicer set to IT or Finance.</p>
  <p>The below measure works partially but displays the same value for total as well.</p>
  <pre><code>MeasureWrongTitle = 
  IF(
      ISBLANK(
          CALCULATE(
              DISTINCTCOUNT(Table[ID]),
              FILTER(
                  Table,
                  Table[HasWrongTitle]=&quot;True&quot;
              ) 
          )
      ),
      &quot;0 of &quot; &amp; 
      COUNTROWS(
          SUMMARIZE(
              Table,
              Table[ID]
          )
      ),
  
      CALCULATE(
          DISTINCTCOUNT(Table[ID]),
          FILTER(
              Table,
              Table[HasWrongTitle]=&quot;True&quot;
          )
      ) &amp; &quot; of &quot; &amp; COUNTROWS(SUMMARIZE(Table,Table[ID]
      )
  )
  
  </code></pre>
  <p>Table:</p>
  <pre><code>ID  Name        Department HasDirectReport  HasWrongTitle
  100 John Doe1   Admin      True             False
  101 John Doe2   IT         False            True
  102 John Doe3   HR         True             False
  103 John Doe4   Finance    True             True
  </code></pre>