<?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: Display Only those records where date is latest in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4405354#M174879</link>
    <description>&lt;P&gt;Yes this works fine. But its affecting other Dax too.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 14:47:53 GMT</pubDate>
    <dc:creator>NG1407</dc:creator>
    <dc:date>2025-02-11T14:47:53Z</dc:date>
    <item>
      <title>Display Only those records where date is latest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4396668#M174559</link>
      <description>&lt;P&gt;I want to display data only for those student where date is latest. I dont want to show old dates associated with that student.&lt;/P&gt;&lt;P&gt;I want to do it in power bi /dax&lt;/P&gt;&lt;P&gt;PFB data:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Student&lt;/TD&gt;&lt;TD&gt;startdate&lt;/TD&gt;&lt;TD&gt;enddate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1-jan-2022&lt;/TD&gt;&lt;TD&gt;10-dec-2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1-jan-2022&lt;/TD&gt;&lt;TD&gt;25-jul-2023&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1-jan-2022&lt;/TD&gt;&lt;TD&gt;15-jan-2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4-apr-2023&lt;/TD&gt;&lt;TD&gt;10-dec-2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4-apr-2023&lt;/TD&gt;&lt;TD&gt;11-dec-2022&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4-apr-2023&lt;/TD&gt;&lt;TD&gt;25-jul-2023&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Result I want&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Student&lt;/TD&gt;&lt;TD&gt;startdate&lt;/TD&gt;&lt;TD&gt;enddate&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1-jan-2022&lt;/TD&gt;&lt;TD&gt;15-jan-2025&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;4-apr-2023&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;25-jul-2023&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 05 Feb 2025 15:30:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4396668#M174559</guid>
      <dc:creator>NG1407</dc:creator>
      <dc:date>2025-02-05T15:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only those records where date is latest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4396675#M174560</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659067" data-lia-user-login="NG1407" class="lia-mention lia-mention-user"&gt;NG1407&lt;/a&gt;&amp;nbsp;, Go to modelling and create a new table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LatestRecords = &lt;BR /&gt;VAR LatestDates = &lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;SUMMARIZE(&lt;BR /&gt;YourTable, &lt;BR /&gt;YourTable[Student], &lt;BR /&gt;"LatestEndDate", MAX(YourTable[enddate])&lt;BR /&gt;),&lt;BR /&gt;"startdate", &lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX(YourTable[startdate]), &lt;BR /&gt;YourTable[enddate] = [LatestEndDate]&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;LatestDates,&lt;BR /&gt;"Student", [Student],&lt;BR /&gt;"startdate", [startdate],&lt;BR /&gt;"enddate", [LatestEndDate]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 15:36:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4396675#M174560</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-05T15:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only those records where date is latest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4396894#M174576</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659067" data-lia-user-login="NG1407" class="lia-mention lia-mention-user"&gt;NG1407&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a calculated column in the table to flag the first date of each student.&lt;/P&gt;&lt;P&gt;Last_Date_Flag =&lt;BR /&gt;VAR A =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAX('Table'[EndDate]),&lt;BR /&gt;ALLEXCEPT('Table', 'Table'[StudentID])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF(A = 'Table'[EndDate], 1, 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Put this column to the visual level filter and filter 1. This way you will be able to show any data related to the last date for each student.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution! And Kudos are appreciated&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 20:39:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4396894#M174576</guid>
      <dc:creator>sangeethray_92</dc:creator>
      <dc:date>2025-02-05T20:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only those records where date is latest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4396910#M174578</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659067" data-lia-user-login="NG1407" class="lia-mention lia-mention-user"&gt;NG1407&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;you can create this type of measure to find&amp;nbsp;&lt;SPAN&gt;latest date&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;latest date = CALCULATE(MAX('Table (4)'[enddate]),ALLEXCEPT('Table (4)','Table (4)'[Student]))&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;helps&lt;/EM&gt;, then please give us Kudos and consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as a solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2025 17:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4396910#M174578</guid>
      <dc:creator>vivek31</dc:creator>
      <dc:date>2025-02-05T17:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only those records where date is latest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4404930#M174860</link>
      <description>&lt;P&gt;You solution works well when we have same records. It doesn't work when we have different records. As shown below&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Result its giving...&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Result it should give is: Latest date records only i.e.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Student&lt;/TD&gt;&lt;TD&gt;date&lt;/TD&gt;&lt;TD&gt;Remarks&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2/3/2023&lt;/TD&gt;&lt;TD&gt;Good&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2/3/2025&lt;/TD&gt;&lt;TD&gt;Good&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 11 Feb 2025 10:59:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4404930#M174860</guid>
      <dc:creator>NG1407</dc:creator>
      <dc:date>2025-02-11T10:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only those records where date is latest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4404938#M174861</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659067" data-lia-user-login="NG1407" class="lia-mention lia-mention-user"&gt;NG1407&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried this?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 11:03:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4404938#M174861</guid>
      <dc:creator>sangeethray_92</dc:creator>
      <dc:date>2025-02-11T11:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only those records where date is latest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4405354#M174879</link>
      <description>&lt;P&gt;Yes this works fine. But its affecting other Dax too.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 14:47:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4405354#M174879</guid>
      <dc:creator>NG1407</dc:creator>
      <dc:date>2025-02-11T14:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Display Only those records where date is latest</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4405494#M174895</link>
      <description>&lt;P&gt;Can you show an example?&amp;nbsp;&lt;BR /&gt;When visualizing how it is effecting other measures?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;May be it will get fixed if you ignore this column in other measures. Adding all with this new column in other measures.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 16:20:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-Only-those-records-where-date-is-latest/m-p/4405494#M174895</guid>
      <dc:creator>sangeethray_92</dc:creator>
      <dc:date>2025-02-11T16:20:25Z</dc:date>
    </item>
  </channel>
</rss>

