<?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: LASTNONBLANK VALUE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1736388#M36045</link>
    <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;According to your examples, you just need to find the previous value of&amp;nbsp;&lt;SPAN&gt;"Rend (%)" column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you are using calculated columns, then the solution can be found in this forum:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Get-previous-row-value-in-new-column/td-p/496182" target="_self"&gt;https://community.powerbi.com/t5/Desktop/Get-previous-row-value-in-new-column/td-p/496182&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Mar 2021 10:12:32 GMT</pubDate>
    <dc:creator>ERD</dc:creator>
    <dc:date>2021-03-22T10:12:32Z</dc:date>
    <item>
      <title>LASTNONBLANK VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1728306#M35773</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am writing to you about a measurement query that I can't solve.&lt;BR /&gt;Below is a table of yield calculation.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to display in the column "Rend_N-1(%)" the last value filled in the column "Rend (%)".&lt;BR /&gt;Example for the 21/12/2019 I would like "Rend_N-1 (%)" to be equal to 77.90% which corresponds to the "Rend (%)" of 03/12/2019.&lt;BR /&gt;Second example : For the 03/12/2019 I would like "Yield_N-1 (%)" to be equal to 76.72% which corresponds to the "Yield (%)" of the 12/11/2019.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought of using the "LASTNONBLANK" function but I still can't do it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also attach a PBIX to understand better :&amp;nbsp;&lt;A href="https://1drv.ms/u/s!Ao1OrcTeY008gYVQjq14qaCDLHAb6w?e=Jk3p2l" target="_blank"&gt;https://1drv.ms/u/s!Ao1OrcTeY008gYVQjq14qaCDLHAb6w?e=Jk3p2l&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joël&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 16:58:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1728306#M35773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-17T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANK VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1736388#M36045</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;According to your examples, you just need to find the previous value of&amp;nbsp;&lt;SPAN&gt;"Rend (%)" column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you are using calculated columns, then the solution can be found in this forum:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Get-previous-row-value-in-new-column/td-p/496182" target="_self"&gt;https://community.powerbi.com/t5/Desktop/Get-previous-row-value-in-new-column/td-p/496182&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 10:12:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1736388#M36045</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-22T10:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANK VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1736442#M36047</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help first of all. And to answer your question: no "Rend (%) is not a calculated column, it is a measure. I consulted your link and unfortunately it does not answer my problem. Any other ideas ?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Joël&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 10:38:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1736442#M36047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-22T10:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANK VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1736805#M36054</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In this case here is an option for a measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rend_N-1 (%) measure = 
VAR currentDate = SELECTEDVALUE(YourTableName[Date])
VAR previousDate = CALCULATE(
    MAX(YourTableName[Date]),
    FILTER(
        ALLSELECTED(YourTableName),
        YourTableName[Date] &amp;lt; currentDate)
)
RETURN
CALCULATE(
    MAX(YourTableName[Rend (%)]),
    FILTER(
        ALLSELECTED(YourTableName),
        YourTableName[Date] = previousDate
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Mar 2021 13:00:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1736805#M36054</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-22T13:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANK VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1738689#M36101</link>
      <description>&lt;P&gt;Thank you for your help&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp; it is very generous of you. I just tried your formula but I don't understand very well in your formula or is it that I fill "Rend (%)" with a "MAX" function since "Rend %" is a measure and not a column and "Max" only works with column names it seems to me. I used the same code but with the "MAXX" function which can work with expressions but I have this error message that came up "A "FILTER" function was used in a True/False expression used as a table filter expression. This is not allowed." so no result either...&lt;/P&gt;&lt;P&gt;Did you try running your formula in the PBIX I made available?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Joel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 07:54:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1738689#M36101</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-23T07:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANK VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1740042#M36145</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm afraid I cannot download files, but to make MAXX work you can play with your current measure and try to use it in the MAXX function in the next way:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rend_N-1 (%) measure = 
VAR currentDate = SELECTEDVALUE(YourTableName[Date])
VAR previousDate = CALCULATE(
    MAX(YourTableName[Date]),
    FILTER(
        ALLSELECTED(YourTableName),
        YourTableName[Date] &amp;lt; currentDate)
)
RETURN
MAXX(
    FILTER(
        ALLSELECTED(YourTableName),
        YourTableName[Date] = previousDate
    ),
    [your_measure]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 15:17:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1740042#M36145</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-03-23T15:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANK VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1740359#M36160</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp; but I have the same error message :&amp;nbsp;&lt;SPAN&gt;"A "FILTER" function was used in a True/False expression used as a table filter expression. This is not allowed." when I used the "filter" function ...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 17:42:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1740359#M36160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-23T17:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: LASTNONBLANK VALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1761451#M36850</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;,&lt;BR /&gt;Just in case, please, update your PBI Desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Rend_N-1 (%) measure = 
VAR currentDate = SELECTEDVALUE(dim_date[Date])
VAR previousDate = CALCULATE(
    MAX(dim_date[Date]),
    FILTER(
        ALLSELECTED(dim_date),
        dim_date[Date] &amp;lt; currentDate)
)
RETURN
MAXX(
    FILTER(
        ALLSELECTED(dim_date),
        dim_date[Date] = previousDate
    ),
    [Rend_dynamique (%)]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 10:21:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/LASTNONBLANK-VALUE/m-p/1761451#M36850</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2021-04-02T10:21:54Z</dc:date>
    </item>
  </channel>
</rss>

