<?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 Re: Caclulating a cusomter count - help! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3707004#M144203</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="486119" data-lia-user-login="Livia_Hernandez" class="lia-mention lia-mention-user"&gt;Livia_Hernandez&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following formula which gets the cumulative value correctly.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M1 = DISTINCTCOUNT('Table'[Customer])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;M2 =
SUMX (
    VALUES ( 'Table'[Product] ),
    CALCULATE ( DISTINCTCOUNT ( 'Table'[Customer] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 06:53:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-19T06:53:31Z</dc:date>
    <item>
      <title>Caclulating a cusomter count - help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3689063#M143341</link>
      <description>&lt;P&gt;I'm new to this code writing....&amp;nbsp; I'm trying to sum the number of unique customer codes that enter in our stores.&amp;nbsp; I am coming up with a total by location but the region totals do not sum the stores.&amp;nbsp; I'm at a loss...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Customer =&lt;/SPAN&gt; &lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;((&lt;/SPAN&gt;&lt;SPAN&gt;CTMasterTemplate&lt;/SPAN&gt;&lt;SPAN&gt;[GersCustomerCode]&lt;/SPAN&gt;&lt;SPAN&gt;))&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The result is this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;When I add the stores independently it should equal the 1663.&amp;nbsp; Perhaps the same customer entered into a diff store?&amp;nbsp; I just want the numbers to add up.&amp;nbsp; I tried a couple different things with no luck.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Feb 2024 18:09:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3689063#M143341</guid>
      <dc:creator>Livia_Hernandez</dc:creator>
      <dc:date>2024-02-08T18:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Caclulating a cusomter count - help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3689082#M143342</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="486119" data-lia-user-login="Livia_Hernandez" class="lia-mention lia-mention-user"&gt;Livia_Hernandez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible that a customer can be related to more than 1 StoreCode?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a case like that, each StoreCode would count that customer but that customer would only be counted once in the total.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 18:27:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3689082#M143342</guid>
      <dc:creator>gmsamborn</dc:creator>
      <dc:date>2024-02-08T18:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Caclulating a cusomter count - help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3689334#M143350</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="426215" data-lia-user-login="gmsamborn" class="lia-mention lia-mention-user"&gt;gmsamborn&lt;/a&gt; -&amp;nbsp; I defintitely thought of that too.&amp;nbsp; I was just trying to see how I could other than manually make the summs just count the stores.&amp;nbsp; I tried group by with no luck.&amp;nbsp; Just checking if I was doing something wrong or missing some sort of logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you for replying!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 20:51:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3689334#M143350</guid>
      <dc:creator>Livia_Hernandez</dc:creator>
      <dc:date>2024-02-08T20:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Caclulating a cusomter count - help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3707004#M144203</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="486119" data-lia-user-login="Livia_Hernandez" class="lia-mention lia-mention-user"&gt;Livia_Hernandez&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the following formula which gets the cumulative value correctly.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;M1 = DISTINCTCOUNT('Table'[Customer])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;M2 =
SUMX (
    VALUES ( 'Table'[Product] ),
    CALCULATE ( DISTINCTCOUNT ( 'Table'[Customer] ) )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 06:53:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Caclulating-a-cusomter-count-help/m-p/3707004#M144203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-19T06:53:31Z</dc:date>
    </item>
  </channel>
</rss>

