<?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: Measrurement for count of rowrs based on text value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measrurement-for-count-of-rowrs-based-on-text-value/m-p/3489724#M133578</link>
    <description>&lt;P&gt;Thank you ValtteriN, this did the job! Much appriciated!&lt;/P&gt;</description>
    <pubDate>Sun, 22 Oct 2023 14:59:33 GMT</pubDate>
    <dc:creator>Harri</dc:creator>
    <dc:date>2023-10-22T14:59:33Z</dc:date>
    <item>
      <title>Measrurement for count of rowrs based on text value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measrurement-for-count-of-rowrs-based-on-text-value/m-p/3489561#M133562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This might be a simple question but I am q bit stuck with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data is formatted like this (Table1):&lt;/P&gt;&lt;P&gt;Company; Sales-date&lt;BR /&gt;Acme Inc; 01.01.2022&lt;BR /&gt;Acme Inc; 02.01.2022&lt;BR /&gt;Acme Inc; 03.01.2022&lt;BR /&gt;Acme Inc; 04.01.2022&lt;BR /&gt;Customer Corp; 05.01.2022&lt;BR /&gt;Customer Corp; 06.01.2022&lt;BR /&gt;Customer Corp; 07.01.2022&lt;BR /&gt;SMB Ltd; 08.01.2022&lt;BR /&gt;SMB Ltd; 09.01.2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Company column is a text field and I would like to summarize how many occurences there is for each value. For example, how many sales interactions was there in January for each company.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect results like this for given data in report table: Company; number of sales activities:&lt;BR /&gt;Acme Inc; 4&lt;BR /&gt;Customer Corp; 3&lt;BR /&gt;SMB Ltd; 08.01.2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am adding a measurement like this:&lt;BR /&gt;Measure = COUNTROWS(filter(Table1, Table1[Company] = EARLIER(Company)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This provides error:&lt;BR /&gt;EARLIER/EARLIEST refers to an earlier row context which doesn't exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing something wront, but what?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Harri&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2023 07:04:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measrurement-for-count-of-rowrs-based-on-text-value/m-p/3489561#M133562</guid>
      <dc:creator>Harri</dc:creator>
      <dc:date>2023-10-22T07:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Measrurement for count of rowrs based on text value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measrurement-for-count-of-rowrs-based-on-text-value/m-p/3489574#M133564</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;COUNT should work for your example. E.g.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt; &lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;COUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table (8)'&lt;/SPAN&gt;&lt;SPAN&gt;[Sales-date]&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;In your measure you used EARLIER. EARLIER should be used in the context of calculated columns.&lt;BR /&gt;&lt;BR /&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;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 22 Oct 2023 07:24:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measrurement-for-count-of-rowrs-based-on-text-value/m-p/3489574#M133564</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-10-22T07:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Measrurement for count of rowrs based on text value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measrurement-for-count-of-rowrs-based-on-text-value/m-p/3489724#M133578</link>
      <description>&lt;P&gt;Thank you ValtteriN, this did the job! Much appriciated!&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2023 14:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measrurement-for-count-of-rowrs-based-on-text-value/m-p/3489724#M133578</guid>
      <dc:creator>Harri</dc:creator>
      <dc:date>2023-10-22T14:59:33Z</dc:date>
    </item>
  </channel>
</rss>

