<?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: DAX to count number of customers buying from more than 2 manufacturers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027742#M13421</link>
    <description>&lt;P&gt;Attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 15:26:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-15T15:26:15Z</dc:date>
    <item>
      <title>DAX to count number of customers buying from more than 2 manufacturers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027406#M13397</link>
      <description>&lt;P&gt;I have a dataset of sales data, this includes transaction level data including fields for the manufacturer of the product sold.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to track which and how many customers have bought a product from 2 or more manufacturers in a given period (each month)&lt;/P&gt;&lt;P&gt;In excel i achieve this relatively simply by having a list of customers and sumif revenue by Manufacturer, and then count the number of manufacturers where revenue &amp;gt;0 by customer, then countif on the outcome of this (count number with 1 manufacturer, count number with 2 etc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to replicate in DAX but not making great progress.&lt;/P&gt;&lt;P&gt;I can get to a count of how many manufacturers a customer has bough from with a DAX measure:&lt;/P&gt;&lt;P&gt;Measure = Calculate(DISTINCTCOUNT(SALES[Manufacturer]),SALES[Revenue]&amp;gt;0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but fail when i then need to get to a summarised data level - so how many of my customers returned 1,2,3,4,5 etc for the previous calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas? &amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 13:22:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027406#M13397</guid>
      <dc:creator>GrahamKnowles</dc:creator>
      <dc:date>2020-04-15T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count number of customers buying from more than 2 manufacturers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027517#M13412</link>
      <description>&lt;P&gt;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, you should be able to do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 2 = 
  VAR __Table = 
    SUMMARIZE(
      'Sales'
      [Customer],
      "Measure",[Measure]
    )
RETURN
  COUNTROWS(FILTER(__Table,[Measure] &amp;gt; 1))&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:16:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027517#M13412</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-15T14:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count number of customers buying from more than 2 manufacturers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027742#M13421</link>
      <description>&lt;P&gt;Attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:26:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027742#M13421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-15T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count number of customers buying from more than 2 manufacturers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027944#M13430</link>
      <description>&lt;P&gt;Thats great, 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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 16:30:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027944#M13430</guid>
      <dc:creator>GrahamKnowles</dc:creator>
      <dc:date>2020-04-15T16:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count number of customers buying from more than 2 manufacturers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027945#M13431</link>
      <description>&lt;P&gt;That's great, thanks&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 16:31:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-number-of-customers-buying-from-more-than-2/m-p/1027945#M13431</guid>
      <dc:creator>GrahamKnowles</dc:creator>
      <dc:date>2020-04-15T16:31:36Z</dc:date>
    </item>
  </channel>
</rss>

