<?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 Need Help counting Occurrences for a given date (not cumulative) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567889#M31212</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am looking count the number of&amp;nbsp; times "CustomerX" appears in a single column on a given date. For Example, Bob appears twice on 11/13 and once on 11/14.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using COUNTX and SUMX but it counted all occurences instead of just for a single date.&amp;nbsp; Once the occurence for the date is found I would like to create a new column or measure that shows if the occurence in one day is greater than 2 it populates column as "Frequent"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date - Employee Name - Customer Name&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;11/13/2020&lt;/TD&gt;&lt;TD&gt;Employee 1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/13/2020&lt;/TD&gt;&lt;TD&gt;Employee 2&lt;/TD&gt;&lt;TD&gt;Jen&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/13/2020&lt;/TD&gt;&lt;TD&gt;Employee 3&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/13/2020&lt;/TD&gt;&lt;TD&gt;Employee 4&lt;/TD&gt;&lt;TD&gt;Max&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/14/2020&lt;/TD&gt;&lt;TD&gt;Employee 3&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 19:42:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-12-23T19:42:32Z</dc:date>
    <item>
      <title>Need Help counting Occurrences for a given date (not cumulative)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567889#M31212</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am looking count the number of&amp;nbsp; times "CustomerX" appears in a single column on a given date. For Example, Bob appears twice on 11/13 and once on 11/14.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using COUNTX and SUMX but it counted all occurences instead of just for a single date.&amp;nbsp; Once the occurence for the date is found I would like to create a new column or measure that shows if the occurence in one day is greater than 2 it populates column as "Frequent"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date - Employee Name - Customer Name&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;11/13/2020&lt;/TD&gt;&lt;TD&gt;Employee 1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/13/2020&lt;/TD&gt;&lt;TD&gt;Employee 2&lt;/TD&gt;&lt;TD&gt;Jen&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/13/2020&lt;/TD&gt;&lt;TD&gt;Employee 3&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/13/2020&lt;/TD&gt;&lt;TD&gt;Employee 4&lt;/TD&gt;&lt;TD&gt;Max&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11/14/2020&lt;/TD&gt;&lt;TD&gt;Employee 3&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 19:42:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567889#M31212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-23T19:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help counting Occurrences for a given date (not cumulative)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567903#M31214</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Place&amp;nbsp; Date in the rows of a matrix visual and Customer name in the columns&lt;/P&gt;
&lt;P&gt;2. Create this measure and place it in values of the visual:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF ( COUNT ( TAble1[Customer Name] ) &amp;gt; 2, "Frequent" )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 20:00:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567903#M31214</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-12-23T20:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help counting Occurrences for a given date (not cumulative)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567908#M31216</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Add the following code as new column:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Occurrence = 
IF(
    COUNTROWS(
        FILTER(
            Table01,
            Table01[Customer Name] = EARLIER(Table01[Customer Name]) &amp;amp;&amp;amp;
            Table01[Date] = EARLIER(Table01[Date])
        )
    ) &amp;gt; 2,
    "Frequent"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need a measure, then add a table visual, keep Date and Customer name then add the following measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Occurrence Measure = IF( COUNTROWS(Table01) &amp;gt; 2 , "Frequent")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;If my answer was helpful, please click &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;I&gt; to help other members find it useful&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Click on the &lt;STRONG&gt;Thumbs-Up icon &lt;/STRONG&gt;if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.excelfort.com" target="_blank" rel="noopener"&gt;&lt;FONT color="blue"&gt;Website&lt;/FONT&gt;&lt;/A&gt; &lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank" rel="noopener"&gt;&lt;FONT color="blue"&gt;YouTube&lt;/FONT&gt;&lt;/A&gt;&amp;nbsp; &lt;A href="https://linkedin.com/in/fowmy" target="_blank" rel="noopener"&gt;&lt;FONT color="blue"&gt;LinkedIn&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 20:10:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567908#M31216</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-12-23T20:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help counting Occurrences for a given date (not cumulative)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567944#M31222</link>
      <description>&lt;P&gt;Thank you very much! The IF function worked for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 21:12:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-Help-counting-Occurrences-for-a-given-date-not-cumulative/m-p/1567944#M31222</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-23T21:12:11Z</dc:date>
    </item>
  </channel>
</rss>

