<?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: How to Count Duplicate Cells and Return &amp;quot;1&amp;quot; for First Occurences and &amp;quot;0&amp;quot; for others in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279860#M121806</link>
    <description>&lt;P&gt;Hi tamerj1,&lt;BR /&gt;&lt;BR /&gt;Yes, I have a column date, but the column index no,&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 15:19:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-12T15:19:01Z</dc:date>
    <item>
      <title>How to Count Duplicate Cells and Return "1" for First Occurences and "0" for others</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279798#M121799</link>
      <description>&lt;P&gt;Hi everyone, are you guys doing well?&lt;BR /&gt;&lt;BR /&gt;I have a complicated challenge here to add a new column to my table,&lt;BR /&gt;&lt;BR /&gt;Basically, I need to count duplicate ID's, and after that, I need to write "1" into one of the X rows that are duplicates,&lt;BR /&gt;&lt;BR /&gt;For example, as in my table below, the ID "X1" repeats 4 times, then I need to write "1" as result into any row, and "0" for the remaining ones,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to use the expressions Countrows with Earlier function, but It will always give me just the repetition count,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt;('Table'&lt;/SPAN&gt;&lt;SPAN&gt;[ID]&lt;/SPAN&gt;&lt;SPAN&gt;) = 'Table'[ID]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;) )&lt;BR /&gt;&lt;BR /&gt;Could you guys help me out with this challenge?&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 12 Jun 2023 14:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279798#M121799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-12T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count Duplicate Cells and Return "1" for First Occurences and "0" for others</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279834#M121803</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Do you have a date or index column?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 15:10:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279834#M121803</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-12T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count Duplicate Cells and Return "1" for First Occurences and "0" for others</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279860#M121806</link>
      <description>&lt;P&gt;Hi tamerj1,&lt;BR /&gt;&lt;BR /&gt;Yes, I have a column date, but the column index no,&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 15:19:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279860#M121806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-12T15:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Count Duplicate Cells and Return "1" for First Occurences and "0" for others</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279877#M121807</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;P&gt;Expected Result =&lt;BR /&gt;IF (&lt;BR /&gt;'Table'[Date]&lt;BR /&gt;= CALCULATE ( MIN ( 'Table'[Date] ), ALLEXCEPT ( 'Table', 'Table'[ID] ) ),&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 15:23:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-Count-Duplicate-Cells-and-Return-quot-1-quot-for-First/m-p/3279877#M121807</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-12T15:23:47Z</dc:date>
    </item>
  </channel>
</rss>

