<?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 Remove Duplicates by keeping highest value in another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3217926#M117528</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to remove duplicates of 'Part#/Site' (Merged column) from a table 'packaging dump sheet'; keeping the highest 'revision' number for each 'Part#/site'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recreated a measure form another post but it did not work- returns only 0s no 1s (See below)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam P&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 13:28:18 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-05-03T13:28:18Z</dc:date>
    <item>
      <title>Remove Duplicates by keeping highest value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3217926#M117528</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to remove duplicates of 'Part#/Site' (Merged column) from a table 'packaging dump sheet'; keeping the highest 'revision' number for each 'Part#/site'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recreated a measure form another post but it did not work- returns only 0s no 1s (See below)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Any help much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adam P&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 13:28:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3217926#M117528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T13:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicates by keeping highest value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3218742#M117584</link>
      <description>&lt;P&gt;Hello Adam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the DAX you screenshotted as a calculated column, not as a measure. If that doesn't work, try the below instead (as a calculated column):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column = 
VAR PartSite = 'Packaging Dump Sheet'[Part#/Site]
VAR Revision = 'Packaging Dump Sheet'[ Revision ]
VAR FilteredTable =
FILTER (
    'Packaging Dump Sheet',
    'Packaging Dump Sheet'[Part#/Site] = PartSite
)
VAR MaxRevision =
MAXX (
    FilteredTable,
    'Packaging Dump Sheet'[ Revision ]
)
VAR Result = IF ( Revision = MaxRevision, 1, 0 )

RETURN Result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S.: For future reference, if you share your measure as a screenshot instead of text, you add friction to the process of helping you; somebody would have to re-type out your entire measure to re-create it instead of just copy pasting. Help us help you. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;----------------------------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;If this post helps, please consider accepting it as the solution to help other members find it quickly. Also, don't forget to hit that thumbs up and subscribe! (Oh, uh, wrong platform?)&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 22:27:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3218742#M117584</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-05-03T22:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicates by keeping highest value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3219478#M117630</link>
      <description>&lt;P&gt;Hi Wilson,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnak you that has solved the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will make sure to copy/paste my syntax rather than provide a screenshot next time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards, Adam P &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 08:24:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3219478#M117630</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-04T08:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicates by keeping highest value in another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3219916#M117671</link>
      <description>&lt;P&gt;Excellent, happy to help Adam. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 12:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Remove-Duplicates-by-keeping-highest-value-in-another-column/m-p/3219916#M117671</guid>
      <dc:creator>Wilson_</dc:creator>
      <dc:date>2023-05-04T12:31:33Z</dc:date>
    </item>
  </channel>
</rss>

