<?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: Counting unique values in a column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-values-in-a-column/m-p/2871188#M92649</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are a couple of measures you can try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Distinct Count that will include BLANK rows&lt;/P&gt;&lt;PRE&gt;Company Distinct Count = COUNTROWS(VALUES('Table'[COMPANY]))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Distinct Count that will exclude BLANK rows&lt;/P&gt;&lt;PRE&gt;Company Distinct Count = COUNTROWS(ALLNOBLANKROW('Table'[COMPANY]))&lt;/PRE&gt;</description>
    <pubDate>Fri, 28 Oct 2022 14:31:42 GMT</pubDate>
    <dc:creator>besomebody20</dc:creator>
    <dc:date>2022-10-28T14:31:42Z</dc:date>
    <item>
      <title>Counting unique values in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-values-in-a-column/m-p/2871109#M92644</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for help with something that I thought would be quite simple, but doesn't appear to be working for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below table:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;COMPANY&lt;/TD&gt;&lt;TD&gt;LOCATION&lt;/TD&gt;&lt;TD&gt;JOB TITLE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Apple&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Spain&lt;/TD&gt;&lt;TD&gt;Data Analyst&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Microsoft&lt;/TD&gt;&lt;TD&gt;France&lt;/TD&gt;&lt;TD&gt;Software Dev&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Facebook&lt;/TD&gt;&lt;TD&gt;Spain&lt;/TD&gt;&lt;TD&gt;Data Analyst&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ARM&lt;/TD&gt;&lt;TD&gt;Ireland&lt;/TD&gt;&lt;TD&gt;Data Analyst&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Intel&lt;/TD&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;Data Analyst&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Google&lt;/TD&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;CEO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Amazon&lt;/TD&gt;&lt;TD&gt;Japan&lt;/TD&gt;&lt;TD&gt;COO&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to get a distinct count of the number of companies and the number of locations, ie the number of times each one appears at least once. In the case of location it would be 6, for company it would be 7.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought I could do this using DISTINCTCOUNT() or COUNTROWS(DISTINCT()) but neither are working for me. Would anyone have any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 14:10:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-values-in-a-column/m-p/2871109#M92644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-28T14:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Counting unique values in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-values-in-a-column/m-p/2871188#M92649</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are a couple of measures you can try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Distinct Count that will include BLANK rows&lt;/P&gt;&lt;PRE&gt;Company Distinct Count = COUNTROWS(VALUES('Table'[COMPANY]))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Distinct Count that will exclude BLANK rows&lt;/P&gt;&lt;PRE&gt;Company Distinct Count = COUNTROWS(ALLNOBLANKROW('Table'[COMPANY]))&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Oct 2022 14:31:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-values-in-a-column/m-p/2871188#M92649</guid>
      <dc:creator>besomebody20</dc:creator>
      <dc:date>2022-10-28T14:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Counting unique values in a column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-values-in-a-column/m-p/2876265#M92951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 06:30:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counting-unique-values-in-a-column/m-p/2876265#M92951</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-11-01T06:30:13Z</dc:date>
    </item>
  </channel>
</rss>

