<?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 DAX CALENDARAUTO function returns empty table when used in Power BI Desktop in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-CALENDARAUTO-function-returns-empty-table-when-used-in-Power/m-p/3759101#M146654</link>
    <description>&lt;P&gt;Doh, followed along with the calendarauto example from the video (sqlbi.com) but no dates produced.&lt;/P&gt;&lt;P&gt;No syntax errors. Using 07.40 - Moving average.pbix&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Table of Dates = CALENDARAUTO()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;works just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried other pbix files as well. 'New table' button was used :}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is the code I created that produces no syntax errors and no dates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dates (CALENDARAUTO) =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_CustomerBirth = MIN ( 'Customer'[Birth Date] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_ProductAvailable = MIN ( 'Product'[Available Date] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_SalesDelivery = MIN ( 'Sales'[Delivery Date] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_SalesOrder = MIN ( 'Sales'[Order Date] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF ( _FirstDate_SalesOrder &amp;lt; _FirstDate_SalesDelivery, _FirstDate_SalesOrder, _FirstDate_SalesDelivery )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _DateTable =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER (&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALENDARAUTO(),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YEAR ( [Date] ) &amp;gt;= _FirstDate -- 'CALENDARAUTO'.[Date]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;RETURN&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ADDCOLUMNS(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _DateTable,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Year", YEAR ( [Date] ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Month", FORMAT ( [Date], "mmm" ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Month Number", MONTH ( [Date] ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Quarter", FORMAT ( [Date], "\QQ yyyy" )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 00:43:45 GMT</pubDate>
    <dc:creator>garythomannCoGC</dc:creator>
    <dc:date>2024-03-13T00:43:45Z</dc:date>
    <item>
      <title>DAX CALENDARAUTO function returns empty table when used in Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-CALENDARAUTO-function-returns-empty-table-when-used-in-Power/m-p/3759101#M146654</link>
      <description>&lt;P&gt;Doh, followed along with the calendarauto example from the video (sqlbi.com) but no dates produced.&lt;/P&gt;&lt;P&gt;No syntax errors. Using 07.40 - Moving average.pbix&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Table of Dates = CALENDARAUTO()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;works just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tried other pbix files as well. 'New table' button was used :}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following is the code I created that produces no syntax errors and no dates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dates (CALENDARAUTO) =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_CustomerBirth = MIN ( 'Customer'[Birth Date] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_ProductAvailable = MIN ( 'Product'[Available Date] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_SalesDelivery = MIN ( 'Sales'[Delivery Date] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_SalesOrder = MIN ( 'Sales'[Order Date] )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF ( _FirstDate_SalesOrder &amp;lt; _FirstDate_SalesDelivery, _FirstDate_SalesOrder, _FirstDate_SalesDelivery )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; VAR _DateTable =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER (&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALENDARAUTO(),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YEAR ( [Date] ) &amp;gt;= _FirstDate -- 'CALENDARAUTO'.[Date]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;BR /&gt;RETURN&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ADDCOLUMNS(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _DateTable,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Year", YEAR ( [Date] ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Month", FORMAT ( [Date], "mmm" ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Month Number", MONTH ( [Date] ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Quarter", FORMAT ( [Date], "\QQ yyyy" )&lt;BR /&gt;&amp;nbsp; &amp;nbsp; )&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 00:43:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-CALENDARAUTO-function-returns-empty-table-when-used-in-Power/m-p/3759101#M146654</guid>
      <dc:creator>garythomannCoGC</dc:creator>
      <dc:date>2024-03-13T00:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: DAX CALENDARAUTO function returns empty table when used in Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-CALENDARAUTO-function-returns-empty-table-when-used-in-Power/m-p/3759159#M146657</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="350775" data-lia-user-login="garythomannCoGC" class="lia-mention lia-mention-user"&gt;garythomannCoGC&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Dates (CALENDARAUTO) =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_CustomerBirth = MIN ( 'Customer'[Birth Date] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_ProductAvailable = MIN ( 'Product'[Available Date] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_SalesDelivery = MIN ( 'Sales'[Delivery Date] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate_SalesOrder = MIN ( 'Sales'[Order Date] )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; VAR _FirstDate =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF ( _FirstDate_SalesOrder &amp;lt; _FirstDate_SalesDelivery, _FirstDate_SalesOrder, _FirstDate_SalesDelivery )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; VAR _DateTable =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CALENDARAUTO(),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YEAR ( [Date] ) &amp;gt;= &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;YEAR(_FirstDate)&lt;/STRONG&gt; &lt;/FONT&gt;-- 'CALENDARAUTO'.[Date]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ADDCOLUMNS(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _DateTable,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Year", YEAR ( [Date] ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Month", FORMAT ( [Date], "mmm" ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Month Number", MONTH ( [Date] ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Quarter", FORMAT ( [Date], "\QQ yyyy" )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 01:39:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-CALENDARAUTO-function-returns-empty-table-when-used-in-Power/m-p/3759159#M146657</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2024-03-13T01:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX CALENDARAUTO function returns empty table when used in Power BI Desktop</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-CALENDARAUTO-function-returns-empty-table-when-used-in-Power/m-p/3759310#M146661</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="DAX CALENDARAUTO function returns empty table when used in Power BI Desktop" href="https://stackoverflow.com/questions/78150692/dax-calendarauto-function-returns-empty-table-when-used-in-power-bi-desktop" target="_self"&gt;DAX CALENDARAUTO function returns empty table when used in Power BI Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you would like more kudos&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 02:44:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-CALENDARAUTO-function-returns-empty-table-when-used-in-Power/m-p/3759310#M146661</guid>
      <dc:creator>garythomannCoGC</dc:creator>
      <dc:date>2024-03-13T02:44:28Z</dc:date>
    </item>
  </channel>
</rss>

