<?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 Counting rows of &amp;quot;1&amp;quot; values depending on the result of a measurement in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-rows-of-quot-1-quot-values-depending-on-the-result-of-a/m-p/3264630#M120823</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following measures in a measures table:&lt;/P&gt;&lt;P&gt;TotalPoints = 54890&lt;BR /&gt;TotalPointsBlue = 16340&lt;BR /&gt;TotalPointsBlueLight =7450&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And a "EventPoints" table&lt;BR /&gt;Event&amp;nbsp;&amp;nbsp; Action&lt;BR /&gt;event1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;event2 &amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;event3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;event4&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;event5&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;event6&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;event7 &amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;How can I create a measures that counts the "1" values of the Action column, filtering the records that belong to "TotalPointsBlue"?&lt;BR /&gt;I've created this measure, but it does not work&lt;BR /&gt;CALCULATE(COUNTROWS(EventPoints), IF(EventPoints[Action] = 1 &amp;amp;&amp;amp; [TotalPointsBlue ] &amp;gt; 0, 1, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plaese, can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 20:22:23 GMT</pubDate>
    <dc:creator>LValencia</dc:creator>
    <dc:date>2023-06-01T20:22:23Z</dc:date>
    <item>
      <title>Counting rows of "1" values depending on the result of a measurement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-rows-of-quot-1-quot-values-depending-on-the-result-of-a/m-p/3264630#M120823</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following measures in a measures table:&lt;/P&gt;&lt;P&gt;TotalPoints = 54890&lt;BR /&gt;TotalPointsBlue = 16340&lt;BR /&gt;TotalPointsBlueLight =7450&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And a "EventPoints" table&lt;BR /&gt;Event&amp;nbsp;&amp;nbsp; Action&lt;BR /&gt;event1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;event2 &amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;event3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;event4&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;event5&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;BR /&gt;event6&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;event7 &amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;How can I create a measures that counts the "1" values of the Action column, filtering the records that belong to "TotalPointsBlue"?&lt;BR /&gt;I've created this measure, but it does not work&lt;BR /&gt;CALCULATE(COUNTROWS(EventPoints), IF(EventPoints[Action] = 1 &amp;amp;&amp;amp; [TotalPointsBlue ] &amp;gt; 0, 1, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Plaese, can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 20:22:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-rows-of-quot-1-quot-values-depending-on-the-result-of-a/m-p/3264630#M120823</guid>
      <dc:creator>LValencia</dc:creator>
      <dc:date>2023-06-01T20:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Counting rows of "1" values depending on the result of a measurement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-rows-of-quot-1-quot-values-depending-on-the-result-of-a/m-p/3264954#M120837</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="558439" data-lia-user-login="LValencia" class="lia-mention lia-mention-user"&gt;LValencia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CountActionBlue = 
CALCULATE(
    COUNTROWS(EventPoints),
    EventPoints[Action] = 1,
    EventPoints[Event] IN VALUES(EventPoints[Event]),
    [TotalPointsBlue] &amp;gt; 0
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Jun 2023 03:24:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-rows-of-quot-1-quot-values-depending-on-the-result-of-a/m-p/3264954#M120837</guid>
      <dc:creator>AjithPrasath</dc:creator>
      <dc:date>2023-06-02T03:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Counting rows of "1" values depending on the result of a measurement</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-rows-of-quot-1-quot-values-depending-on-the-result-of-a/m-p/3265130#M120852</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="548197" data-lia-user-login="AjithPrasath" class="lia-mention lia-mention-user"&gt;AjithPrasath&lt;/a&gt;, it doesn't work either.&lt;/P&gt;&lt;P&gt;Error: A placeholder function has been used in a true/false expression that is used as a table filter expression, which is not permitted.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 06:54:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-rows-of-quot-1-quot-values-depending-on-the-result-of-a/m-p/3265130#M120852</guid>
      <dc:creator>LValencia</dc:creator>
      <dc:date>2023-06-02T06:54:33Z</dc:date>
    </item>
  </channel>
</rss>

