<?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 Column value based on Latest date and category filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-based-on-Latest-date-and-category-filter/m-p/3127135#M111109</link>
    <description>&lt;P&gt;Hi&amp;nbsp;@Community!!!&lt;BR /&gt;I am having table "Student" as below&lt;/P&gt;&lt;P&gt;id name&lt;/P&gt;&lt;P&gt;1 sam&lt;/P&gt;&lt;P&gt;2 kind&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and "Student Activity" as below&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;student_id status date reported_to&lt;/P&gt;&lt;P&gt;1 started 12/03/2023 bingston&lt;/P&gt;&lt;P&gt;1 break 14/03/2023 rithu&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1 started 15/03/2023 rithivi&lt;/P&gt;&lt;P&gt;1 finished 17/03/2023 kiwn&lt;/P&gt;&lt;P&gt;2 started 19/04/2023 ram&lt;/P&gt;&lt;P&gt;2 break 20/04/2023 dithirn&lt;BR /&gt;&lt;BR /&gt;2 started 21/04/2023 rahul&lt;BR /&gt;2 break 24/04/2023 rahul&lt;BR /&gt;2 finished 25/04/2023 nivin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Student table has relationship with Student activity with id and student_id respectively&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to find the "reported to "column value for each student for the latest date in status with started or break as status and add it as a calculated column(latest_reported_person) to Student Table&lt;/P&gt;&lt;P&gt;for example student id 1 has latest date 15/03/2023 in started and the reported_to column value is rithivi&lt;BR /&gt;similarly student id 2 has latest date 24/03/2023 in break status and the reported_to column value is rahul&lt;BR /&gt;&lt;BR /&gt;How to achieve this with DAX?&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 07:43:45 GMT</pubDate>
    <dc:creator>santhiya</dc:creator>
    <dc:date>2023-03-13T07:43:45Z</dc:date>
    <item>
      <title>Column value based on Latest date and category filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-based-on-Latest-date-and-category-filter/m-p/3127135#M111109</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Community!!!&lt;BR /&gt;I am having table "Student" as below&lt;/P&gt;&lt;P&gt;id name&lt;/P&gt;&lt;P&gt;1 sam&lt;/P&gt;&lt;P&gt;2 kind&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and "Student Activity" as below&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;student_id status date reported_to&lt;/P&gt;&lt;P&gt;1 started 12/03/2023 bingston&lt;/P&gt;&lt;P&gt;1 break 14/03/2023 rithu&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;1 started 15/03/2023 rithivi&lt;/P&gt;&lt;P&gt;1 finished 17/03/2023 kiwn&lt;/P&gt;&lt;P&gt;2 started 19/04/2023 ram&lt;/P&gt;&lt;P&gt;2 break 20/04/2023 dithirn&lt;BR /&gt;&lt;BR /&gt;2 started 21/04/2023 rahul&lt;BR /&gt;2 break 24/04/2023 rahul&lt;BR /&gt;2 finished 25/04/2023 nivin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Student table has relationship with Student activity with id and student_id respectively&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to find the "reported to "column value for each student for the latest date in status with started or break as status and add it as a calculated column(latest_reported_person) to Student Table&lt;/P&gt;&lt;P&gt;for example student id 1 has latest date 15/03/2023 in started and the reported_to column value is rithivi&lt;BR /&gt;similarly student id 2 has latest date 24/03/2023 in break status and the reported_to column value is rahul&lt;BR /&gt;&lt;BR /&gt;How to achieve this with DAX?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 07:43:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-based-on-Latest-date-and-category-filter/m-p/3127135#M111109</guid>
      <dc:creator>santhiya</dc:creator>
      <dc:date>2023-03-13T07:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Column value based on Latest date and category filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-based-on-Latest-date-and-category-filter/m-p/3127174#M111113</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475716" data-lia-user-login="santhiya" class="lia-mention lia-mention-user"&gt;santhiya&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
  VAR __MaxDate = MAXX(FILTER(RELATEDTABLE('Activity'),[status]="started"),[date])
  VAR __ReportedTo = MAXX(FILTER(RELATEDTABLE('Activity'),[status]="started" &amp;amp;&amp;amp; [date] = __MaxDate),[reported_to)
RETURN
  __ReportedTo&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 13 Mar 2023 07:52:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-value-based-on-Latest-date-and-category-filter/m-p/3127174#M111113</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2023-03-13T07:52:31Z</dc:date>
    </item>
  </channel>
</rss>

