<?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: Variable with last date selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326427#M58275</link>
    <description>&lt;P&gt;Hi Whitewater100,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick answer! Wat i actualy want is this: Fill column Actual Status as a nieuw measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 06:14:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-09T06:14:00Z</dc:date>
    <item>
      <title>Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2325953#M58235</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;As you can see below i have for tyhis Invoice-nr different ststus registration in colomn WBRKC101. I want to have the last status which is FS with date 09/22/2021. How can i&amp;nbsp; doe it? Please help me.&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>Tue, 08 Feb 2022 15:25:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2325953#M58235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-08T15:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326157#M58251</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Try a measure like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Measure = &lt;BR /&gt;VAR __id = MAX ('Table'[Invoice-nr] )&lt;BR /&gt;VAR __date = CALCULATE ( MAX('Table'[date] ), ALLSELECTED ('Table' ), 'Table'[Invoice-nr] = __id ) &lt;BR /&gt;CALCULATE ( MAX ('Table'[Status] ), VALUES ('Table'[Invoice-nr] ),'Table'[Invoice-nr] = __id,'Table'[date] = __date )&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 17:01:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326157#M58251</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-02-08T17:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326250#M58263</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use MAX(TableName[Date]) and filter in a visualization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to be specific about FS:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(TableName&lt;/SPAN&gt;&lt;SPAN&gt;[DATE]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER(TableName, &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TableName[Status] = "FS")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I hope this helps!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Feb 2022 18:07:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326250#M58263</guid>
      <dc:creator>Whitewater100</dc:creator>
      <dc:date>2022-02-08T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326427#M58275</link>
      <description>&lt;P&gt;Hi Whitewater100,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick answer! Wat i actualy want is this: Fill column Actual Status as a nieuw measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THanx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 06:14:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326427#M58275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-09T06:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326437#M58276</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Amitchandak,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your quick answer!&lt;BR /&gt;Wat i actualy want is this: Fill column "Actual Status" as a nieuw measure with status with newst/latest date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 06:15:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2326437#M58276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-09T06:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2332286#M58640</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _lastDate=MAXX(FILTER(ALL('Table'),[Invoic-nr.]=MAX('Table'[Invoic-nr.])),[Date])
return CALCULATE(MAX('Table'[Status]),FILTER('Table',[Date]=_lastDate))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Eyelyn Qin&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt; &lt;/EM&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 04:00:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2332286#M58640</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T04:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2332470#M58645</link>
      <description>&lt;P&gt;Hi Eyelyn,&lt;BR /&gt;Thannk you for your effort.&lt;BR /&gt;I have used your solution, but it does not work unfortunetly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;BR /&gt;Walid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 06:38:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2332470#M58645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2332627#M58656</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yours is a column, not a measure. If you want a column, please try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
var _lastDate=CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[Invoic-nr.]))
return IF([Date]=_lastDate,[Status],BLANK()) &lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Eyelyn Qin&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 07:40:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2332627#M58656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with last date selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2333030#M58673</link>
      <description>&lt;P&gt;It works! Thank you !&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 09:50:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Variable-with-last-date-selection/m-p/2333030#M58673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T09:50:51Z</dc:date>
    </item>
  </channel>
</rss>

