<?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: dynamic date table based on min and max of date column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3308413#M123608</link>
    <description>&lt;P&gt;Does this just make a virtual table that you can use in formulas? How can I make a physical table that exhibits this behavior? Or is using a virtual table the way to go? Either way, I'm not sure where to place this formula in my PP Data Model.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jun 2023 14:19:31 GMT</pubDate>
    <dc:creator>domtrump</dc:creator>
    <dc:date>2023-06-29T14:19:31Z</dc:date>
    <item>
      <title>dynamic date table based on min and max of date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3258295#M120400</link>
      <description>&lt;P&gt;I would like to create a date table that is based on the customer's "Sign-up Date." As I do not wish to have dates in my pivot table from before the first sign-up or after the last sign-up, I want the date table to be dynamic and grow as more dates are added. I could certainly "hard code" the start date of the table since it would coincide with the company's opening, but I need the end date to go to the last sign-up date and not show anything in the future. How can I create a Date Table that grows based on the MAX date found in the "Sign-up" column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I typically just use a linked table from Excel for my date tables in PowerPivot but this has proven problematic as I need to include ALL dates between min and max sign-up in my columns and rows even if there is no data found for them when I slice the data (i.e the resulting pivot table needs to have the same number of columns and rows regardless of the slicers applied).&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 19:08:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3258295#M120400</guid>
      <dc:creator>domtrump</dc:creator>
      <dc:date>2023-05-29T19:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date table based on min and max of date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3258704#M120428</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your datamodel looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;One of many ways to achieve this is to create a calendar table by wring DAX formula.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = 
VAR _mindate =
    MIN ( Customer[Sign-up Date] )
VAR _maxdate =
    MAX ( Customer[Sign-up Date] )
RETURN
    ADDCOLUMNS (
        CALENDAR ( _mindate, _maxdate ),
        "Year", YEAR ( [Date] ),
        "Year-Month", FORMAT ( [Date], "yyyy-mmm" ),
        "Year-Month sort", EOMONTH ( [Date], 0 )
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 30 May 2023 03:38:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3258704#M120428</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-05-30T03:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date table based on min and max of date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3301226#M123142</link>
      <description>&lt;P&gt;Looks like that would do it, but where do I place this formula?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jun 2023 20:39:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3301226#M123142</guid>
      <dc:creator>domtrump</dc:creator>
      <dc:date>2023-06-25T20:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic date table based on min and max of date column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3308413#M123608</link>
      <description>&lt;P&gt;Does this just make a virtual table that you can use in formulas? How can I make a physical table that exhibits this behavior? Or is using a virtual table the way to go? Either way, I'm not sure where to place this formula in my PP Data Model.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jun 2023 14:19:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dynamic-date-table-based-on-min-and-max-of-date-column/m-p/3308413#M123608</guid>
      <dc:creator>domtrump</dc:creator>
      <dc:date>2023-06-29T14:19:31Z</dc:date>
    </item>
  </channel>
</rss>

