<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calculate the count of a measure in DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-a-measure-in-DAX/m-p/3379804#M127322</link>
    <description>&lt;P&gt;Hi, I have a simple table for a Quality program, where I have a Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QA Score = AVERAGE([Score])&lt;BR /&gt;&lt;BR /&gt;This gives me the QA Score, but I want to make a DAX measure that calculates all the QA Score that are above or equal 90%, I tried doing several but I always have errors counting others or not counting all, the latest example I have is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On target:&amp;nbsp;=CALCULATE(DISTINCTCOUNT([Name]),FILTER(Table_Name,[QA Score]&amp;gt;=0.9))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weekly evaluation works fine as we only have 1 evaluation per agent, but the problem starts when we have more than 1 week as we have 1 evaluation above 90% and one lower than 90%, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Evaluations&lt;/TD&gt;&lt;TD&gt;QA Score&lt;/TD&gt;&lt;TD&gt;On Target&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;85%&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when having 2 evaluations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i would like the "on target" measure to calculate this based on the overall measure, not the individual evaluation performance, please let me know if it makes sense&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Mon, 14 Aug 2023 22:41:48 GMT</pubDate>
    <dc:creator>SUTChepe</dc:creator>
    <dc:date>2023-08-14T22:41:48Z</dc:date>
    <item>
      <title>Calculate the count of a measure in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-a-measure-in-DAX/m-p/3379804#M127322</link>
      <description>&lt;P&gt;Hi, I have a simple table for a Quality program, where I have a Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QA Score = AVERAGE([Score])&lt;BR /&gt;&lt;BR /&gt;This gives me the QA Score, but I want to make a DAX measure that calculates all the QA Score that are above or equal 90%, I tried doing several but I always have errors counting others or not counting all, the latest example I have is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On target:&amp;nbsp;=CALCULATE(DISTINCTCOUNT([Name]),FILTER(Table_Name,[QA Score]&amp;gt;=0.9))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Weekly evaluation works fine as we only have 1 evaluation per agent, but the problem starts when we have more than 1 week as we have 1 evaluation above 90% and one lower than 90%, for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Evaluations&lt;/TD&gt;&lt;TD&gt;QA Score&lt;/TD&gt;&lt;TD&gt;On Target&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;85%&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when having 2 evaluations:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i would like the "on target" measure to calculate this based on the overall measure, not the individual evaluation performance, please let me know if it makes sense&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Mon, 14 Aug 2023 22:41:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-a-measure-in-DAX/m-p/3379804#M127322</guid>
      <dc:creator>SUTChepe</dc:creator>
      <dc:date>2023-08-14T22:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the count of a measure in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-a-measure-in-DAX/m-p/3380157#M127337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="602944" data-lia-user-login="SUTChepe" class="lia-mention lia-mention-user"&gt;SUTChepe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;On Target: =&lt;BR /&gt;SUMX ( VALUES ( Table_Name[Name] ), INT ( [QA Score] &amp;gt;= 0.9 ) )&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 06:04:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-a-measure-in-DAX/m-p/3380157#M127337</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-15T06:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the count of a measure in DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-a-measure-in-DAX/m-p/3389269#M127744</link>
      <description>&lt;P&gt;Worked like a charm&lt;/P&gt;&lt;P&gt;Never used the "VALUES" formula before&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2023 05:08:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-count-of-a-measure-in-DAX/m-p/3389269#M127744</guid>
      <dc:creator>SUTChepe</dc:creator>
      <dc:date>2023-08-21T05:08:09Z</dc:date>
    </item>
  </channel>
</rss>

