<?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 function includes cells with text in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/367397#M166310</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am puzzled by the behavior of the DAX function COUNT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am expecting it to behave like Excel's count() function, in that it returns the count of cells with numbers but not text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/ee634791.aspx" target="_blank"&gt;Reference Documentation&lt;/A&gt;&amp;nbsp;indicates this too, "&lt;SPAN&gt;&lt;EM&gt;The COUNT function counts the number of cells in a column that contain numbers.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I see further info stating "&lt;EM&gt;If the row contains text that cannot be translated into a number, the row is not counted&lt;/EM&gt;."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tested in Excel using both Power Pivot and DAX Studio, and in PBI Desktop.&amp;nbsp; In all cases, a column of type text with only text values (that couldn't possible be translated to a number) is returning a count equal to the number of rows / cells.&amp;nbsp; I expect zero as a result.&amp;nbsp; Am I missing something obvious, or has the behaviour changed / always been like this just not properly documented?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eg measure:&amp;nbsp;&amp;nbsp;Count Name:=COUNT('Table'[name])&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2018 23:16:16 GMT</pubDate>
    <dc:creator>Cymbolz</dc:creator>
    <dc:date>2018-02-28T23:16:16Z</dc:date>
    <item>
      <title>COUNT function includes cells with text</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/367397#M166310</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am puzzled by the behavior of the DAX function COUNT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am expecting it to behave like Excel's count() function, in that it returns the count of cells with numbers but not text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;A href="https://msdn.microsoft.com/en-us/library/ee634791.aspx" target="_blank"&gt;Reference Documentation&lt;/A&gt;&amp;nbsp;indicates this too, "&lt;SPAN&gt;&lt;EM&gt;The COUNT function counts the number of cells in a column that contain numbers.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I see further info stating "&lt;EM&gt;If the row contains text that cannot be translated into a number, the row is not counted&lt;/EM&gt;."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've tested in Excel using both Power Pivot and DAX Studio, and in PBI Desktop.&amp;nbsp; In all cases, a column of type text with only text values (that couldn't possible be translated to a number) is returning a count equal to the number of rows / cells.&amp;nbsp; I expect zero as a result.&amp;nbsp; Am I missing something obvious, or has the behaviour changed / always been like this just not properly documented?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eg measure:&amp;nbsp;&amp;nbsp;Count Name:=COUNT('Table'[name])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 23:16:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/367397#M166310</guid>
      <dc:creator>Cymbolz</dc:creator>
      <dc:date>2018-02-28T23:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT function includes cells with text</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/367464#M166352</link>
      <description>&lt;P&gt;I can confirm your results. I also believe that the behavior has changed as it used to not count text and you had to use COUNTA as I recall.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 02:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/367464#M166352</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2018-03-01T02:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT function includes cells with text</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/367496#M166379</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;, glad it wasn't just me seeing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would appreciate if a few others can confirm the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, it would seem MS have changed the behaviour but not any documentation.&amp;nbsp; Wonder how many people wrote code relying on the previous functionality???&amp;nbsp; And maybe not even realise it's changed.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 05:37:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/367496#M166379</guid>
      <dc:creator>Cymbolz</dc:creator>
      <dc:date>2018-03-01T05:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT function includes cells with text</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/368317#M166790</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="56551" data-lia-user-login="Cymbolz" class="lia-mention lia-mention-user"&gt;Cymbolz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have reported this issue to the Product Team to investigate more. I will update here later.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 02:41:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/368317#M166790</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-03-02T02:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT function includes cells with text</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/368387#M166825</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The report ID is:&amp;nbsp;61341249.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 06:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/368387#M166825</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-03-02T06:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: COUNT function includes cells with text</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/370569#M167989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="56551" data-lia-user-login="Cymbolz" class="lia-mention lia-mention-user"&gt;Cymbolz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The document will be updated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 11:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/COUNT-function-includes-cells-with-text/m-p/370569#M167989</guid>
      <dc:creator>v-jiascu-msft</dc:creator>
      <dc:date>2018-03-06T11:48:40Z</dc:date>
    </item>
  </channel>
</rss>

