<?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 Count with ALL function and Filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-ALL-function-and-Filter/m-p/2150708#M49554</link>
    <description>&lt;P&gt;I have a gauge visual that I would like to create a MAX value for.&amp;nbsp; The MAX should not use any of the filters on the GAUGE visual so I am using ALL function.&amp;nbsp; However I want to Filter on the ALL results by DateCreated so that the total count is only records created after a certain date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am using but it is not filtering by the datecreated so I am getting totalrows in the entire table.&amp;nbsp; How can I fix this?&amp;nbsp; thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TotalRows = &lt;/SPAN&gt;&lt;SPAN&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Requests&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[DateCreated]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;17&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;2017&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[DateCreated]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Oct 2021 15:15:05 GMT</pubDate>
    <dc:creator>hmeltonPSL</dc:creator>
    <dc:date>2021-10-22T15:15:05Z</dc:date>
    <item>
      <title>Count with ALL function and Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-ALL-function-and-Filter/m-p/2150708#M49554</link>
      <description>&lt;P&gt;I have a gauge visual that I would like to create a MAX value for.&amp;nbsp; The MAX should not use any of the filters on the GAUGE visual so I am using ALL function.&amp;nbsp; However I want to Filter on the ALL results by DateCreated so that the total count is only records created after a certain date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I am using but it is not filtering by the datecreated so I am getting totalrows in the entire table.&amp;nbsp; How can I fix this?&amp;nbsp; thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TotalRows = &lt;/SPAN&gt;&lt;SPAN&gt;COUNTX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Requests&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[DateCreated]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;17&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;2017&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[DateCreated]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Oct 2021 15:15:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-ALL-function-and-Filter/m-p/2150708#M49554</guid>
      <dc:creator>hmeltonPSL</dc:creator>
      <dc:date>2021-10-22T15:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Count with ALL function and Filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-ALL-function-and-Filter/m-p/2150723#M49557</link>
      <description>&lt;P&gt;Hello there&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="193633" data-lia-user-login="hmeltonPSL" class="lia-mention lia-mention-user"&gt;hmeltonPSL&lt;/a&gt;&amp;nbsp;! Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TotalRows = COUNTX(FILTER(ALL(Requests),[DateCreated]&amp;gt; DATE(2017, 3, 17)),[DateCreated])&lt;/LI-CODE&gt;&lt;P&gt;Hope this answer solves your problem!&lt;BR /&gt;If you need any additional help please &lt;SPAN&gt;@&lt;/SPAN&gt; me in your reply.&lt;BR /&gt;If my reply provided you with a solution, please consider marking it as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; or giving it a kudoe &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/gon%C3%A7alo-costa-b32253159" target="_blank"&gt;You can also check out my LinkedIn!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Gonçalo Geraldes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 15:23:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-with-ALL-function-and-Filter/m-p/2150723#M49557</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2021-10-22T15:23:43Z</dc:date>
    </item>
  </channel>
</rss>

