<?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: Find the last non blank value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778850#M86893</link>
    <description>&lt;P&gt;Thank you tamerj1 so much !&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 22:53:46 GMT</pubDate>
    <dc:creator>jame_moriaty</dc:creator>
    <dc:date>2022-09-19T22:53:46Z</dc:date>
    <item>
      <title>Find the last non blank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778210#M86828</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have data like below.&amp;nbsp; I use the function :&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IP Land Leased Area = &lt;/SPAN&gt;&lt;SPAN&gt;TOTALQTD&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Industrial Park'[LAND_Leased_Land_Area]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[DATE]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IP Land Leased Area Last Value = &lt;/SPAN&gt;&lt;SPAN&gt;LASTNONBLANKVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[DATE]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Industrial Park'&lt;/SPAN&gt;&lt;SPAN&gt;[IP Land Leased Area]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, the function&amp;nbsp;IP Land Leased Area Last Value can not calculate the total exactly. The Total = 34.573 is wrong, the Total exactly = 35.360 because the Quang Ninh Province is not calculate in the Total (the reason is the Quang Ninh Province doesnot have the value at 31-dec-2021)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt; Please help me how to fix the calculate the Total =&amp;nbsp;&lt;SPAN&gt;35.360. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778210#M86828</guid>
      <dc:creator>jame_moriaty</dc:creator>
      <dc:date>2022-09-19T16:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Find the last non blank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778218#M86830</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444077" data-lia-user-login="jame_moriaty" class="lia-mention lia-mention-user"&gt;jame_moriaty&lt;/a&gt;&amp;nbsp;This looks like a measure totals problem. Very common. See my post about it here: &lt;A href="https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376" target="_blank"&gt;https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, this Quick Measure, Measure Totals, The Final Word should get you what you need:&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:15:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778218#M86830</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-19T16:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find the last non blank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778249#M86833</link>
      <description>&lt;P&gt;Dear Greg,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I don't know how to fix this error . Can you help me ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:26:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778249#M86833</guid>
      <dc:creator>jame_moriaty</dc:creator>
      <dc:date>2022-09-19T16:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Find the last non blank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778268#M86842</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444077" data-lia-user-login="jame_moriaty" class="lia-mention lia-mention-user"&gt;jame_moriaty&lt;/a&gt;&amp;nbsp;Try:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IP Land Leased Area Last Value Total = 
  VAR __Table = SUMMARIZE('Table',[City],"__Value",[IP Land Leased Area Last Value])
RETURN
  IF(HASONEVALUE('Table'[City]), [IP Land Leased Area Last Value], SUMX(__Table,[__Value]))&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Sep 2022 16:37:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778268#M86842</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-09-19T16:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Find the last non blank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778367#M86858</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444077" data-lia-user-login="jame_moriaty" class="lia-mention lia-mention-user"&gt;jame_moriaty&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;IP Land Leased Area Last Value =
SUMX (
    VALUES ( TableName[City] ),
    CALCULATE (
        LASTNONBLANKVALUE ( 'Calendar'[DATE], 'Industrial Park'[IP Land Leased Area] )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Sep 2022 17:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778367#M86858</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-19T17:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find the last non blank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778850#M86893</link>
      <description>&lt;P&gt;Thank you tamerj1 so much !&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 22:53:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-the-last-non-blank-value/m-p/2778850#M86893</guid>
      <dc:creator>jame_moriaty</dc:creator>
      <dc:date>2022-09-19T22:53:46Z</dc:date>
    </item>
  </channel>
</rss>

