<?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: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4897610#M186372</link>
    <description>&lt;P&gt;Sorry for the late reply.&amp;nbsp; Reason I didn't use min function is because I also need to calculate 2nd, 3rd ... Nth transaction dates.&amp;nbsp; That's why the index function works... until the error messages:&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;Without using INDEX, how can I get the Nth transaction date?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2025 17:17:08 GMT</pubDate>
    <dc:creator>etane</dc:creator>
    <dc:date>2025-12-09T17:17:08Z</dc:date>
    <item>
      <title>Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4895010#M186291</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've summarized our sales table to grab unique customers to its own table.&amp;nbsp; This table is linked to the sales table by customer id.&amp;nbsp; I then added a calculated column to indicate the customers' first completed transaction date for Product A.&amp;nbsp; The DAX looks something like this:&lt;BR /&gt;&lt;BR /&gt;CALCULATE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SELECTEDVALUE('SALESTABLE'[SALESDATE]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;INDEX(1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER('SALESTABLE', PRODUCTYPE = "A' &amp;amp;&amp;amp; ORDERSTATUS = "COMPLETE"),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ORDERBY(&amp;nbsp;SALESTABLE'[SALESDATE], ASC,&amp;nbsp;SALESTABLE'[ORDER#],ASC),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PARTITIONBY(SALESTABLE'[CUSTOMER_ID]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;MATCHBY(SALESTABLE'[ORDER#]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ,ALLEXCEPT('SALESTABLE', 'SALESTABLE'[CUSTOMER_ID])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ,&amp;nbsp;SALESTABLE'[SALESDATE]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I have a customer table with unique customers with their respective first purchase date that's linked to the sales table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked for about a year.&amp;nbsp; But, yesterday, the refresh for this report stopped.&amp;nbsp; I get this message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I look into the first purchase date Custom Column, this message appears:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried looking for duplicated customer id in the summarized customer table and sales order id in the sales table, but I don't find any.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anything wrong with my DAX?&amp;nbsp; Could the duplicate exist somewhere I haven't looked?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a different DAX I can use to find first order date by customer so to circumvent the INDEX error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2025 03:44:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4895010#M186291</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-12-07T03:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4895015#M186292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687592" data-lia-user-login="etane" class="lia-mention lia-mention-user"&gt;etane&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I hope you are doing well ☺️&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So&amp;nbsp;When you use &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;MATCHBY(ORDER#)&lt;/STRONG&gt; &lt;/FONT&gt;within each&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; PARTITIONBY(CUSTOMER_ID)&lt;/STRONG&gt; &lt;/FONT&gt;Power BI expects that each order number is &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;unique&lt;/STRONG&gt; &lt;/FONT&gt;for each customer So the error suggests there might be:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Duplicate &lt;/STRONG&gt;&lt;STRONG&gt;ORDER#&lt;/STRONG&gt;&lt;/FONT&gt; values for the same customer&lt;/LI&gt;&lt;LI&gt;Or some other issues with uniqueness in the&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; filtered dataset&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="4" color="#339966"&gt;How to Solve This?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="4" color="#FF6600"&gt;First Approach :&amp;nbsp;&lt;/FONT&gt;&lt;STRONG&gt;(If you have SQL access)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you can check&amp;nbsp;for duplicate &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ORDER#&lt;/STRONG&gt;&lt;/FONT&gt; within customer partitions&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;SELECT CUSTOMER_ID, ORDER#, COUNT(*) 
