<?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: value from a table 30 days ago in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506676#M134530</link>
    <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;It almost works. I also need the condition code = 987&lt;/P&gt;</description>
    <pubDate>Tue, 31 Oct 2023 09:02:02 GMT</pubDate>
    <dc:creator>Jeffrey_VC</dc:creator>
    <dc:date>2023-10-31T09:02:02Z</dc:date>
    <item>
      <title>value from a table 30 days ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506478#M134516</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find a dax code to get a value of a table 30 days ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a tabel with 3 colums.&lt;BR /&gt;Code (there are different codes in the colum)&lt;/P&gt;&lt;P&gt;Timestamp&lt;/P&gt;&lt;P&gt;Loginfo&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need the "loginfo" with code 987 and timestamp 30 days ago.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;P&gt;Jeffrey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 07:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506478#M134516</guid>
      <dc:creator>Jeffrey_VC</dc:creator>
      <dc:date>2023-10-31T07:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: value from a table 30 days ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506629#M134528</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424232" data-lia-user-login="Jeffrey_VC" class="lia-mention lia-mention-user"&gt;Jeffrey_VC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424232" data-lia-user-login="Jeffrey_VC" class="lia-mention lia-mention-user"&gt;Jeffrey_VC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can try dateadd function&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;result =
calculate(
        min('yourtablename'[loginfo]),
       'yourtablename'[timestamp]= max('yourtablename'[timestamp])-30,
       'yourtablename'[code]=max('yourtablename'[code])
          )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 08:52:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506629#M134528</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-31T08:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: value from a table 30 days ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506676#M134530</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;It almost works. I also need the condition code = 987&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 09:02:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506676#M134530</guid>
      <dc:creator>Jeffrey_VC</dc:creator>
      <dc:date>2023-10-31T09:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: value from a table 30 days ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506686#M134531</link>
      <description>&lt;P&gt;hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424232" data-lia-user-login="Jeffrey_VC" class="lia-mention lia-mention-user"&gt;Jeffrey_VC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if code column is type of string then use&amp;nbsp; "987"&amp;nbsp; instead of 987&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;result =
calculate(
        min('yourtablename'[loginfo]),
       'yourtablename'[timestamp]= max('yourtablename'[timestamp])-30,
       'yourtablename'[code]=987)
          )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 09:05:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506686#M134531</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2023-10-31T09:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: value from a table 30 days ago</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506702#M134533</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="569583" data-lia-user-login="Dangar332" class="lia-mention lia-mention-user"&gt;Dangar332&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thnx!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 09:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/value-from-a-table-30-days-ago/m-p/3506702#M134533</guid>
      <dc:creator>Jeffrey_VC</dc:creator>
      <dc:date>2023-10-31T09:15:37Z</dc:date>
    </item>
  </channel>
</rss>

