<?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: Need to build new table who have unique filtered data rows only from existing table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4358096#M173007</link>
    <description>&lt;P&gt;Thanks for&amp;nbsp;bhanu_gautam's concern about this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="857894" data-lia-user-login="AmitSaini" class="lia-mention lia-mention-user"&gt;AmitSaini&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you could try using the following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NewTable = 
UNION (
    FILTER (
        ExistingTable,
        ExistingTable[status] = "Yes" &amp;amp;&amp;amp; ExistingTable[Auto_Status] = "Candidate for Automation"
    ),
    FILTER (
        ExistingTable,
        COUNTROWS (
            FILTER (
                ExistingTable,
                ExistingTable[ID] = EARLIER(ExistingTable[ID])
            )
        ) = 1
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&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 attached the pbix file for this example below, I hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fen Ling,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 02:53:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-01-10T02:53:13Z</dc:date>
    <item>
      <title>Need to build new table who have unique filtered data rows only from existing table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4356961#M172969</link>
      <description>&lt;P&gt;Hi Community Members,&lt;/P&gt;&lt;P&gt;Need your help to build&amp;nbsp;new table from the existing table. below is the table look like.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;As you seen in the above table, we have some duplicate id's with different status and auto_status.&lt;/P&gt;&lt;P&gt;I want to create new table using the above table , if we have any duplicate id then we consider only id who have the status= Yes and Auto_Status = Candidate for Automation only.&lt;/P&gt;&lt;P&gt;Taking example for 1st id - 1047452, need to keep only second row only because who have the status= Yes and Auto_Status = Candidate for Automation, first row should remove.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And my result table or final table look like below:-&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;Please help me to achieve this in Power query or Dax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 10:32:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4356961#M172969</guid>
      <dc:creator>AmitSaini</dc:creator>
      <dc:date>2025-01-09T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to build new table who have unique filtered data rows only from existing table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4357205#M172974</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="857894" data-lia-user-login="AmitSaini" class="lia-mention lia-mention-user"&gt;AmitSaini&lt;/a&gt;&amp;nbsp;, Create a new table using DAX&lt;/P&gt;
&lt;P&gt;NewTable = &lt;BR /&gt;FILTER (&lt;BR /&gt;ExistingTable,&lt;BR /&gt;ExistingTable[status] = "Yes" &amp;amp;&amp;amp; ExistingTable[Auto_Status] = "Candidate for Automation"&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 13:04:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4357205#M172974</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-01-09T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need to build new table who have unique filtered data rows only from existing table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4357289#M172976</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But it won't work. The dax table you suggested it gives us only the id who have &lt;SPAN&gt;status] = "Yes" and [Auto_Status] = "Candidate for Automation" and exclude others rows who have unique rows entry.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for e.g. id 1188065,1188055 and all rows from project Kodiak.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please see my Expected table output screenshot. I need unique rows entry as well.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 13:47:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4357289#M172976</guid>
      <dc:creator>AmitSaini</dc:creator>
      <dc:date>2025-01-09T13:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need to build new table who have unique filtered data rows only from existing table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4358096#M173007</link>
      <description>&lt;P&gt;Thanks for&amp;nbsp;bhanu_gautam's concern about this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="857894" data-lia-user-login="AmitSaini" class="lia-mention lia-mention-user"&gt;AmitSaini&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you could try using the following DAX:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;NewTable = 
UNION (
    FILTER (
        ExistingTable,
        ExistingTable[status] = "Yes" &amp;amp;&amp;amp; ExistingTable[Auto_Status] = "Candidate for Automation"
    ),
    FILTER (
        ExistingTable,
        COUNTROWS (
            FILTER (
                ExistingTable,
                ExistingTable[ID] = EARLIER(ExistingTable[ID])
            )
        ) = 1
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&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 attached the pbix file for this example below, I hope it helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fen Ling,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 02:53:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4358096#M173007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-10T02:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to build new table who have unique filtered data rows only from existing table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4360702#M173100</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the solution. It’s working perfectly.&lt;/P&gt;&lt;P&gt;It would be very helpful if you could provide the same solution in Power Query. This way, I can add only the final output table to my data model, rather than including the original table.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 05:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-build-new-table-who-have-unique-filtered-data-rows-only/m-p/4360702#M173100</guid>
      <dc:creator>AmitSaini</dc:creator>
      <dc:date>2025-01-13T05:02:10Z</dc:date>
    </item>
  </channel>
</rss>

