<?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 of Subcategory Rows related to another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2700187#M81700</link>
    <description>&lt;P&gt;Hi, I have 2 tables that are connected via the Customer ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My aim is to have a distinct count of the total customers within a given subcategory of Table B if one or more customers from Table A are found within that subcategory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would tell me how much of the market we have penetrated. For example, we sell road bikes to Jon Yang which is 1 out of a possible 6 customers within the road bike category.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So essentially, if we have customers from Table A in Table B, what is the total number of customers within the subcategories they exist in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2022 12:54:25 GMT</pubDate>
    <dc:creator>adam_macs</dc:creator>
    <dc:date>2022-08-15T12:54:25Z</dc:date>
    <item>
      <title>Count of Subcategory Rows related to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2700187#M81700</link>
      <description>&lt;P&gt;Hi, I have 2 tables that are connected via the Customer ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My aim is to have a distinct count of the total customers within a given subcategory of Table B if one or more customers from Table A are found within that subcategory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would tell me how much of the market we have penetrated. For example, we sell road bikes to Jon Yang which is 1 out of a possible 6 customers within the road bike category.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So essentially, if we have customers from Table A in Table B, what is the total number of customers within the subcategories they exist in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 12:54:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2700187#M81700</guid>
      <dc:creator>adam_macs</dc:creator>
      <dc:date>2022-08-15T12:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Subcategory Rows related to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2700248#M81707</link>
      <description>&lt;P&gt;Please share a screenshot of your Data model&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:36:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2700248#M81707</guid>
      <dc:creator>jplouw1</dc:creator>
      <dc:date>2022-08-15T11:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Subcategory Rows related to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2700253#M81709</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:40:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2700253#M81709</guid>
      <dc:creator>adam_macs</dc:creator>
      <dc:date>2022-08-15T11:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Subcategory Rows related to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2709252#M82246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="334626" data-lia-user-login="adam_macs" class="lia-mention lia-mention-user"&gt;adam_macs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do the test and this is my data of two tables:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I got this result through my testing:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;and through filtering, you can get the count of rows related to each subcategory.&lt;/P&gt;
&lt;P&gt;for example, I choose Bike , it get the correct result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;so if this result can meets your needs, you can try this measure:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = COUNTROWS(FILTER('Table 1','Table 1'[customer id] in VALUES('Table 2'[customer id])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Community Support Team&amp;nbsp;&lt;STRONG&gt;Selina&amp;nbsp;zhu&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 09:08:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Count-of-Subcategory-Rows-related-to-another-table/m-p/2709252#M82246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-08-18T09:08:52Z</dc:date>
    </item>
  </channel>
</rss>

