<?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: How to achieve the function of arg_max() from Kusto in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-the-function-of-arg-max-from-Kusto/m-p/3658392#M141749</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Thank you, you are a lifesaver.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 01:18:41 GMT</pubDate>
    <dc:creator>siwfy</dc:creator>
    <dc:date>2024-01-25T01:18:41Z</dc:date>
    <item>
      <title>How to achieve the function of arg_max() from Kusto</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-the-function-of-arg-max-from-Kusto/m-p/3657376#M141700</link>
      <description>&lt;P&gt;Hi all, I am new to Power BI and I need some help with DAX here. I have an existing table like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a new table based on column [CreatedDate], extracting the latest records for each Site. From the example above, the latest record for Site A is from&amp;nbsp;1/1/2024 and Site B from&amp;nbsp;11/1/2023, giving us the new table as follows:&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;In Kusto, we can achieve this easily with arg_max() operator. I wonder anyone can help me compose the DAX query here. It would be much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 14:44:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-the-function-of-arg-max-from-Kusto/m-p/3657376#M141700</guid>
      <dc:creator>siwfy</dc:creator>
      <dc:date>2024-01-24T14:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve the function of arg_max() from Kusto</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-the-function-of-arg-max-from-Kusto/m-p/3657786#M141729</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result table = 
CALCULATETABLE (
    Data,
    TREATAS (
        GROUPBY (
            Data,
            Data[Site],
            "@maxdate", MAXX ( CURRENTGROUP (), Data[CreatedDate] )
        ),
        Data[Site],
        Data[CreatedDate]
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 24 Jan 2024 17:52:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-the-function-of-arg-max-from-Kusto/m-p/3657786#M141729</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-01-24T17:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to achieve the function of arg_max() from Kusto</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-the-function-of-arg-max-from-Kusto/m-p/3658392#M141749</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;Thank you, you are a lifesaver.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 01:18:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-achieve-the-function-of-arg-max-from-Kusto/m-p/3658392#M141749</guid>
      <dc:creator>siwfy</dc:creator>
      <dc:date>2024-01-25T01:18:41Z</dc:date>
    </item>
  </channel>
</rss>

