<?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: Get duplicate values in same column with iteration wise in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2795514#M87825</link>
    <description>&lt;P&gt;Hi.&lt;BR /&gt;&lt;SPAN&gt;i have tried using the formula which you shared but i am facing the error . i have removed extra brackets in return statement but still the error is coming.&lt;BR /&gt;Please see the screenshot attached&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The source i have connected is excel and&amp;nbsp; count of records is approximately&amp;nbsp; 31K. Any suggestions please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 08:05:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-26T08:05:19Z</dc:date>
    <item>
      <title>Get duplicate values in same column with iteration wise</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2789363#M87524</link>
      <description>&lt;P&gt;Hi ,&lt;BR /&gt;&lt;BR /&gt;I have a scenario where i have to find duplicated values with in a column and return 1 or 0 as a output&lt;BR /&gt;Excel vlookup i have -&amp;nbsp;+IF(ISERROR(VLOOKUP(AI2,$AI$1:AI1,1,0))=FALSE,0,1)&amp;nbsp;&lt;/P&gt;&lt;P&gt;the duplicate value should work as&amp;nbsp;&lt;BR /&gt;Example - 1st row value should check duplciate with Previous value i.e..1, 0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2nd row values should check duplicate with 2,1,0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3rd row values should check duplicate with 3,2,1,0&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4th row values should check duplicate with 4,3,2,1,0.........&lt;BR /&gt;this way the duplicate values and iteration should work&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have tried creating colum in powerbi&amp;nbsp; but the output is not coming as expected. Any help on this please?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Duplicate = if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;count&lt;/SPAN&gt;&lt;SPAN&gt;(Table&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[Number]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(Table&lt;/SPAN&gt;&lt;SPAN&gt;,Table&amp;nbsp;[Number]&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt;(Table&amp;nbsp;[Number]&lt;/SPAN&gt;&lt;SPAN&gt;))), &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 09:31:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2789363#M87524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T09:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get duplicate values in same column with iteration wise</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2789519#M87528</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 10:00:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2789519#M87528</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-23T10:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get duplicate values in same column with iteration wise</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2789575#M87532</link>
      <description>&lt;P&gt;Hi Greg,&lt;BR /&gt;Please see below the Sample output result should be 1,0&amp;nbsp;&lt;BR /&gt;in excel by using vlookup fucntion the duplicate values are acheived by IF(ISERROR(VLOOKUP(AI2,$AI$1:AI1,1,0))=FALSE,0,1)&amp;nbsp;&lt;BR /&gt;Now the same duplicate values&amp;nbsp; need to replicate in Powerbi with&amp;nbsp; calculated column&amp;nbsp;&lt;/P&gt;&lt;P&gt;the duplication should work in such a way that&lt;/P&gt;&lt;P&gt;1st record in a column should check with previous records. i.e., with 0 record&lt;BR /&gt;2nd record should check with previous records i.e., 2 with (1 &amp;amp;0 records)&lt;BR /&gt;3rd record should check with previous records i.e., 3 with (2,1,0 records)....&lt;BR /&gt;Hope this is clear. Please let me know how can i achieve this in DAX&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Number&lt;/TD&gt;&lt;TD&gt;Output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9900661041&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9900661056&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9900661056&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9900661056&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9900661056&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9900661056&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 23 Sep 2022 10:19:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2789575#M87532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T10:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get duplicate values in same column with iteration wise</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2789683#M87540</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any help on this please ?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 11:19:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2789683#M87540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T11:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get duplicate values in same column with iteration wise</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2790034#M87571</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Any suggestion please ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 14:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2790034#M87571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T14:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get duplicate values in same column with iteration wise</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2795106#M87805</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Any other field that can be used as an index column?&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;The current power bi data model table does not include row and columns index, I think you need to add an index column and use it as a condition to loop through table records.&lt;/FONT&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Duplicate =
VAR dCount =
    COUNTROWS (
        FILTER (
            Table,
            Table[Number] = EARLIER ( Table[Number] )
                &amp;amp;&amp;amp; Table[Index] &amp;lt;= EARLIER ( Table[Index] )
        )
    )
RETURN
    IF ( dCount &amp;gt; 1, 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 05:58:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2795106#M87805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T05:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Get duplicate values in same column with iteration wise</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2795514#M87825</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;&lt;SPAN&gt;i have tried using the formula which you shared but i am facing the error . i have removed extra brackets in return statement but still the error is coming.&lt;BR /&gt;Please see the screenshot attached&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The source i have connected is excel and&amp;nbsp; count of records is approximately&amp;nbsp; 31K. Any suggestions please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 08:05:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2795514#M87825</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T08:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get duplicate values in same column with iteration wise</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2796087#M87859</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;SPAN&gt;Hi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i have tried using the formula which you shared but i am facing the error . i have removed extra brackets in return statement but still the error is coming.&lt;BR /&gt;Please see the screenshot attached&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The source i have connected is excel and&amp;nbsp; count of records is approximately&amp;nbsp; 31K. Any suggestions please&lt;/SPAN&gt;&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;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 10:28:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-duplicate-values-in-same-column-with-iteration-wise/m-p/2796087#M87859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T10:28:54Z</dc:date>
    </item>
  </channel>
</rss>

