<?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: Need a Dax for Last Date Change in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3111351#M109913</link>
    <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to plot a card visual with a measure like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _table =
ADDCOLUMNS(
    TableName,
    "Flag",
    VAR _rate = [Rate]
    VAR _date = [Date]
    VAR _ratepre = 
    MAXX(
        FILTER(ALL(TableName), TableName[Date] = EDATE(_date, -1) ),
        TableName[Rate]
    )
    RETURN
    IF( _rate&amp;lt;&amp;gt;_ratepre, "Yes", "No")
)
RETURN
MAXX(
    FILTER(
        _table,
        [Flag]="Yes"
    ),
    TableName[Date]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Mar 2023 03:50:41 GMT</pubDate>
    <dc:creator>FreemanZ</dc:creator>
    <dc:date>2023-03-04T03:50:41Z</dc:date>
    <item>
      <title>Need a Dax for Last Date Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3111179#M109901</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write an DAX that will give me the last date a rate changed. If you look at the below data the the unit has had two changes over the span of two years. I would like it to give me only the most recent date teh rate changed which is 12/1/2022.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This is the dax I wrote but it is giving me 1/1/2023 for all dates after 12/1/2023. Can someone help?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MAX(table[ Date]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &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; &amp;nbsp; ALL(table),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table[unit]= EARLIER(table[unit])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&amp;amp; table[rate] &amp;lt;&amp;gt; CALCULATE(LASTNONBLANK(table[rate],0), FILTER(ALL(table), table[Unit]= EARLIER(table[unit])))&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ))&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 22:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3111179#M109901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-03T22:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax for Last Date Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3111351#M109913</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to plot a card visual with a measure like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _table =
ADDCOLUMNS(
    TableName,
    "Flag",
    VAR _rate = [Rate]
    VAR _date = [Date]
    VAR _ratepre = 
    MAXX(
        FILTER(ALL(TableName), TableName[Date] = EDATE(_date, -1) ),
        TableName[Rate]
    )
    RETURN
    IF( _rate&amp;lt;&amp;gt;_ratepre, "Yes", "No")
)
RETURN
MAXX(
    FILTER(
        _table,
        [Flag]="Yes"
    ),
    TableName[Date]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it worked like:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 03:50:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3111351#M109913</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-04T03:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax for Last Date Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3111745#M109961</link>
      <description>&lt;P&gt;Thanks for the response! I need this measure for a report I am trying to build. I dont think this formula is taking into account that there are multiple different unit number is my data set so it is only returning the max date in the file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2023 17:25:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3111745#M109961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-04T17:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Dax for Last Date Change</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3112722#M110075</link>
      <description>&lt;P&gt;hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then remove ALL, like:&lt;/P&gt;&lt;DIV&gt;Measure =&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;VAR _table =&lt;/DIV&gt;&lt;DIV&gt;ADDCOLUMNS(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; TableName,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; "Flag",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; VAR _rate = [Rate]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; VAR _date = [Date]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; VAR _ratepre =&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; MAXX(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(TableName, TableName[Date] = EDATE(_date, -1) ),&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TableName[Rate]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; RETURN&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; IF( _rate&amp;lt;&amp;gt;_ratepre, "Yes", "No")&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;DIV&gt;RETURN&lt;/DIV&gt;&lt;DIV&gt;MAXX(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _table,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Flag]="Yes"&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ),&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; TableName[Date]&lt;/DIV&gt;&lt;DIV&gt;)&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2023 00:27:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-a-Dax-for-Last-Date-Change/m-p/3112722#M110075</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-03-06T00:27:23Z</dc:date>
    </item>
  </channel>
</rss>

