<?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: Last Max Value of Related Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Max-Value-of-Related-Column/m-p/2425757#M64418</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19073" data-lia-user-login="jakeryan56" class="lia-mention lia-mention-user"&gt;jakeryan56&lt;/a&gt; , new column in case table&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;new column = &lt;BR /&gt;var _case = maxx(filter(Cases_Tasks, Cases_Tasks[ID] = Cases[ID]) , Cases_Tasks[date_started]) &lt;BR /&gt;return &lt;BR /&gt;maxx(filter(Cases_Tasks, Cases_Tasks[ID] = Cases[ID] &amp;amp;&amp;amp; Cases_Tasks[date_started] = _max) , Cases_Tasks[Task_name])&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Mar 2022 03:44:00 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-03-30T03:44:00Z</dc:date>
    <item>
      <title>Last Max Value of Related Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Max-Value-of-Related-Column/m-p/2425731#M64415</link>
      <description>&lt;P&gt;Hi all.&amp;nbsp; Just having a mind blank here but I have two related tables - Cases and Cases_Tasks.&lt;/P&gt;&lt;P&gt;I've illustrated a simplified version of this below but for each case, I need to know the latest task_name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:18:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Max-Value-of-Related-Column/m-p/2425731#M64415</guid>
      <dc:creator>jakeryan56</dc:creator>
      <dc:date>2022-03-30T03:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last Max Value of Related Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Max-Value-of-Related-Column/m-p/2425757#M64418</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19073" data-lia-user-login="jakeryan56" class="lia-mention lia-mention-user"&gt;jakeryan56&lt;/a&gt; , new column in case table&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;new column = &lt;BR /&gt;var _case = maxx(filter(Cases_Tasks, Cases_Tasks[ID] = Cases[ID]) , Cases_Tasks[date_started]) &lt;BR /&gt;return &lt;BR /&gt;maxx(filter(Cases_Tasks, Cases_Tasks[ID] = Cases[ID] &amp;amp;&amp;amp; Cases_Tasks[date_started] = _max) , Cases_Tasks[Task_name])&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:44:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Max-Value-of-Related-Column/m-p/2425757#M64418</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-30T03:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Last Max Value of Related Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Max-Value-of-Related-Column/m-p/2425765#M64419</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&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;LI-CODE lang="markup"&gt;Lastest task name measure: =
VAR latestdate =
    MAX ( Cases_Tasks[date_started] )
VAR filtertable =
    FILTER ( Cases_Tasks, Cases_Tasks[date_started] = latestdate )
RETURN
    IF (
        HASONEVALUE ( 'Cases'[case_id] ),
        MAXX ( filtertable, Cases_Tasks[task_name] )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 30 Mar 2022 03:51:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-Max-Value-of-Related-Column/m-p/2425765#M64419</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-03-30T03:51:17Z</dc:date>
    </item>
  </channel>
</rss>

