<?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 Visual Showing Duplicate Records when I only want the max! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568268#M137564</link>
    <description>&lt;P&gt;Hi, I am trying to show the latest date for a given ID and show corresponding information for that record in a table visual. The dax works well but only when i show the ID. when i bring in other fields from the same table it duplictes the id as there may be different names. all i want to show is the record for the mx date. Can anyone help please i'ts driving me mad! Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dax is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Latest Status =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;Max_Date&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date Selection - Contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[CreatedOn]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[DBName-Contact_Id]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[CreatedOn]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;Max_Date&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;See attached screenshots of what shows with the DBName-Contact_Id alone versus brining in an additional field from the contact table. Thanks in advance!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 05 Dec 2023 11:16:42 GMT</pubDate>
    <dc:creator>debenaire</dc:creator>
    <dc:date>2023-12-05T11:16:42Z</dc:date>
    <item>
      <title>Visual Showing Duplicate Records when I only want the max!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568268#M137564</link>
      <description>&lt;P&gt;Hi, I am trying to show the latest date for a given ID and show corresponding information for that record in a table visual. The dax works well but only when i show the ID. when i bring in other fields from the same table it duplictes the id as there may be different names. all i want to show is the record for the mx date. Can anyone help please i'ts driving me mad! Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dax is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Latest Status =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;Max_Date&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date Selection - Contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[CreatedOn]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[DBName-Contact_Id]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;'contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[CreatedOn]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;Max_Date&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;See attached screenshots of what shows with the DBName-Contact_Id alone versus brining in an additional field from the contact table. Thanks in advance!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Dec 2023 11:16:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568268#M137564</guid>
      <dc:creator>debenaire</dc:creator>
      <dc:date>2023-12-05T11:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Showing Duplicate Records when I only want the max!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568306#M137566</link>
      <description>&lt;P&gt;The filter context of your first visual has 2 names, so does a calculation on both names returning your last status calculation's result on both names. I think you can remove this with adding &lt;STRONG&gt;ALL(yourtable[name])&lt;/STRONG&gt; as a parameter to CALCULATE.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 11:38:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568306#M137566</guid>
      <dc:creator>ray_codex</dc:creator>
      <dc:date>2023-12-05T11:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Showing Duplicate Records when I only want the max!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568321#M137567</link>
      <description>&lt;P&gt;thank you so do you mean removing the values part of the fliter? are you able to rewrite? i thought i may need this as i want to make sure there is only a value per dbname-id? thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 11:46:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568321#M137567</guid>
      <dc:creator>debenaire</dc:creator>
      <dc:date>2023-12-05T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Showing Duplicate Records when I only want the max!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568360#M137570</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Latest Status =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Max_Date&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date Selection - Contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[CreatedOn]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;values&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[DBName-Contact_Id]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'contacts'&lt;/SPAN&gt;&lt;SPAN&gt;[CreatedOn]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Max_Date, ALL('contacts'[Name])&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 Dec 2023 12:18:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568360#M137570</guid>
      <dc:creator>ray_codex</dc:creator>
      <dc:date>2023-12-05T12:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Showing Duplicate Records when I only want the max!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568443#M137576</link>
      <description>&lt;P&gt;thanks but values still show&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 13:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Visual-Showing-Duplicate-Records-when-I-only-want-the-max/m-p/3568443#M137576</guid>
      <dc:creator>debenaire</dc:creator>
      <dc:date>2023-12-05T13:02:10Z</dc:date>
    </item>
  </channel>
</rss>

