<?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 Get value of Last Row within an unfixed range in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064248#M161345</link>
    <description>&lt;P&gt;To the experts:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I go from the 1sts column raw data to get results of the 2nd and 3rd column? Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eleanor&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2024 17:24:10 GMT</pubDate>
    <dc:creator>ewu</dc:creator>
    <dc:date>2024-07-26T17:24:10Z</dc:date>
    <item>
      <title>Get value of Last Row within an unfixed range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064248#M161345</link>
      <description>&lt;P&gt;To the experts:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could I go from the 1sts column raw data to get results of the 2nd and 3rd column? Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eleanor&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 17:24:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064248#M161345</guid>
      <dc:creator>ewu</dc:creator>
      <dc:date>2024-07-26T17:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of Last Row within an unfixed range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064266#M161346</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Output =
CALCULATE (
    MAX ( 'Table'[Date] ),
    ALLEXCEPT (
        'Table',
        'Table'[Type]
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;There is one less row for 'A' in my data&lt;BR /&gt;&lt;BR /&gt;&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;</description>
      <pubDate>Fri, 26 Jul 2024 17:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064266#M161346</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-07-26T17:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of Last Row within an unfixed range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064274#M161348</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="517873" data-lia-user-login="ewu" class="lia-mention lia-mention-user"&gt;ewu&lt;/a&gt;&amp;nbsp;PBIX is attached below signature. You first want to add an Index to your table in Power Query Editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Group = 
    VAR __Values = { "A", "B", "C" }
    VAR __Current = [Raw Data]
    VAR __Result = 
        IF( 
            __Current IN __Values,
            __Current,
                VAR __Index = [Index]
                VAR __PrevIndex = MAXX( FILTER( 'Table', [Index] &amp;lt; __Index &amp;amp;&amp;amp; [Raw Data] IN __Values ), [Index] )
                VAR __Result = MAXX( FILTER( 'Table', [Index] = __PrevIndex ), [Raw Data] )
            RETURN
                __Result
        )
RETURN
    __Result&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Latest Date = 
    VAR __Group = [Group]
    VAR __Values = { "A", "B", "C" }
    VAR __Table = 
        ADDCOLUMNS(
            FILTER( 'Table', [Group] = __Group &amp;amp;&amp;amp; NOT( [Raw Data] IN __Values ) ),
            "__Date", DATEVALUE( [Raw Data] )
        )
    VAR __Result = MAXX( __Table, [__Date] )
RETURN
    __Result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 17:51:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064274#M161348</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-07-26T17:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of Last Row within an unfixed range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064286#M161352</link>
      <description>&lt;P&gt;Crazy! Thanks very much!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 18:11:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064286#M161352</guid>
      <dc:creator>ewu</dc:creator>
      <dc:date>2024-07-26T18:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of Last Row within an unfixed range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064289#M161354</link>
      <description>&lt;P&gt;Even crazier!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 18:13:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064289#M161354</guid>
      <dc:creator>ewu</dc:creator>
      <dc:date>2024-07-26T18:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get value of Last Row within an unfixed range</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064330#M161356</link>
      <description>&lt;P&gt;If it helped then kindly marked it resolved.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2024 18:40:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-value-of-Last-Row-within-an-unfixed-range/m-p/4064330#M161356</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-07-26T18:40:33Z</dc:date>
    </item>
  </channel>
</rss>

