<?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: Creat a new column to delete duplicate row based on multiple condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creat-a-new-column-to-delete-duplicate-row-based-on-multiple/m-p/2855139#M91735</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="187259" data-lia-user-login="yuzexi" class="lia-mention lia-mention-user"&gt;yuzexi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simiple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    MAX ( 'Table'[statut] ) = "NOT DONE"
        &amp;amp;&amp;amp; MAX ( 'Table'[cource] ) = "LWLAPP",
    "DELETE",
    IF (
        MAX ( 'Table'[statut] ) = "DONE"
            &amp;amp;&amp;amp; MAX ( 'Table'[cource] ) = "CHINA",
        "DELETE",
        "KEPT"
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 07:18:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-21T07:18:51Z</dc:date>
    <item>
      <title>Creat a new column to delete duplicate row based on multiple condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creat-a-new-column-to-delete-duplicate-row-based-on-multiple/m-p/2853356#M91579</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need help to create a dax formule.&lt;/P&gt;&lt;P&gt;We have a calculated table which have the following columns (Training, Email,&amp;nbsp; Date, Statut, Source)&amp;nbsp;&lt;/P&gt;&lt;P&gt;For one person, he could do the training in serveral applications (LWL, CHINA, PROOFPOINT). But the key of this table should be Training and Email. Based on the data from the different source (LWL, CHINA ou PROOFPOINT) and Statut (DONE, NOT DONE) we delete the row.&lt;/P&gt;&lt;P&gt;So the aim is to create a new column to decide which row should be deleted (the value of this field will be "DELETED" ou "KEPT")&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;if the source is "LWL" and Statut is "NOT DONE " while another row has the source as "CHINA" and Statut as "DONE", in this case, the one has "LWL APP" and "NOT DONE" should be deleted for the same email and training.&lt;/DIV&gt;&lt;DIV class=""&gt;If the source is "LWL APP" and Statut is "DONE" while&amp;nbsp; another row with the source as "CHINA" and Statut as "DONE", then the one which has "CHINA" and Statut as "DONE" should be deleted.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;And in this table, there is already a calculated column CheckDuplicateData to know the rows which have the duplicated rows based on eamil and trainingid.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Thank you very much,&lt;/DIV&gt;&lt;DIV class=""&gt;regards,&lt;/DIV&gt;&lt;DIV class=""&gt;Zexi&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Oct 2022 09:51:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creat-a-new-column-to-delete-duplicate-row-based-on-multiple/m-p/2853356#M91579</guid>
      <dc:creator>yuzexi</dc:creator>
      <dc:date>2022-10-20T09:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creat a new column to delete duplicate row based on multiple condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creat-a-new-column-to-delete-duplicate-row-based-on-multiple/m-p/2855139#M91735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="187259" data-lia-user-login="yuzexi" class="lia-mention lia-mention-user"&gt;yuzexi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simiple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    MAX ( 'Table'[statut] ) = "NOT DONE"
        &amp;amp;&amp;amp; MAX ( 'Table'[cource] ) = "LWLAPP",
    "DELETE",
    IF (
        MAX ( 'Table'[statut] ) = "DONE"
            &amp;amp;&amp;amp; MAX ( 'Table'[cource] ) = "CHINA",
        "DELETE",
        "KEPT"
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide more details with your desired output and pbix file without privacy information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 07:18:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creat-a-new-column-to-delete-duplicate-row-based-on-multiple/m-p/2855139#M91735</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-21T07:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creat a new column to delete duplicate row based on multiple condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creat-a-new-column-to-delete-duplicate-row-based-on-multiple/m-p/2865185#M92314</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your proposal.&lt;/P&gt;&lt;P&gt;Howerver it seems not the resultat which I am waiting for. I added your formule in the measure _M_SOURCE_DELEE. for the sessionID 764, it is correct.&amp;nbsp; CHINA should be deleted and LWL APP should be kept. But for the sessionID 233,&amp;nbsp; LWL APP should be deleted and CHINA should be kept as it is "LWL APP" who is not done (M_DONE_OU_PAS).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Zexi&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 14:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creat-a-new-column-to-delete-duplicate-row-based-on-multiple/m-p/2865185#M92314</guid>
      <dc:creator>yuzexi</dc:creator>
      <dc:date>2022-10-26T14:27:31Z</dc:date>
    </item>
  </channel>
</rss>

