<?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: Last &amp;quot;non-blank&amp;quot; value in a &amp;quot;non-sorted&amp;quot; column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-quot-non-blank-quot-value-in-a-quot-non-sorted-quot-column/m-p/3955128#M153523</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can achive the desired effect easily e.g. like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt; &lt;SPAN&gt;27&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _mdate = &lt;/SPAN&gt;&lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;('Table (40)',&lt;/SPAN&gt;&lt;SPAN&gt;not&lt;/SPAN&gt; &lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;([value])),[date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&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;([value]),&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;('Calendar'),'Calendar'[date]=_mdate)&lt;BR /&gt;&lt;BR /&gt;You can also use the original table instead of calendar like in this example:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 28 May 2024 12:41:37 GMT</pubDate>
    <dc:creator>ValtteriN</dc:creator>
    <dc:date>2024-05-28T12:41:37Z</dc:date>
    <item>
      <title>Last "non-blank" value in a "non-sorted" column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-quot-non-blank-quot-value-in-a-quot-non-sorted-quot-column/m-p/3954832#M153517</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;In power bi I am using as an example a very simple table with 2 columns (date, value) and need a measure to collect the last non-blank value (0.65) for a card. Maybe I am wrong, but my understanding is that the LASTNONBLANK function works with a "sorted" column only.&lt;/P&gt;&lt;P&gt;Is there any function in the Dax measure to identify the last non-blank value in an "non-sorted" column (such as in the value example)&amp;nbsp; .. ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;value&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.01.2024&lt;/TD&gt;&lt;TD&gt;0.89&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.02.2024&lt;/TD&gt;&lt;TD&gt;1.34&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.03.2024&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;0.65&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.04.2024&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01.05.2024&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your ideas and input. Many thanks ..&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Toby&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 11:13:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-quot-non-blank-quot-value-in-a-quot-non-sorted-quot-column/m-p/3954832#M153517</guid>
      <dc:creator>Toby001</dc:creator>
      <dc:date>2024-05-28T11:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Last "non-blank" value in a "non-sorted" column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-quot-non-blank-quot-value-in-a-quot-non-sorted-quot-column/m-p/3955128#M153523</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can achive the desired effect easily e.g. like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Measure&lt;/SPAN&gt; &lt;SPAN&gt;27&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; _mdate = &lt;/SPAN&gt;&lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;('Table (40)',&lt;/SPAN&gt;&lt;SPAN&gt;not&lt;/SPAN&gt; &lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;([value])),[date])&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&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;([value]),&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;('Calendar'),'Calendar'[date]=_mdate)&lt;BR /&gt;&lt;BR /&gt;You can also use the original table instead of calendar like in this example:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 28 May 2024 12:41:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-quot-non-blank-quot-value-in-a-quot-non-sorted-quot-column/m-p/3955128#M153523</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2024-05-28T12:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Last "non-blank" value in a "non-sorted" column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-quot-non-blank-quot-value-in-a-quot-non-sorted-quot-column/m-p/3955509#M153539</link>
      <description>&lt;P&gt;Looks like I still have to learn some tricks .. :).&lt;/P&gt;&lt;P&gt;Many thanks for your help .. it perfectly works.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 15:25:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-quot-non-blank-quot-value-in-a-quot-non-sorted-quot-column/m-p/3955509#M153539</guid>
      <dc:creator>Toby001</dc:creator>
      <dc:date>2024-05-28T15:25:27Z</dc:date>
    </item>
  </channel>
</rss>

