<?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 Lastnonblank not returning correct results in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2801776#M88174</link>
    <description>&lt;P&gt;I'm trying to return the last non-blank row of the "Target stage outcome" column based on the "Entity" column.&amp;nbsp; However, using the lastnonblank dax formula is not yielding the correct results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the example fact table below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the results that I'm trying to get are those in the red box:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a summary table to see the results&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Despite the "Index" and "Last day" returning the correct results, the "Stage" field is not returning the correct result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the "Target" table that I'm using in my summary table above&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate if someone could help me here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Sep 2022 05:58:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-28T05:58:55Z</dc:date>
    <item>
      <title>Lastnonblank not returning correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2801776#M88174</link>
      <description>&lt;P&gt;I'm trying to return the last non-blank row of the "Target stage outcome" column based on the "Entity" column.&amp;nbsp; However, using the lastnonblank dax formula is not yielding the correct results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the example fact table below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is the results that I'm trying to get are those in the red box:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created a summary table to see the results&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Despite the "Index" and "Last day" returning the correct results, the "Stage" field is not returning the correct result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the "Target" table that I'm using in my summary table above&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate if someone could help me here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 05:58:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2801776#M88174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-28T05:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lastnonblank not returning correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2801887#M88179</link>
      <description>&lt;P&gt;LASTNONBLANK, sorts the column in the first parameter, then get the last value of which the second parameter is non blank&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 06:57:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2801887#M88179</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2022-09-28T06:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Lastnonblank not returning correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2802001#M88188</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;Would that mean that it would sort the "target stage outcome" first then only determine the lastnonblank for the "Response date"?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 07:47:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2802001#M88188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-28T07:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lastnonblank not returning correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2802068#M88197</link>
      <description>&lt;P&gt;try LASTNONBLANKVALUE(Target[Reponse Date],MAX(Target[Target Stage Outcome]))&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 08:06:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2802068#M88197</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2022-09-28T08:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Lastnonblank not returning correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2802140#M88202</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;.&amp;nbsp; It worked but should there be the same date, then it doesn't work as intended.&amp;nbsp; How should I deal with it if I dont use the "Response date" field?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 08:31:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2802140#M88202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-28T08:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Lastnonblank not returning correct results</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2802148#M88204</link>
      <description>&lt;P&gt;how about using the Target[Index] as the first parameter?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 08:34:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Lastnonblank-not-returning-correct-results/m-p/2802148#M88204</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2022-09-28T08:34:41Z</dc:date>
    </item>
  </channel>
</rss>

