<?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: DAX Measure for Max Column Value Based on Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Max-Column-Value-Based-on-Date/m-p/3747282#M146159</link>
    <description>&lt;P&gt;Do a grouping on the company id and&amp;nbsp; position and aggregate by max appointment_date, but add a "all rows" aggregate.&lt;/P&gt;
&lt;P&gt;Then expand the tables back out (without the company id and position fields) and then mark all rows where the appointment_date matches the max appointment date.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Mar 2024 23:47:37 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-03-06T23:47:37Z</dc:date>
    <item>
      <title>DAX Measure for Max Column Value Based on Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Max-Column-Value-Based-on-Date/m-p/3747063#M146147</link>
      <description>&lt;P&gt;Hey everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been at this for a while, it feels like it shouldnt be this hard. Any help greatly appreciatied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table of data with Corporate Officers - I want to show the MAX DATE or MOST RECENT DATE for each Officer Position. In other words, if we appoint a new Secretary, President etc. in this expression I only want to show the MOST RECENTLY appointed officer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a sample of the table - highlighted are the officers that have been superceeded by new appointees.&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;&lt;P&gt;Thank again!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 21:11:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Max-Column-Value-Based-on-Date/m-p/3747063#M146147</guid>
      <dc:creator>amart</dc:creator>
      <dc:date>2024-03-06T21:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure for Max Column Value Based on Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Max-Column-Value-Based-on-Date/m-p/3747282#M146159</link>
      <description>&lt;P&gt;Do a grouping on the company id and&amp;nbsp; position and aggregate by max appointment_date, but add a "all rows" aggregate.&lt;/P&gt;
&lt;P&gt;Then expand the tables back out (without the company id and position fields) and then mark all rows where the appointment_date matches the max appointment date.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 23:47:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Max-Column-Value-Based-on-Date/m-p/3747282#M146159</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-03-06T23:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure for Max Column Value Based on Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Max-Column-Value-Based-on-Date/m-p/3748103#M146188</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454948" data-lia-user-login="amart" class="lia-mention lia-mention-user"&gt;amart&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your requirement is to keep the row with the largest appointment_date if company_id and position are same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please follow my steps if I understand you correctly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My approach is somewhat similar to &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;is, with slight differences in the details, thank him very much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to Power Query and select company_id and position columns for group by.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To this step has realized your needs.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pbix file is attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 07:51:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-Max-Column-Value-Based-on-Date/m-p/3748103#M146188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-07T07:51:28Z</dc:date>
    </item>
  </channel>
</rss>