FROM SALESTABLE 
WHERE PRODUCTYPE = 'A' AND ORDERSTATUS = 'COMPLETE'
GROUP BY CUSTOMER_ID, ORDER#
HAVING COUNT(*) &amp;gt; 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="4" color="#FF6600"&gt;&lt;FONT color="#99CC00"&gt;Second Approach :&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;STRONG&gt;(That's What you need)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This finds the &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;earliest sales date&lt;/STRONG&gt;&lt;/FONT&gt; for each customer without &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;complex partitioning logic&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;Using MIN with FILTER:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;First Purchase Date Product A =
VAR CurrentCustomer = 'CustomerTable'[CUSTOMER_ID]
RETURN
CALCULATE(
    MIN('SALESTABLE'[SALESDATE]),
    FILTER(
        'SALESTABLE',
        'SALESTABLE'[CUSTOMER_ID] = CurrentCustomer &amp;amp;&amp;amp;
        'SALESTABLE'[PRODUCTYPE] = "A" &amp;amp;&amp;amp;
        'SALESTABLE'[ORDERSTATUS] = "COMPLETE"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#FF0000"&gt;if you have a single order per date&lt;/FONT&gt;&amp;nbsp;Use &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;FIRSTNONBLANK&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;First Purchase Date Product A =
CALCULATE(
    FIRSTNONBLANK(
        'SALESTABLE'[SALESDATE],
        1
    ),
    'SALESTABLE'[PRODUCTYPE] = "A",
    'SALESTABLE'[ORDERSTATUS] = "COMPLETE"
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Also instead of these you can use&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&amp;nbsp;SUMMARIZE&lt;/STRONG&gt;&lt;/FONT&gt; to get distinct transactions first&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;First Purchase Date Product A =
MAXX(
    TOPN(
        1,
        CALCULATETABLE(
            VALUES('SALESTABLE'[SALESDATE]),
            'SALESTABLE'[PRODUCTYPE] = "A",
            'SALESTABLE'[ORDERSTATUS] = "COMPLETE"
        ),
        'SALESTABLE'[SALESDATE], ASC
    ),
    'SALESTABLE'[SALESDATE]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#33CCCC"&gt;Third Approach:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;(For handling tie breaking)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If you need to handle &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ties&lt;/STRONG&gt; &lt;/FONT&gt;where&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt; multiple orders&lt;/STRONG&gt;&lt;/FONT&gt; have the same earliest date use &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;MINX&lt;/STRONG&gt; &lt;/FONT&gt;with &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;TOPN &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;First Purchase Date Product A =
VAR FirstTransaction =
    TOPN(
        1,
        FILTER(
            'SALESTABLE',
            'SALESTABLE'[CUSTOMER_ID] = 'CustomerTable'[CUSTOMER_ID] &amp;amp;&amp;amp;
            'SALESTABLE'[PRODUCTYPE] = "A" &amp;amp;&amp;amp;
            'SALESTABLE'[ORDERSTATUS] = "COMPLETE"
        ),
        'SALESTABLE'[SALESDATE], ASC,
        'SALESTABLE'[ORDER#], ASC
    )
RETURN
MINX(FirstTransaction, 'SALESTABLE'[SALESDATE])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="comic sans ms,sans-serif" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#FFCC00"&gt;Bonus Approach:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;(Debug the duplicates directly)&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;&lt;SPAN&gt;Create a temporary table to check for duplicates&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="markup"&gt;Duplicate Check = 
SUMMARIZE(
    FILTER('SALESTABLE', 'SALESTABLE'[PRODUCTYPE] = "A" &amp;amp;&amp;amp; 'SALESTABLE'[ORDERSTATUS] = "COMPLETE"),
    'SALESTABLE'[CUSTOMER_ID],
    'SALESTABLE'[ORDER#],
    "Count", COUNTROWS('SALESTABLE')
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;EM&gt;if this post helps, then I would appreciate a thumbs up&lt;/EM&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;and&amp;nbsp;&lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;&lt;EM&gt;to help the other members find it more quickly.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Dec 2025 04:16:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4895015#M186292</guid>
      <dc:creator>Ahmed-Elfeel</dc:creator>
      <dc:date>2025-12-07T04:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4895052#M186293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687592" data-lia-user-login="etane" class="lia-mention lia-mention-user"&gt;etane&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a reason why you use DAX for this?&lt;/P&gt;&lt;P&gt;Best practise would be to perform this operation somewhere more in the backend.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Maybe give it a try using Power Query with M. Set the query on top of your sales table and create a new one with the same logic.&amp;nbsp;&lt;BR /&gt;This deloads also your report during runtime regarding performance.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Second approach but depending on your backend not as easy to implement is to create the table before it gets loaded in Power BI. E.g. in your warehouse or lakehouse.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;PS: if you find this helpful, leave some kudos or mark it as solution&lt;/P&gt;</description>
      <pubDate>Sun, 07 Dec 2025 07:12:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4895052#M186293</guid>
      <dc:creator>Mauro89</dc:creator>
      <dc:date>2025-12-07T07:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4895143#M186298</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;H&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="687592" data-lia-user-login="etane" class="lia-mention lia-mention-user"&gt;etane&lt;/a&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;to find first order date by customer for Product A you can use this DAX in a &lt;STRONG&gt;calculated column in Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;First Purchase A Prod =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MINX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sales&lt;/SPAN&gt;&lt;SPAN&gt;[CustomerKey]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;Customer&lt;/SPAN&gt;&lt;SPAN&gt;[CustomerKey] &amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sales[PRODUCTYPE] = "A" &amp;amp;&amp;amp; Sales[ORDERSTATUS] = "COMPLETE"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;[OrderDate]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please try to avoid such a complex DAX code your wrote, it involves a lot of unnecessary steps that make everything more complex than needed&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;@me in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;assuming&amp;nbsp;PRODUCTYPE and&amp;nbsp;ORDERSTATUS are columns in the Sales table&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Dec 2025 15:27:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4895143#M186298</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2025-12-07T15:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4897610#M186372</link>
      <description>&lt;P&gt;Sorry for the late reply.&amp;nbsp; Reason I didn't use min function is because I also need to calculate 2nd, 3rd ... Nth transaction dates.&amp;nbsp; That's why the index function works... until the error messages:&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;Without using INDEX, how can I get the Nth transaction date?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 17:17:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4897610#M186372</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-12-09T17:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4897619#M186373</link>
      <description>&lt;P&gt;It's the only DAX that I know of (actually provided to me by someone in this forum) that provides me with not just the 1st transaction date but also by the Nth transaction date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not good with M.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 17:20:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4897619#M186373</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-12-09T17:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4897628#M186374</link>
      <description>&lt;P&gt;Thank you for your detailed response.&amp;nbsp; I think the MAXX(TopN) function can work.&amp;nbsp; Will try it out first.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2025 17:22:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4897628#M186374</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-12-09T17:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4898247#M186381</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If you want to have ranking&amp;nbsp; and avoid index you can use RANX. E.g.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;OrderRank =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;RANKX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SALESTABLE&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SALESTABLE&lt;/SPAN&gt;&lt;SPAN&gt;[CUSTOMER_ID]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;EARLIER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SALESTABLE&lt;/SPAN&gt;&lt;SPAN&gt;[CUSTOMER_ID]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;SALESTABLE&lt;/SPAN&gt;&lt;SPAN&gt;[PRODUCTYPE]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"A"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ),&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SALESTABLE&lt;/SPAN&gt;&lt;SPAN&gt;[SALESDATE]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ASC&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Dense&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Dec 2025 09:02:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4898247#M186381</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2025-12-10T09:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help Solve Error Message: duplicated rows are encountered in INDEX's Relation paramter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4898793#M186391</link>
      <description>&lt;P&gt;Thank you for all the responses.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;After hours of tinkering, I found a solution (mainly thanks to ChatGPT).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although I couldn't find any duplicate Order#s, I augmented the MatchBy statement by adding row ID to ensure the DAX isn't held up by a duplicate Order#:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;SELECTEDVALUE('SALESTABLE'[SALESDATE]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;INDEX(1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER('SALESTABLE', PRODUCTYPE = "A' &amp;amp;&amp;amp; ORDERSTATUS = "COMPLETE"),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ORDERBY(&amp;nbsp;SALESTABLE'[SALESDATE], ASC,&amp;nbsp;SALESTABLE'[ORDER#],ASC),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;PARTITIONBY(SALESTABLE'[CUSTOMER_ID]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;MATCHBY(SALESTABLE'[ORDER#],&amp;nbsp;&lt;FONT color="#FF0000"&gt;SALESTABLE'[Id]&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ,ALLEXCEPT('SALESTABLE', 'SALESTABLE'[CUSTOMER_ID])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ,&amp;nbsp;SALESTABLE'[SALESDATE]&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2025 16:30:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Solve-Error-Message-duplicated-rows-are-encountered-in/m-p/4898793#M186391</guid>
      <dc:creator>etane</dc:creator>
      <dc:date>2025-12-10T16:30:36Z</dc:date>
    </item>
  </channel>
</rss>

