<?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: Creating Table B from Table A with Specific Conditions and Aggregation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Table-B-from-Table-A-with-Specific-Conditions-and/m-p/3572305#M137732</link>
    <description>&lt;P&gt;thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 11:01:55 GMT</pubDate>
    <dc:creator>minseon</dc:creator>
    <dc:date>2023-12-07T11:01:55Z</dc:date>
    <item>
      <title>Creating Table B from Table A with Specific Conditions and Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Table-B-from-Table-A-with-Specific-Conditions-and/m-p/3571552#M137698</link>
      <description>&lt;P&gt;Hi all&lt;BR /&gt;i have issue during makeing new table&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;Table A has columns ITEM_CD, B_CD, DEPT_CD, C_NO, CREATED_AT, and MASK_YN. I want to create a new table B from this table with the following conditions.&lt;BR /&gt;&lt;BR /&gt;1. table B has 4 columns. item_cd, B_CD, dept_cd, created_at&lt;BR /&gt;2.table A MASK_YN = 'Y'&lt;BR /&gt;3. the ITEM_CD column in B has the fastest CREATED_AT per ITEM_CD in A table&lt;BR /&gt;4. the ITEM_CD column in B must be a unique value&lt;BR /&gt;5. the B_CD, DEPT_CD, CREATED_AT column values in table B are the B_CD, DEPT_CD, CREATED_AT column values that map to the A table ITEM_CD column values based on the ITEM_CD extracted in step 3.&lt;BR /&gt;&lt;BR /&gt;I tried below, but it didn't work&lt;BR /&gt;result tbale has duplicated item_cd&lt;BR /&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you solve this issue??&lt;BR /&gt;&lt;BR /&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 02:03:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Table-B-from-Table-A-with-Specific-Conditions-and/m-p/3571552#M137698</guid>
      <dc:creator>minseon</dc:creator>
      <dc:date>2023-12-07T02:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Table B from Table A with Specific Conditions and Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Table-B-from-Table-A-with-Specific-Conditions-and/m-p/3572060#M137717</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="645315" data-lia-user-login="minseon" class="lia-mention lia-mention-user"&gt;minseon&lt;/a&gt;&amp;nbsp;Try the following DAX,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TableB = 
SUMMARIZE(
    FILTER(
        'TableA',
        'TableA'[MASK_YN] = "Y"
    ),
    [ITEM_CD],
    "B_CD", MAX('TableA'[B_CD]),
    "DEPT_CD", MAX('TableA'[DEPT_CD]),
    "CREATED_AT", CALCULATE(MAX('TableA'[CREATED_AT]), ALLEXCEPT('TableA', 'TableA'[ITEM_CD]))
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 07 Dec 2023 09:33:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Table-B-from-Table-A-with-Specific-Conditions-and/m-p/3572060#M137717</guid>
      <dc:creator>ChiragGarg2512</dc:creator>
      <dc:date>2023-12-07T09:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Table B from Table A with Specific Conditions and Aggregation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Table-B-from-Table-A-with-Specific-Conditions-and/m-p/3572305#M137732</link>
      <description>&lt;P&gt;thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 11:01:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Table-B-from-Table-A-with-Specific-Conditions-and/m-p/3572305#M137732</guid>
      <dc:creator>minseon</dc:creator>
      <dc:date>2023-12-07T11:01:55Z</dc:date>
    </item>
  </channel>
</rss>

