<?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: Finding the most recent value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/453083#M331</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Easier way found when I could not figure out how to do the other things people wrote:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To Display results on the report that match rules based on a date...&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit Query - Add column tab - Select Date - Filter date by rule&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jul 2018 23:20:00 GMT</pubDate>
    <dc:creator>Jsimonson</dc:creator>
    <dc:date>2018-07-02T23:20:00Z</dc:date>
    <item>
      <title>Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/116838#M201</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have survey data with multiple people taking the survey mutiple times. &amp;nbsp;Each row is a survey response with a date taken. The only way I know which is the "pre survey" and which is the post survey is by the date taken. &amp;nbsp;I would like to create a "prepost Colunm that read the date and designated pre or post. I have tried a combination of If and Max but I can't seem to get it to work.. Any tips?&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 22:50:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/116838#M201</guid>
      <dc:creator>LAndes</dc:creator>
      <dc:date>2017-01-20T22:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/116866#M202</link>
      <description>Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="20195" data-lia-user-login="LAndes" class="lia-mention lia-mention-user"&gt;LAndes&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Could you post your expression and data structure? So I quickly check it</description>
      <pubDate>Sat, 21 Jan 2017 02:06:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/116866#M202</guid>
      <dc:creator>tringuyenminh92</dc:creator>
      <dc:date>2017-01-21T02:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/117136#M203</link>
      <description>&lt;P&gt;Sure.. Here is an example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Date Talken &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Q1.&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Q2&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Q3&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Q4&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/23/2016&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;Disagree&lt;/TD&gt;&lt;TD&gt;Disagree&lt;/TD&gt;&lt;TD&gt;Neither agree or disagree&lt;/TD&gt;&lt;TD&gt;Disagree&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2/22/2016&lt;/TD&gt;&lt;TD&gt;John Smith&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9/23/2016&lt;/TD&gt;&lt;TD&gt;Jones, Nancy&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;########&lt;/TD&gt;&lt;TD&gt;Jones, Reja&lt;/TD&gt;&lt;TD&gt;Neither agree or disagree&lt;/TD&gt;&lt;TD&gt;Neither agree or disagree&lt;/TD&gt;&lt;TD&gt;Neither agree or disagree&lt;/TD&gt;&lt;TD&gt;Neither agree or disagree&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9/22/2016&lt;/TD&gt;&lt;TD&gt;Anderson, Elaine&lt;/TD&gt;&lt;TD&gt;Neither agree or disagree&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Neither agree or disagree&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9/6/2016&lt;/TD&gt;&lt;TD&gt;Anderson, Elaine&lt;/TD&gt;&lt;TD&gt;Agree&lt;/TD&gt;&lt;TD&gt;Neither Agree or Disagree&lt;/TD&gt;&lt;TD&gt;Disagree&lt;/TD&gt;&lt;TD&gt;Neither Agree or Disagree&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;See the issue?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jan 2017 20:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/117136#M203</guid>
      <dc:creator>LAndes</dc:creator>
      <dc:date>2017-01-22T20:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/117190#M204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="20195" data-lia-user-login="LAndes" class="lia-mention lia-mention-user"&gt;LAndes&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a column called MaxDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;MaxDate = &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE(MAX(yourtablename[yourDatecolumn]),FILTER(yourtablename[Name]=EARLIER(yourtablename[Name])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What this does is computes the MaxDate by Name and popluates in all records grouping by Name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Create a column called IsLatest&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; IsLatest = If([Date]=[MaxDate],"Latest","Older")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Now create a report with relevant columns from yourtablename and use IsLatest column as a Visual Level Filter filtered for "Latest".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it works please accept this as a solution and also give KUDOS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CheenuSing&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 04:36:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/117190#M204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-23T04:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/117481#M211</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Thank you- I see the logic in your approach but I am&amp;nbsp;having trouble with the synax for the "Earlier" section. Per your note, I did the following:&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;MaxDate = CALCULATE(MAX('Community Leadership Assessment (2)'[Date Talken ], FILTER('Community Leadership Assessment (2)','Community Leadership Assessment (2)'[Name]=EARLIER('Community Leadership Assessment (2)'[Name]))))&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;But i got this error-A single value for column 'Date Talken ' in table 'Community Leadership Assessment (2)' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Any thoughts?&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Anonymous&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="20195" data-lia-user-login="LAndes" class="lia-mention lia-mention-user"&gt;LAndes&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a column called MaxDate&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;MaxDate = &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALCULATE(MAX(yourtablename[yourDatecolumn]),FILTER(yourtablename[Name]=EARLIER(yourtablename[Name])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What this does is computes the MaxDate by Name and popluates in all records grouping by Name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Create a column called IsLatest&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; IsLatest = If([Date]=[MaxDate],"Latest","Older")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Now create a report with relevant columns from yourtablename and use IsLatest column as a Visual Level Filter filtered for "Latest".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it works please accept this as a solution and also give KUDOS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CheenuSing&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 15:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/117481#M211</guid>
      <dc:creator>LAndes</dc:creator>
      <dc:date>2017-01-23T15:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/117807#M212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="20195" data-lia-user-login="LAndes" class="lia-mention lia-mention-user"&gt;LAndes&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has to be a &lt;STRONG&gt;column&lt;/STRONG&gt; and not a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change it to a column and try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CheenuSing&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 04:38:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/117807#M212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-24T04:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/118172#M214</link>
      <description>&lt;P&gt;Thanks everyone. I added in a .Date into the formula and it worked. Most appreciative!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2017 15:40:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/118172#M214</guid>
      <dc:creator>LAndes</dc:creator>
      <dc:date>2017-01-24T15:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/220641#M290</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would you handle this if there was another variable?&amp;nbsp; Can you apply the filter for another category?&lt;/P&gt;&lt;P&gt;For instance, if there were surveys for two different products that could be answered by the same set of respondents.&amp;nbsp; As in the original problem, each respondent could answer the survey multiple times.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you determine the most recent date that Responder 1 took the survey for&amp;nbsp;Product A out of multiple submissions&amp;nbsp;to&amp;nbsp;Product A's survey, which is separart from the most recent date that Responder 1 took the survey for&amp;nbsp;Product B out of multiple submissions to&amp;nbsp;Product B's survey?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I would want to know:&lt;/P&gt;&lt;P&gt;Survey Type:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Responder 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Most recent date of Product A survey&lt;/P&gt;&lt;P&gt;Product B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Responder 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Most recent date of Product B survey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 00:15:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/220641#M290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-28T00:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/274143#M296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is your query from 7/28 resolved?&lt;/P&gt;&lt;P&gt;If not, here is what you can try - You can create a new column where you can CONCATENATE(ResponderName,Productname) and use it in&amp;nbsp;EARLIER function per CheenuSing's suggestion. Or you can try adding two filters with EARLIER function.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 09:33:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/274143#M296</guid>
      <dc:creator>ShrikantKhanna</dc:creator>
      <dc:date>2017-10-10T09:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/375276#M312</link>
      <description>&lt;P&gt;Is there any way this can be done in the "Edit Query" section rather than at the visualization step? I am looking to filter this in the query editor to create a unique list of values to create a relationship between tables. So, that needs to be done at the query level as compared to the visualization level. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I attempted the Calculate formula listed above and the custom column editor gave me a "The name Calculate wasnt recognized"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 14:54:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/375276#M312</guid>
      <dc:creator>robertlowens266</dc:creator>
      <dc:date>2018-03-13T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/376588#M314</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="57820" data-lia-user-login="robertlowens266" class="lia-mention lia-mention-user"&gt;robertlowens266&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can do that in Power Query as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The approach is to find the MaxDate grouped by Name. And then add a column IsLatest by comparing the date and MaxDate .&lt;/P&gt;&lt;P&gt;derived. My test table had only 3 coulmns Date,Name and Response and 13000 rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is as under&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source = Excel.Workbook(File.Contents("C:\PowerBICommunity\SampleData.xlsx"), null, true),&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sheet1_Sheet = Source{[Item="Sheet1",Kind="Sheet"]}[Data],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Promoted Headers" = Table.PromoteHeaders(Sheet1_Sheet, [PromoteAllScalars=true]),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"ChangedType" = Table.TransformColumnTypes(#"Promoted Headers",{{"Date", type date}, {"Name", type text}, {"Response", type text}}),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;/* First Group by Name and Arrive at the MaxDate by Name */&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; GroupbyName = Table.Group(ChangedType, {"Name"}, {{"MaxDate", each List.Max([Date]), type date}}),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;/*&amp;nbsp; Do a&amp;nbsp;selfJoin with the all records previously loaded using Name as common field */&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Merged Queries" = Table.NestedJoin(ChangedType,{"Name"},GroupbyName,{"Name"},"GroupedOnLetter",JoinKind.LeftOuter),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;/* Expand the merged Table to select only the MAx Date */&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Expanded GroupedOnLetter" = Table.ExpandTableColumn(#"Merged Queries", "GroupedOnLetter", {"MaxDate"}, {"GroupedOnLetter.MaxDate"}),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;/* Rename the column */&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Renamed Columns" = Table.RenameColumns(#"Expanded GroupedOnLetter",{{"GroupedOnLetter.MaxDate", "MaxDate"}}),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;/* Lastly add the custom column IsLAtest by doing the comparision */&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Added Conditional Column" = Table.AddColumn(#"Renamed Columns", "IsLatest", each if [MaxDate] = [Date] then "Yes" else "No")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #"Added Conditional Column"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested this on a 13000 rows in excel and it is very fast.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test it out and feedback. And if it works please do give KUDOS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CheenuSing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 03:40:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/376588#M314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-15T03:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/377006#M315</link>
      <description>&lt;P&gt;Worked great! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 13:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/377006#M315</guid>
      <dc:creator>robertlowens266</dc:creator>
      <dc:date>2018-03-15T13:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/428423#M328</link>
      <description>&lt;P&gt;What if we want to calculate it dynamicaly, like if the date range is changed max date will now be recalculated.&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 11:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/428423#M328</guid>
      <dc:creator>kohlivinayak</dc:creator>
      <dc:date>2018-05-30T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/453083#M331</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Easier way found when I could not figure out how to do the other things people wrote:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To Display results on the report that match rules based on a date...&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Edit Query - Add column tab - Select Date - Filter date by rule&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 23:20:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/453083#M331</guid>
      <dc:creator>Jsimonson</dc:creator>
      <dc:date>2018-07-02T23:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/463851#M335</link>
      <description>&lt;P&gt;Hi , But this will work only for latest date but i need to time travel, For example, I can select earlier dates then i need to see the on that particular date state how we can do, here the problem is it filter with latest event but when i am selecting some other dates as filter then it will now showing the event counts how we can achieve&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 06:42:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/463851#M335</guid>
      <dc:creator>deeptiraj</dc:creator>
      <dc:date>2018-07-17T06:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/465572#M336</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Is there any way to make the IsLatest work according to slicers?&lt;/P&gt;&lt;P&gt;As in if I have selected April, IsLatest is applied only to April and if I have selected a year the IsLatest is applied to the whole year?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jul 2018 13:01:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/465572#M336</guid>
      <dc:creator>Vishwanathraoyl</dc:creator>
      <dc:date>2018-07-18T13:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/469983#M338</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="72109" data-lia-user-login="Vishwanathraoyl" class="lia-mention lia-mention-user"&gt;Vishwanathraoyl&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the delayed response.&amp;nbsp; Can you please put some data and the output expected on google drive or one drive and share the linke here.&amp;nbsp; This will enable me understand your requirement better and provide a soultion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CheenuSing&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 04:09:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/469983#M338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-24T04:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/470164#M339</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;The below code works well for my requirement:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;KPI= COUNTROWS (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FILTER (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADDCOLUMNS (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALCULATETABLE (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUMMARIZE (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table1',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'Table1'[ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Table1[SalesRepName],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Rep",Table1[SalesRepName],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "POP", 'Table1'[ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Latest", MAX ( 'Table1'[Date] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),Table1[KPI] in {0,1}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Response", LOOKUPVALUE (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Tabke1'[KPI],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table1'[ID], [POP],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Table1[SalesRepName],[Rep],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table1'[ActivationStandard],1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Table1'[Date], [Latest]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Response]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I basically wanted to make it so that the "Latest" is dynamic by the date filter as I'm building a dynamic reporting on a few surveys which should ideally not require republishing. This makes it so.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jul 2018 07:24:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/470164#M339</guid>
      <dc:creator>Vishwanathraoyl</dc:creator>
      <dc:date>2018-07-24T07:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/484446#M343</link>
      <description>&lt;P&gt;Thanks A LOT for this.&amp;nbsp; Very helpful, and thanks for the explanation along the way!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could not get it to work, but after a lot of looking and researching, I noticed one parameter on the FILTER was left out by accident.&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;&lt;P&gt;I got it to work with adding "yourtablename" as the first paramber in the FILTER:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;CALCULATE(MAX(yourtablename[yourDatecolumn]),FILTER(yourtablename, yourtablename[Name]=EARLIER(yourtablename[Name])))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 20:55:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/484446#M343</guid>
      <dc:creator>JohnH</dc:creator>
      <dc:date>2018-08-08T20:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the most recent value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/506336#M344</link>
      <description>&lt;P&gt;Help pelase, the column is not avalaible in real time dataset, i am getting stock becouse i need the last record of&amp;nbsp; x types....&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 00:00:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Finding-the-most-recent-value/m-p/506336#M344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-04T00:00:58Z</dc:date>
    </item>
  </channel>
</rss>

