<?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: CALENDARAUTO not picking up date from a table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/3201168#M116384</link>
    <description>&lt;P&gt;i have a problem, my calendarauto is return the wrong year. &lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my table, my first year is 2006. But when i put the formula my return is that&lt;/P&gt;</description>
    <pubDate>Sat, 22 Apr 2023 23:54:38 GMT</pubDate>
    <dc:creator>Silver1</dc:creator>
    <dc:date>2023-04-22T23:54:38Z</dc:date>
    <item>
      <title>CALENDARAUTO not picking up date from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2139967#M49183</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have a main table called &lt;EM&gt;IT_support_call_logs&lt;/EM&gt; and multiple related tables. The main table has one row per IT support ticket created.&amp;nbsp;&lt;SPAN&gt;Also, I have a date table built using CALENDARAUTO() and custom columns as per the fiscal year of the organisation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A new requirement has come up where I need to show the dates of the last ticket logged +1 year.&lt;BR /&gt;For instance, if the last ticket logged was on October 18th 2021, I also need to show the year 2022 in the visuals.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For this, I created another table with just one row with the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AdjustTable = 
ROW(
    "Next Year",
    DATE(
        YEAR(MAX(tblSherlockRaw[Ticket End Date])) + 1,
        MONTH(MAX(tblSherlockRaw[Ticket End Date])),
        DAY(MAX(tblSherlockRaw[Ticket End Date]))
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gives me&amp;nbsp;October 18th 2022 as the value in the new table. I created a relationship between this table and the calendar table.&lt;BR /&gt;&lt;BR /&gt;However, CALENDARAUTO() does not pick up dates of 2022. It stops at 31-12-2021 instead of 31-12-2022.&lt;BR /&gt;&lt;BR /&gt;Is there something wrong I am doing?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 07:35:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2139967#M49183</guid>
      <dc:creator>Enigma</dc:creator>
      <dc:date>2021-10-18T07:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: CALENDARAUTO not picking up date from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2140028#M49187</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188891" data-lia-user-login="Enigma" class="lia-mention lia-mention-user"&gt;Enigma&lt;/a&gt; , better create with calendar &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date&amp;nbsp; =&lt;/P&gt;
&lt;P&gt;var _min = eomonth(min(tblSherlockRaw[Ticket End Date])),0)&lt;/P&gt;
&lt;P&gt;var _max = eomonth(max(tblSherlockRaw[Ticket End Date])),12)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;return&lt;/P&gt;
&lt;P&gt;calendar(_min, _max)&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 07:51:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2140028#M49187</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-10-18T07:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: CALENDARAUTO not picking up date from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2140327#M49195</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Is there any reason CALENDARAUTO should not be used? is it not reliable?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 09:32:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2140327#M49195</guid>
      <dc:creator>Enigma</dc:creator>
      <dc:date>2021-10-18T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: CALENDARAUTO not picking up date from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2149263#M49494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="188891" data-lia-user-login="Enigma" class="lia-mention lia-mention-user"&gt;Enigma&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please note this when using &lt;A href="https://docs.microsoft.com/en-us/dax/calendarauto-function-dax#remarks" target="_self"&gt;Calendarauto()&lt;/A&gt; function:&lt;/P&gt;
&lt;P&gt;The date range is calculated as follows:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The earliest date in the model &lt;STRONG&gt;which is not in a calculated column or calculated table&lt;/STRONG&gt; is taken as the MinDate.&lt;/LI&gt;
&lt;LI&gt;The latest date in the model &lt;STRONG&gt;which is not in a calculated column or calculated table&lt;/STRONG&gt; is taken as the MaxDate.&lt;/LI&gt;
&lt;LI&gt;The date range returned is dates between the beginning of the fiscal year associated with MinDate and the end of the fiscal year associated with MaxDate.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dates from calculated table would not be included in the calendar when using Calendarauto().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Yingjie Li&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 01:52:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2149263#M49494</guid>
      <dc:creator>v-yingjl</dc:creator>
      <dc:date>2021-10-22T01:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: CALENDARAUTO not picking up date from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2149610#M49507</link>
      <description>&lt;P&gt;Thanks for this helpful information,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199176" data-lia-user-login="v-yingjl" class="lia-mention lia-mention-user"&gt;v-yingjl&lt;/a&gt;&amp;nbsp;I was not aware of this.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 06:04:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2149610#M49507</guid>
      <dc:creator>Enigma</dc:creator>
      <dc:date>2021-10-22T06:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: CALENDARAUTO not picking up date from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2149924#M49514</link>
      <description>&lt;P&gt;I solved this by adding the fiscal_year_end_month parameter of CALENDARAUTO.&lt;BR /&gt;And then just adding +1 to the max of the year.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DateTable = 
var MinYear = YEAR(MIN(tblSherlockRaw[Ticket End Date]))
var MaxYear = YEAR(MAX(tblSherlockRaw[Ticket End Date])) + 1

RETURN
ADDCOLUMNS(
    FILTER(
        CALENDARAUTO(8), 
        YEAR([Date]) &amp;gt;= MinYear &amp;amp;&amp;amp;
        YEAR([Date]) &amp;lt;= MaxYear
    ),
// custom columns...
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Oct 2021 08:13:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/2149924#M49514</guid>
      <dc:creator>Enigma</dc:creator>
      <dc:date>2021-10-22T08:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: CALENDARAUTO not picking up date from a table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/3201168#M116384</link>
      <description>&lt;P&gt;i have a problem, my calendarauto is return the wrong year. &lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in my table, my first year is 2006. But when i put the formula my return is that&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2023 23:54:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/CALENDARAUTO-not-picking-up-date-from-a-table/m-p/3201168#M116384</guid>
      <dc:creator>Silver1</dc:creator>
      <dc:date>2023-04-22T23:54:38Z</dc:date>
    </item>
  </channel>
</rss>

