<?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: Dax Measure to Specify which rows correspond to last change in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-to-Specify-which-rows-correspond-to-last-change/m-p/2784206#M87193</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443572" data-lia-user-login="lazurens2" class="lia-mention lia-mention-user"&gt;lazurens2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you want to flag the last record of each value of column1? If so please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Best Score 2 =
VAR CurrentValue =
    SELECTEDVALUE ( 'Table'[Column2] )
VAR MaxValue =
    CALCULATE ( MAX ( 'Table'[Column2] ), ALLEXCEPT ( 'Table', 'Table'[Column1] ) )
RETURN
    IF ( CurrentValue = MaxValue, 1 )&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 21 Sep 2022 14:18:08 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-09-21T14:18:08Z</dc:date>
    <item>
      <title>Dax Measure to Specify which rows correspond to last change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-to-Specify-which-rows-correspond-to-last-change/m-p/2784179#M87191</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this example please&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected output : a Measure that returns 1 for a = 3 / b = 6&lt;BR /&gt;These are verions and I need to specify which one is the last version&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, the measure isn't even working because it couldn't find `_LastChange`&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;Best Score 2 = 
VAR _LastChange = SUMMARIZECOLUMNS('Table'[Column1],
"Maxd", Max('Table'[Column2])
)
VAR _group = VALUES('Table'[Column1])
VAR _max = _LastChange[Maxd]

Return 

VAR MaxValue =
    CALCULATE ( MAX ( 'Table'[Column2] ), REMOVEFILTERS ( 'Table' ) )
RETURN
    IF ( SELECTEDVALUE ( 'Table'[Column1] ) = _group, 
        IF(Filter('Table', 'Table'[Column1] = _group) = _max , 1, 0 )
)&lt;/LI-CODE&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;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 13:55:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-to-Specify-which-rows-correspond-to-last-change/m-p/2784179#M87191</guid>
      <dc:creator>lazurens2</dc:creator>
      <dc:date>2022-09-21T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure to Specify which rows correspond to last change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-to-Specify-which-rows-correspond-to-last-change/m-p/2784206#M87193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="443572" data-lia-user-login="lazurens2" class="lia-mention lia-mention-user"&gt;lazurens2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;do you want to flag the last record of each value of column1? If so please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Best Score 2 =
VAR CurrentValue =
    SELECTEDVALUE ( 'Table'[Column2] )
VAR MaxValue =
    CALCULATE ( MAX ( 'Table'[Column2] ), ALLEXCEPT ( 'Table', 'Table'[Column1] ) )
RETURN
    IF ( CurrentValue = MaxValue, 1 )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:18:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-to-Specify-which-rows-correspond-to-last-change/m-p/2784206#M87193</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-21T14:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure to Specify which rows correspond to last change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-to-Specify-which-rows-correspond-to-last-change/m-p/2785831#M87313</link>
      <description>&lt;P&gt;Thank you very much, it's working !&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 06:02:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-to-Specify-which-rows-correspond-to-last-change/m-p/2785831#M87313</guid>
      <dc:creator>lazurens2</dc:creator>
      <dc:date>2022-09-22T06:02:07Z</dc:date>
    </item>
  </channel>
</rss>

