<?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 Re: how to count a measure based on the measure itself in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245527#M119551</link>
    <description>&lt;P&gt;Hi Tamerj,&lt;/P&gt;&lt;P&gt;I got more progress. The totalscore is a calculated value which usually is not exact match the mark.value. I used another column scorerange which is result of floor. I got some count numbers and found they are not match the manual count result. I found I need to add column "year/month" to the table as well. Finally I got the correct numbers. I will mark your answer as solution as the method you provided is the key to reslove it. Thanks!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 20 May 2023 19:26:47 GMT</pubDate>
    <dc:creator>yishenhui</dc:creator>
    <dc:date>2023-05-20T19:26:47Z</dc:date>
    <item>
      <title>how to count a measure based on the measure itself</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245116#M119498</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below screenshot is from a measure table, "TotalScore", "ScoreRange" are measures. I want to count one of the measures based on the measure. For example, if I count totalscore, I want to return ((99.6%, 2), (99.0%,2), (97.9%,1)...) How can I do that?&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 04:02:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245116#M119498</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2023-05-20T04:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to count a measure based on the measure itself</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245160#M119500</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let's assume that this is a student data (this is irrelevant anyway but only to explain)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;first create the following calculated table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marks =&lt;BR /&gt;SELECTCOLUMNS ( GENERATESERIES ( 0.001, 0.001, 1 ), "Mark", [Value] )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;then use the following measure&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Count =&lt;BR /&gt;COUNTROWS (&lt;BR /&gt;FILTER (&lt;BR /&gt;ADDCOLUMNS (&lt;BR /&gt;CROSSJOIN ( VALUES ( 'Table'[Student ID] ), VALUES ( Marks[Mark] ) ),&lt;BR /&gt;"@Score", [TotalScore]&lt;BR /&gt;),&lt;BR /&gt;[Mark] = [@Score]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 05:41:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245160#M119500</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-20T05:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to count a measure based on the measure itself</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245433#M119541</link>
      <description>&lt;P&gt;Hi Tamerj,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand your DAX but not sure why it's still not working. (I adjusted the Marks table a little&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Marks = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;GENERATESERIES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;0.000&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1.001&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0.001&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;"Mark"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Value]&lt;/SPAN&gt;&lt;SPAN&gt; ) as the max value should be the second place and 0 and 100 is an accept-able value.)&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;however, the result gives empty. See below screenshot, the column scorescount supposes give the count number when it's the same as the score. I have created table step by step and found once apply the filter, the table goes to empty. I even added another column with [Mark]-[totalscore], it does show the difference between the two value. However once I apply the filter for that column value 0, the table goes to empty. (I used a table visual to monitor it). The DAX is as&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Table 2 = &lt;/SPAN&gt;&lt;SPAN&gt;ADDCOLUMNS&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;CROSSJOIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( DataQuery[analystname] ), &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( Marks[Mark] ) ), &lt;/SPAN&gt;&lt;SPAN&gt;"@Score"&lt;/SPAN&gt;&lt;SPAN&gt;, [TotalScore],&lt;/SPAN&gt;&lt;SPAN&gt;"mark-score"&lt;/SPAN&gt;&lt;SPAN&gt;,[Mark]-[TotalScore] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any idea where is the issue?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 17:18:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245433#M119541</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2023-05-20T17:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to count a measure based on the measure itself</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245527#M119551</link>
      <description>&lt;P&gt;Hi Tamerj,&lt;/P&gt;&lt;P&gt;I got more progress. The totalscore is a calculated value which usually is not exact match the mark.value. I used another column scorerange which is result of floor. I got some count numbers and found they are not match the manual count result. I found I need to add column "year/month" to the table as well. Finally I got the correct numbers. I will mark your answer as solution as the method you provided is the key to reslove it. Thanks!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 19:26:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245527#M119551</guid>
      <dc:creator>yishenhui</dc:creator>
      <dc:date>2023-05-20T19:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to count a measure based on the measure itself</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245534#M119553</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545711" data-lia-user-login="yishenhui" class="lia-mention lia-mention-user"&gt;yishenhui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plaxe the column Mark in a new table visual along with the Count &lt;STRONG&gt;measure&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 19:39:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-count-a-measure-based-on-the-measure-itself/m-p/3245534#M119553</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-05-20T19:39:21Z</dc:date>
    </item>
  </channel>
</rss>

