<?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: Latest data using Group by in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Latest-data-using-Group-by/m-p/1726508#M28409</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/97881"&gt;@Kavya123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQ2M1bSUXJ0dASSRgZGBrqWusYGSrE6cCknJyeIlKEuEFoiSzk7I2SMUDS5uLjAzLPQNTJDlnJzc8NlnqurK6qBsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [id = _t, Desc = _t, Date = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"id", Int64.Type}, {"Desc", type text}, {"Date", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"id"}, {{"Max", each List.Max([Date]), type nullable date}, {"S", each _, type table [id=nullable number, Desc=nullable text, Date=nullable date]}}),
    #"Added Custom" = Table.AddColumn(#"Grouped Rows", "Custom", each Table.SelectRows(
     [S],
     (itable) =&amp;gt; itable[Date]=[Max])),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Desc"}, {"Desc"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded Custom",{"S"})
in
    #"Removed Columns"&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V-lianl-msft_0-1615959206017.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/475634i61589B8CF2702FFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="V-lianl-msft_0-1615959206017.png" alt="V-lianl-msft_0-1615959206017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 05:33:50 GMT</pubDate>
    <dc:creator>V-lianl-msft</dc:creator>
    <dc:date>2021-03-17T05:33:50Z</dc:date>
    <item>
      <title>Latest data using Group by</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Latest-data-using-Group-by/m-p/1721269#M28366</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to have a new desc column based on&amp;nbsp; the latest data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For ex: If ID is 1363 then new Desc is CC ( Max date&amp;nbsp;1/20/2021 9:11:12 PM)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to achieve this.&amp;nbsp; Please find the sample data and resultant output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/473909i85B38CD9ACE7BE7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 02:53:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Latest-data-using-Group-by/m-p/1721269#M28366</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-03-15T02:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data using Group by</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Latest-data-using-Group-by/m-p/1726508#M28409</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/97881"&gt;@Kavya123&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjQ2M1bSUXJ0dASSRgZGBrqWusYGSrE6cCknJyeIlKEuEFoiSzk7I2SMUDS5uLjAzLPQNTJDlnJzc8NlnqurK6qBsQA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [id = _t, Desc = _t, Date = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"id", Int64.Type}, {"Desc", type text}, {"Date", type date}}),
    #"Grouped Rows" = Table.Group(#"Changed Type", {"id"}, {{"Max", each List.Max([Date]), type nullable date}, {"S", each _, type table [id=nullable number, Desc=nullable text, Date=nullable date]}}),
    #"Added Custom" = Table.AddColumn(#"Grouped Rows", "Custom", each Table.SelectRows(
     [S],
     (itable) =&amp;gt; itable[Date]=[Max])),
    #"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Desc"}, {"Desc"}),
    #"Removed Columns" = Table.RemoveColumns(#"Expanded Custom",{"S"})
in
    #"Removed Columns"&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="V-lianl-msft_0-1615959206017.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/475634i61589B8CF2702FFF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="V-lianl-msft_0-1615959206017.png" alt="V-lianl-msft_0-1615959206017.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Liang&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 05:33:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Latest-data-using-Group-by/m-p/1726508#M28409</guid>
      <dc:creator>V-lianl-msft</dc:creator>
      <dc:date>2021-03-17T05:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Latest data using Group by</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Latest-data-using-Group-by/m-p/1727317#M28423</link>
      <description>&lt;P&gt;Thanks for your reply. I got the solution&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 10:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Latest-data-using-Group-by/m-p/1727317#M28423</guid>
      <dc:creator>Kavya123</dc:creator>
      <dc:date>2021-03-17T10:29:43Z</dc:date>
    </item>
  </channel>
</rss>

