<?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: Dax Function retrieve value from previous entry in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570878#M73422</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399273" data-lia-user-login="PhilippMer" class="lia-mention lia-mention-user"&gt;PhilippMer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please use&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Previous Day Views =
VAR CurrentDate = TableName[LogDate]
VAR PostTable =
    CALCULATETABLE ( TableName, ALLEXCEPT ( TableName, TableName[PostText] ) )
VAR PreviousDate =
    MAXX (
        FILTER ( PostTable, TableName[LogDate] &amp;lt; CurrentDate ),
        TableName[LogDate]
    )
RETURN
    MAXX (
        FILTER ( PostTable, TableName[LogDate] &amp;lt; PreviousDate ),
        TableName[PostViews]
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 10 Jun 2022 07:06:46 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-06-10T07:06:46Z</dc:date>
    <item>
      <title>Dax Function retrieve value from previous entry</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570847#M73419</link>
      <description>&lt;P&gt;Hello, I have come across a problem, and im not able to find the right expression in DAX to solve it so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Table with Data from a LinkedIn profile, there are over 90 different Posts and the corresponding amount of Views on every single day. I would like a Column to have the the Value of the amount of Views from the previews day, so that I can make a simple Calculation of how many new Views per day each post had. My table looks like the following:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried going through the LogDate with Earlier...but so far had no success. There is no ID only the PostText as a String. Any recommendations on how I could get to the solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 06:55:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570847#M73419</guid>
      <dc:creator>PhilippMer</dc:creator>
      <dc:date>2022-06-10T06:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Function retrieve value from previous entry</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570878#M73422</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399273" data-lia-user-login="PhilippMer" class="lia-mention lia-mention-user"&gt;PhilippMer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please use&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Previous Day Views =
VAR CurrentDate = TableName[LogDate]
VAR PostTable =
    CALCULATETABLE ( TableName, ALLEXCEPT ( TableName, TableName[PostText] ) )
VAR PreviousDate =
    MAXX (
        FILTER ( PostTable, TableName[LogDate] &amp;lt; CurrentDate ),
        TableName[LogDate]
    )
RETURN
    MAXX (
        FILTER ( PostTable, TableName[LogDate] &amp;lt; PreviousDate ),
        TableName[PostViews]
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Jun 2022 07:06:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570878#M73422</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-10T07:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Function retrieve value from previous entry</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570890#M73424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much for your quick reply. The formula almost works as expected. I think for some reason it takes the Numbers 2 entries from before and not the first entrie before of the current date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshot:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Do you know why this is happening?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 07:14:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570890#M73424</guid>
      <dc:creator>PhilippMer</dc:creator>
      <dc:date>2022-06-10T07:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Function retrieve value from previous entry</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570947#M73426</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="399273" data-lia-user-login="PhilippMer" class="lia-mention lia-mention-user"&gt;PhilippMer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry my mistake&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Previous Day Views =
VAR CurrentDate = TableName[LogDate]
VAR PostTable =
    CALCULATETABLE ( TableName, ALLEXCEPT ( TableName, TableName[PostText] ) )
VAR PreviousDate =
    MAXX (
        FILTER ( PostTable, TableName[LogDate] &amp;lt; CurrentDate ),
        TableName[LogDate]
    )
RETURN
    MAXX (
        FILTER ( PostTable, TableName[LogDate] = PreviousDate ),
        TableName[PostViews]
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 10 Jun 2022 07:31:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570947#M73426</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-06-10T07:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Function retrieve value from previous entry</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570966#M73429</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;you saved my day!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 07:36:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Function-retrieve-value-from-previous-entry/m-p/2570966#M73429</guid>
      <dc:creator>PhilippMer</dc:creator>
      <dc:date>2022-06-10T07:36:27Z</dc:date>
    </item>
  </channel>
</rss>

