<?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: Customer Distinct Count with Multiple Conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2766819#M85962</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320777" data-lia-user-login="v-chenwuz-msft" class="lia-mention lia-mention-user"&gt;v-chenwuz-msft&lt;/a&gt;, maybe I couldn't make you understand my requirement. I need to check how many customers have purchased more than or equal 8 units of combined basepack&amp;nbsp;&lt;SPAN&gt;"6A43B3A48TV170301" &amp;amp; "6A43B3A48TV170303". But each of the basepack purchase must not be less than 1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Sep 2022 09:45:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-14T09:45:10Z</dc:date>
    <item>
      <title>Customer Distinct Count with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2765035#M85859</link>
      <description>&lt;P&gt;Hi Experts,&lt;BR /&gt;&lt;BR /&gt;Need your help to calculate distinct count of my customers by "Customer code" where SalesQty sum of basepack code "6A43B3A48TV170301" &amp;amp; "6A43B3A48TV170303" is equal or greater than 8. Condition is none of the basepack code alone should be less than 1.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;Download the excel data:&amp;nbsp;&lt;A href="https://we.tl/t-RsXKbpVttv" target="_blank" rel="noopener"&gt;https://we.tl/t-RsXKbpVttv&lt;/A&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;TIA&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 09:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2765035#M85859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-14T09:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Distinct Count with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2765192#M85866</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;, I saw you solved similar problem! Can you pls help me out with this one?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 18:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2765192#M85866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-13T18:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Distinct Count with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2766532#M85941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=
COUNTROWS (
    FILTER (
        'CustomerSales',
        OR (
            [Basepack Code] = "6A43B3A48TV170301",
            [Basepack Code] = "6A43B3A48TV170303"
        )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And put it in the filter pane of this table visual then set it show items which&amp;nbsp;&lt;SPAN&gt;is equal or greater than 8&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pbix in the end you can refer.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 08:23:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2766532#M85941</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-09-14T08:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Distinct Count with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2766819#M85962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="320777" data-lia-user-login="v-chenwuz-msft" class="lia-mention lia-mention-user"&gt;v-chenwuz-msft&lt;/a&gt;, maybe I couldn't make you understand my requirement. I need to check how many customers have purchased more than or equal 8 units of combined basepack&amp;nbsp;&lt;SPAN&gt;"6A43B3A48TV170301" &amp;amp; "6A43B3A48TV170303". But each of the basepack purchase must not be less than 1.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 09:45:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2766819#M85962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-14T09:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Customer Distinct Count with Multiple Conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2864566#M92291</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Don't know if you still need some help, but you can try this measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YourMeasure = 
VAR t_with_b_code =
    CALCULATETABLE (
        CustomerSales,
        CustomerSales[Basepack Code] IN { "6A43B3A48TV170301", "6A43B3A48TV170303" }
    )
VAR rows_amt = COUNTROWS ( t_with_b_code )
RETURN
    SUMX ( FILTER ( t_with_b_code, rows_amt = 2 ), [SalesQty] )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 10:52:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Customer-Distinct-Count-with-Multiple-Conditions/m-p/2864566#M92291</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2022-10-26T10:52:44Z</dc:date>
    </item>
  </channel>
</rss>

