<?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: Show value only for the last quarter with values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1343339#M24066</link>
    <description>&lt;P&gt;But it gave me an idea for the solution :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Value Last Quarter =&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var _maxQuarter =MAXX(allselected('Date'),'Date'[Quarter])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var _lastQuarterWithValue = LASTNONBLANK('Date'[Quarter],[Value])&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([Value],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter('Date','Date'[Quarter]=MIN(_maxQuarter,_lastQuarterWithValue)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And this one works good ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Sep 2020 07:46:43 GMT</pubDate>
    <dc:creator>Lovebo01</dc:creator>
    <dc:date>2020-09-03T07:46:43Z</dc:date>
    <item>
      <title>Show value only for the last quarter with values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1341945#M24004</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to show the value for the last quarter selected by the user with values (non blank).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To show the value of the last quarter selected by the user I am using this function :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value Last Quarter = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE([Value],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter('Date','Date'[Quarter]=MAX('Date'[Quarter])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;So I tried to use the LASTNONBLANK function but when I am using it like this :&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value Last Quarter with values = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE([Value],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter('Date','Date'[Quarter]=LASTNONBLANK('Date'[Quarter],[Value])))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It sums all the value for all the quarter. It doesn't sum only the last quarter.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Do you know how to do it please ?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for your help,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Lovebo,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Sep 2020 16:38:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1341945#M24004</guid>
      <dc:creator>Lovebo01</dc:creator>
      <dc:date>2020-09-02T16:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Show value only for the last quarter with values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1341967#M24006</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="252440" data-lia-user-login="Lovebo01" class="lia-mention lia-mention-user"&gt;Lovebo01&lt;/a&gt; , try like &lt;/P&gt;
&lt;P&gt;Value Last Quarter =&lt;BR /&gt;var _max =MAXX(allselected('Date'),'Date'[Quarter])&lt;BR /&gt;return&lt;BR /&gt;CALCULATE([Value],&lt;BR /&gt;Filter('Date','Date'[Quarter]=_max))&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 16:47:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1341967#M24006</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-02T16:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Show value only for the last quarter with values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1343325#M24064</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help but it doesn't work, I have only values for the last Quarter, but if the last quarter with some values is the 2nd quarter, it shows nothing.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 07:42:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1343325#M24064</guid>
      <dc:creator>Lovebo01</dc:creator>
      <dc:date>2020-09-03T07:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show value only for the last quarter with values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1343339#M24066</link>
      <description>&lt;P&gt;But it gave me an idea for the solution :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Value Last Quarter =&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var _maxQuarter =MAXX(allselected('Date'),'Date'[Quarter])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var _lastQuarterWithValue = LASTNONBLANK('Date'[Quarter],[Value])&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([Value],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Filter('Date','Date'[Quarter]=MIN(_maxQuarter,_lastQuarterWithValue)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And this one works good ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Sep 2020 07:46:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-value-only-for-the-last-quarter-with-values/m-p/1343339#M24066</guid>
      <dc:creator>Lovebo01</dc:creator>
      <dc:date>2020-09-03T07:46:43Z</dc:date>
    </item>
  </channel>
</rss>

