<?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 Measure to count items in a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-items-in-a-table/m-p/2305571#M57082</link>
    <description>&lt;P&gt;Hello, I am struggling to write a measure that does the following:&lt;/P&gt;&lt;P&gt;In one data table, I have a total inventory column, a sales channel column that identifies where the inventory is located and I have a column that identifies the &lt;STRONG&gt;Part Number&lt;/STRONG&gt;&amp;nbsp;inventory that is currently available&amp;nbsp; .&amp;nbsp; I have a reference table that also contains&amp;nbsp;&lt;STRONG&gt;Part Number&lt;/STRONG&gt;, but it also contains more information about the part number, like Part Group, Part Class, etc.&amp;nbsp; The two tables have a relationship using &lt;STRONG&gt;Part Number&lt;/STRONG&gt;.&amp;nbsp; What I am trying to do is count the number of &lt;U&gt;part groups&lt;/U&gt; by &lt;U&gt;sales channel&lt;/U&gt;.&amp;nbsp; I am not very experienced using DAX or measures, so any guidance and information about how I might achieve this goal is much appreciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, the data table that contains the sales information is labeled INVENTORY and the table that contains all of the additional references to the Part Number is labeled Ref_Material.&amp;nbsp; There is a many to one relationship going from the INVENTORY&amp;nbsp; table to the Ref_Material table.&amp;nbsp;&amp;nbsp;I am not very experienced using DAX or measures, so any guidance and information about how I might achieve this goal is much appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 16:08:24 GMT</pubDate>
    <dc:creator>rfwjr64</dc:creator>
    <dc:date>2022-01-27T16:08:24Z</dc:date>
    <item>
      <title>Measure to count items in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-items-in-a-table/m-p/2305571#M57082</link>
      <description>&lt;P&gt;Hello, I am struggling to write a measure that does the following:&lt;/P&gt;&lt;P&gt;In one data table, I have a total inventory column, a sales channel column that identifies where the inventory is located and I have a column that identifies the &lt;STRONG&gt;Part Number&lt;/STRONG&gt;&amp;nbsp;inventory that is currently available&amp;nbsp; .&amp;nbsp; I have a reference table that also contains&amp;nbsp;&lt;STRONG&gt;Part Number&lt;/STRONG&gt;, but it also contains more information about the part number, like Part Group, Part Class, etc.&amp;nbsp; The two tables have a relationship using &lt;STRONG&gt;Part Number&lt;/STRONG&gt;.&amp;nbsp; What I am trying to do is count the number of &lt;U&gt;part groups&lt;/U&gt; by &lt;U&gt;sales channel&lt;/U&gt;.&amp;nbsp; I am not very experienced using DAX or measures, so any guidance and information about how I might achieve this goal is much appreciate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally, the data table that contains the sales information is labeled INVENTORY and the table that contains all of the additional references to the Part Number is labeled Ref_Material.&amp;nbsp; There is a many to one relationship going from the INVENTORY&amp;nbsp; table to the Ref_Material table.&amp;nbsp;&amp;nbsp;I am not very experienced using DAX or measures, so any guidance and information about how I might achieve this goal is much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 16:08:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-items-in-a-table/m-p/2305571#M57082</guid>
      <dc:creator>rfwjr64</dc:creator>
      <dc:date>2022-01-27T16:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to count items in a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-items-in-a-table/m-p/2305644#M57087</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;If you have a relationship between the tables you don't necessarily need DAX. You can select count distinct here and you will get the result you want:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;My test data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 16:10:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-count-items-in-a-table/m-p/2305644#M57087</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-27T16:10:35Z</dc:date>
    </item>
  </channel>
</rss>

