<?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 Differences COUNTAX and COUNTROWS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072823#M161689</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently doing the Master DAX course by SQLBI. In exercise 03.30, I attempted a solution with COUNTAX but this yielded a different result than the actual solution that used COUNTROWS. Apparently, I am missing something that I need to consider when applying COUNTAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The task in 03.30 is as follows:&lt;BR /&gt;&lt;EM&gt;Create a # CustWithChildren measure that computes the number of customers with children – only consider customers where Customer[Total Children] is greater than zero.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;My DAX is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#CustWithChildren (Me) = 
countax(
customer,
Customer[Total Children] &amp;gt;0
)&lt;/LI-CODE&gt;&lt;P&gt;You can find the PBI file for exercise 03.30&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AiwbXebZKOobg9s0cYrbKoLpnP9wlQ?e=eWiaLv" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;.&lt;BR /&gt;Can someone please explain to me why my attempt did not arrive at the correct numbers?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 06:10:58 GMT</pubDate>
    <dc:creator>ThomasSan</dc:creator>
    <dc:date>2024-08-01T06:10:58Z</dc:date>
    <item>
      <title>Differences COUNTAX and COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072823#M161689</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently doing the Master DAX course by SQLBI. In exercise 03.30, I attempted a solution with COUNTAX but this yielded a different result than the actual solution that used COUNTROWS. Apparently, I am missing something that I need to consider when applying COUNTAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The task in 03.30 is as follows:&lt;BR /&gt;&lt;EM&gt;Create a # CustWithChildren measure that computes the number of customers with children – only consider customers where Customer[Total Children] is greater than zero.&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;My DAX is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#CustWithChildren (Me) = 
countax(
customer,
Customer[Total Children] &amp;gt;0
)&lt;/LI-CODE&gt;&lt;P&gt;You can find the PBI file for exercise 03.30&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AiwbXebZKOobg9s0cYrbKoLpnP9wlQ?e=eWiaLv" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;.&lt;BR /&gt;Can someone please explain to me why my attempt did not arrive at the correct numbers?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 06:10:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072823#M161689</guid>
      <dc:creator>ThomasSan</dc:creator>
      <dc:date>2024-08-01T06:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Differences COUNTAX and COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072858#M161693</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;ThomasSan,&lt;BR /&gt;&lt;/SPAN&gt;Try these Dax&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;CustWithChildren = &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;CALCULATE(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;COUNTROWS(Customer),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Customer[Total Children] &amp;gt; 0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;BR /&gt;&lt;/STRONG&gt;CountaX : This function counts the number of rows in a table where an expression evaluates to a non-blank value.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 06:26:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072858#M161693</guid>
      <dc:creator>Ronak131290</dc:creator>
      <dc:date>2024-08-01T06:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Differences COUNTAX and COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072868#M161695</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="750641" data-lia-user-login="Ronak131290" class="lia-mention lia-mention-user"&gt;Ronak131290&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your reply. I was more looking for someone to explain to me why COUNTAX did not work. As far as I see it, it should have worked as it is supposed to count the entries within the Customer table where the values within the column Total Children is larger than 0. Is that not meant with "&lt;SPAN&gt;where an expression evaluates to a non-blank value."?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 06:34:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072868#M161695</guid>
      <dc:creator>ThomasSan</dc:creator>
      <dc:date>2024-08-01T06:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Differences COUNTAX and COUNTROWS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072876#M161696</link>
      <description>&lt;P&gt;You can also use countax function&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;CustWithChildren = &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;COUNTAX(&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FILTER(Customer, Customer[Total Children] &amp;gt; 0),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Customer[Customer ID]&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;BR /&gt;You need to filter table which is not contains total children is 0.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If you find these solutions accurate and helpful, please accept them as the solution to the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 06:41:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Differences-COUNTAX-and-COUNTROWS/m-p/4072876#M161696</guid>
      <dc:creator>Ronak131290</dc:creator>
      <dc:date>2024-08-01T06:41:33Z</dc:date>
    </item>
  </channel>
</rss>

