<?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: Count rows that are less than the current row's value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829881#M90113</link>
    <description>&lt;P&gt;I have a "People" table that filters 1..* the "Responses" table. The Responses table looks something like...&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;Name&lt;/TD&gt;&lt;TD&gt;Question Number&lt;/TD&gt;&lt;TD&gt;Mark&lt;/TD&gt;&lt;TD&gt;Bit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;Question 1&lt;/TD&gt;&lt;TD&gt;Correct&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;Question 2&lt;/TD&gt;&lt;TD&gt;Correct&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;Question 3&lt;/TD&gt;&lt;TD&gt;Incorrect&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;Question 4&lt;/TD&gt;&lt;TD&gt;Correct&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the score is an aggregate of the "Bit" column. I feel like your answer is almost there but I am just getting this error:&amp;nbsp;&lt;STRONG&gt;A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 04:40:20 GMT</pubDate>
    <dc:creator>aolan</dc:creator>
    <dc:date>2022-10-10T04:40:20Z</dc:date>
    <item>
      <title>Count rows that are less than the current row's value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829865#M90110</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a set of values from a calculated measure that represents the scores from a test - it counts the number of "Correct" marks. I basically want to count the rows of the values less than the current row value. Note that the scores can appear multiple times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of what I am trying to achieve is below...&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;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 04:11:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829865#M90110</guid>
      <dc:creator>aolan</dc:creator>
      <dc:date>2022-10-10T04:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows that are less than the current row's value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829869#M90111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your datamodel looks like, but could you please try something like below wether it suits your requirement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected count result measure: =
VAR _a = [PRE_TotalNumeracy measure]
RETURN
    CALCULATE (
        DISTINCTCOUNT ( 'TableName'[ColumnName] ),
        [PRE_TotalNumeracy measure] &amp;lt; _a
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Oct 2022 04:15:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829869#M90111</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-10-10T04:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows that are less than the current row's value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829881#M90113</link>
      <description>&lt;P&gt;I have a "People" table that filters 1..* the "Responses" table. The Responses table looks something like...&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;Name&lt;/TD&gt;&lt;TD&gt;Question Number&lt;/TD&gt;&lt;TD&gt;Mark&lt;/TD&gt;&lt;TD&gt;Bit&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;Question 1&lt;/TD&gt;&lt;TD&gt;Correct&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;Question 2&lt;/TD&gt;&lt;TD&gt;Correct&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;Question 3&lt;/TD&gt;&lt;TD&gt;Incorrect&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ABC&lt;/TD&gt;&lt;TD&gt;Question 4&lt;/TD&gt;&lt;TD&gt;Correct&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the score is an aggregate of the "Bit" column. I feel like your answer is almost there but I am just getting this error:&amp;nbsp;&lt;STRONG&gt;A function 'PLACEHOLDER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 04:40:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829881#M90113</guid>
      <dc:creator>aolan</dc:creator>
      <dc:date>2022-10-10T04:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Count rows that are less than the current row's value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829894#M90115</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your feedback.&lt;/P&gt;
&lt;P&gt;Could you please try the below?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected count result measure: =
VAR _a = [PRE_TotalNumeracy measure]
RETURN
    CALCULATE (
        DISTINCTCOUNT ( 'TableName'[Name] ),
        FILTER ( ALL ( 'TableName'[Name] ), [PRE_TotalNumeracy measure] &amp;lt; _a )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 10 Oct 2022 04:56:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-rows-that-are-less-than-the-current-row-s-value/m-p/2829894#M90115</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-10-10T04:56:36Z</dc:date>
    </item>
  </channel>
</rss>

