<?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 when to use count instead of DistinctCount? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1763726#M36932</link>
    <description>&lt;P&gt;I am doing a quick course on DAX in datacamp... they have created this measure:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Transaction count = Count([FactInternetSale[SalesOrderNumber])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then using it to do:&lt;BR /&gt;&lt;STRONG&gt;Average Transaction = DIVIDE([Total Sales], [Transaction Count])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why they used Count and not CountDistinct?&lt;/P&gt;&lt;P&gt;This seems wrong... Same SalesOrderNumber might appear 100 times, and Count shall count 100 orders...&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 10:38:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-04-05T10:38:37Z</dc:date>
    <item>
      <title>when to use count instead of DistinctCount?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1763726#M36932</link>
      <description>&lt;P&gt;I am doing a quick course on DAX in datacamp... they have created this measure:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Transaction count = Count([FactInternetSale[SalesOrderNumber])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then using it to do:&lt;BR /&gt;&lt;STRONG&gt;Average Transaction = DIVIDE([Total Sales], [Transaction Count])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why they used Count and not CountDistinct?&lt;/P&gt;&lt;P&gt;This seems wrong... Same SalesOrderNumber might appear 100 times, and Count shall count 100 orders...&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 10:38:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1763726#M36932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-05T10:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: when to use count instead of DistinctCount?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1763758#M36934</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think, in the FactInternetSales Table, SalesOrderNumber Column is the primary key column. If I am not wrong, the result might be the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;EM&gt;&lt;STRONG&gt;Hi, My name is Jihwan Kim. &lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="”calibri" color="”#0000FF”"&gt;&lt;EM&gt;&lt;STRONG&gt;If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 10:57:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1763758#M36934</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2021-04-05T10:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: when to use count instead of DistinctCount?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1764605#M36965</link>
      <description>&lt;P&gt;no se usa &lt;SPAN&gt;&amp;nbsp;CountDistinct, ya que solo se estaria contando los campos distintos del campo&amp;nbsp;&lt;STRONG&gt;&lt;FONT&gt;[Transaction Count]),&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT&gt;el promedio se toma de la sumatoria de los datos y se divide en&amp;nbsp; la cantidad de datos. sin importar que sean iguales&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 20:50:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1764605#M36965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-05T20:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: when to use count instead of DistinctCount?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1766651#M36979</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;They are using count to show the average of each transaction and each transaction has a different ID. In this case, you can use both COUNT and DISTINCTCOUNT. You should use COUNT as this will increase the performance.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 09:28:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/when-to-use-count-instead-of-DistinctCount/m-p/1766651#M36979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-06T09:28:10Z</dc:date>
    </item>
  </channel>
</rss>

