<?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: Create a virtual table with Previous date transaction column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267791#M121012</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="570720" data-lia-user-login="ngocrin1" class="lia-mention lia-mention-user"&gt;ngocrin1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Actually I did not get the idea of using 'Date'[Date] to obtain the previous date. If you want to get pervious calendar date then simply use&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Virtual Table =
ADDCOLUMNS (
    SUMMARIZE ( Sales, Sales[Purchase Date], Sales[Sales Person ID] ),
    "@Revenue", [Sales Revenue],
    "@PreDate", Sales[Purchase Date] - 1
)&lt;/LI-CODE&gt;
&lt;P&gt;If you're looking for the previous sales date of the product in row then please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Virtual Table =
ADDCOLUMNS (
    SUMMARIZE ( Sales, Sales[Purchase Date], Sales[Sales Person ID] ),
    "@Revenue", [Sales Revenue],
    "@PreDate",
        VAR CurrentDate = Sales[Purchase Date]
        VAR PreDate =
            MAXX (
                CALCULATETABLE (
                    VALUES ( Sales[Purchase Date] ),
                    Sales[Purchase Date] &amp;lt; CurrentDate
                ),
                Sales[Purchase Date]
            )
        RETURN
            PreDate
)&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 05 Jun 2023 06:28:00 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2023-06-05T06:28:00Z</dc:date>
    <item>
      <title>Create a virtual table with Previous date transaction column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267659#M121002</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have problem with creating a Virtual table with&amp;nbsp;Previous date transaction column. Has everyone can help me?&lt;/P&gt;&lt;P&gt;The formula to get the Previous date column is below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But the result is still blank.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 04:06:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267659#M121002</guid>
      <dc:creator>ngocrin1</dc:creator>
      <dc:date>2023-06-05T04:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a virtual table with Previous date transaction column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267689#M121005</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="570720" data-lia-user-login="ngocrin1" class="lia-mention lia-mention-user"&gt;ngocrin1&lt;/a&gt;&amp;nbsp;please try to change your date column in Power Query from type date time to type date, and see results. I hope this help&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 05:13:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267689#M121005</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-05T05:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a virtual table with Previous date transaction column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267791#M121012</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="570720" data-lia-user-login="ngocrin1" class="lia-mention lia-mention-user"&gt;ngocrin1&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Actually I did not get the idea of using 'Date'[Date] to obtain the previous date. If you want to get pervious calendar date then simply use&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Virtual Table =
ADDCOLUMNS (
    SUMMARIZE ( Sales, Sales[Purchase Date], Sales[Sales Person ID] ),
    "@Revenue", [Sales Revenue],
    "@PreDate", Sales[Purchase Date] - 1
)&lt;/LI-CODE&gt;
&lt;P&gt;If you're looking for the previous sales date of the product in row then please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Virtual Table =
ADDCOLUMNS (
    SUMMARIZE ( Sales, Sales[Purchase Date], Sales[Sales Person ID] ),
    "@Revenue", [Sales Revenue],
    "@PreDate",
        VAR CurrentDate = Sales[Purchase Date]
        VAR PreDate =
            MAXX (
                CALCULATETABLE (
                    VALUES ( Sales[Purchase Date] ),
                    Sales[Purchase Date] &amp;lt; CurrentDate
                ),
                Sales[Purchase Date]
            )
        RETURN
            PreDate
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 05 Jun 2023 06:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267791#M121012</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-06-05T06:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create a virtual table with Previous date transaction column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267828#M121015</link>
      <description>&lt;P&gt;Tks Tamerj1,&lt;/P&gt;&lt;P&gt;It worked well. I'm looking for previous date sales transactions.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 06:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-virtual-table-with-Previous-date-transaction-column/m-p/3267828#M121015</guid>
      <dc:creator>ngocrin1</dc:creator>
      <dc:date>2023-06-05T06:42:30Z</dc:date>
    </item>
  </channel>
</rss>

