<?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: Filter Duplicate rows based on a value in the column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3064991#M106087</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509445" data-lia-user-login="ilyaadna" class="lia-mention lia-mention-user"&gt;ilyaadna&lt;/a&gt; , Try a new column like &lt;/P&gt;
&lt;P&gt;Flag =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var _cnt = countx(FIlter(Table, Table[Serial No] =earlier(Table[Serial No]) , Table[Serial No])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;Switch(True() , &lt;/P&gt;
&lt;P&gt;Scrap_Qty in {0,1} , 1, &lt;/P&gt;
&lt;P&gt;isblank(_cnt ) ,1 ,&lt;/P&gt;
&lt;P&gt;_cnt=1, 1,&lt;/P&gt;
&lt;P&gt;0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI DAX- Earlier, I should have known Earlier: &lt;A href="https://youtu.be/CVW6YwvHHi8" target="_blank"&gt;https://youtu.be/CVW6YwvHHi8&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 01:27:09 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-02-07T01:27:09Z</dc:date>
    <item>
      <title>Filter Duplicate rows based on a value in the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3064156#M106031</link>
      <description>&lt;P&gt;I am new to POWERBI and thanks in advance for everyone's help. Here is my problem. I am trying to remove duplicates based on Scrap_Qty value. If Scrap_Qty=1, it shoud keep that row and filter any other row that has same serial_No but Scrap_Qty=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example. For HC3078-05, It should keep the top row since Qty_Scrap=1 and then it should compare this serial number with all the other rows and filter out HC3078-05 with Qty_Scrap = 0 (last row in this case).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i can do that at "transform data" stage, that will be awesome otherwise even a DAX function will work great. Appreciate the help on this!!&amp;nbsp;&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;</description>
      <pubDate>Mon, 06 Feb 2023 15:17:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3064156#M106031</guid>
      <dc:creator>ilyaadna</dc:creator>
      <dc:date>2023-02-06T15:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Duplicate rows based on a value in the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3064991#M106087</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509445" data-lia-user-login="ilyaadna" class="lia-mention lia-mention-user"&gt;ilyaadna&lt;/a&gt; , Try a new column like &lt;/P&gt;
&lt;P&gt;Flag =&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var _cnt = countx(FIlter(Table, Table[Serial No] =earlier(Table[Serial No]) , Table[Serial No])&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;Switch(True() , &lt;/P&gt;
&lt;P&gt;Scrap_Qty in {0,1} , 1, &lt;/P&gt;
&lt;P&gt;isblank(_cnt ) ,1 ,&lt;/P&gt;
&lt;P&gt;_cnt=1, 1,&lt;/P&gt;
&lt;P&gt;0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI DAX- Earlier, I should have known Earlier: &lt;A href="https://youtu.be/CVW6YwvHHi8" target="_blank"&gt;https://youtu.be/CVW6YwvHHi8&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 01:27:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3064991#M106087</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-02-07T01:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Duplicate rows based on a value in the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3065628#M106136</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="509445" data-lia-user-login="ilyaadna" class="lia-mention lia-mention-user"&gt;ilyaadna&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Power Query – Select the yellow label – select only the box that is 1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 08:02:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3065628#M106136</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-07T08:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Filter Duplicate rows based on a value in the column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3066758#M106218</link>
      <description>&lt;P&gt;Thanks for the input Liu. What you are suggesting will filter out all the Qty_Scrap=0. However, what i want to do is to keep all the ScrapQty=1 and filter out only those ScrapQty=0 rows for which there is a serial_no duplicate with Scrap_Qty=1. Again, appreciate your help&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 17:16:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-Duplicate-rows-based-on-a-value-in-the-column/m-p/3066758#M106218</guid>
      <dc:creator>ilyaadna</dc:creator>
      <dc:date>2023-02-07T17:16:23Z</dc:date>
    </item>
  </channel>
</rss>

