<?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: Date Table - DAX - CALENDAR() - ADDCOLUMNS() - Quarter Issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1543794#M30458</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182199" data-lia-user-login="maclura" class="lia-mention lia-mention-user"&gt;maclura&lt;/a&gt;&amp;nbsp;, no worries, those other before July are not gone with the wind; but the mechnism under the hood is not clear.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 18:41:04 GMT</pubDate>
    <dc:creator>CNENFRNL</dc:creator>
    <dc:date>2020-12-10T18:41:04Z</dc:date>
    <item>
      <title>Date Table - DAX - CALENDAR() - ADDCOLUMNS() - Quarter Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1543741#M30455</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I create a new Date table with DAX using the CALENDAR() function.&lt;BR /&gt;Adding new columns, no problem. When I add a new "Quarter" colum into the table my table stops starting from Jan 1st and move to start from Jul 1st.&lt;BR /&gt;I can't understand why.&amp;nbsp;Any help greatly appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;First Variant (correct)&lt;/STRONG&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;Date = 
    VAR MinDate = DATE(2016,1,1)
    VAR MaxDate = DATE(2021,12,31)
    RETURN

    ADDCOLUMNS (
        CALENDAR(MinDate, MaxDate),
        "Calendar Year", "CY " &amp;amp; YEAR ([Date])
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second Variant (wrong)&lt;/STRONG&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;Date = 
    VAR MinDate = DATE(2016,1,1)
    VAR MaxDate = DATE(2021,12,31)
    RETURN

    ADDCOLUMNS (
        CALENDAR(MinDate, MaxDate),
        "Calendar Year", "CY " &amp;amp; YEAR ([Date]),
        "Calendar Quarter", "CQ " &amp;amp; QUARTER([Date])
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Where I am wrong?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:11:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1543741#M30455</guid>
      <dc:creator>maclura</dc:creator>
      <dc:date>2020-12-10T18:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Table - DAX - CALENDAR() - ADDCOLUMNS() - Quarter Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1543794#M30458</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182199" data-lia-user-login="maclura" class="lia-mention lia-mention-user"&gt;maclura&lt;/a&gt;&amp;nbsp;, no worries, those other before July are not gone with the wind; but the mechnism under the hood is not clear.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 18:41:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1543794#M30458</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2020-12-10T18:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Table - DAX - CALENDAR() - ADDCOLUMNS() - Quarter Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1544840#M30491</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="250150" data-lia-user-login="CNENFRNL" class="lia-mention lia-mention-user"&gt;CNENFRNL&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;BR /&gt;If I was a little more savvy, I would have to get there on my own. But I agree with you, why generated dates are sorted in that way?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 08:10:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1544840#M30491</guid>
      <dc:creator>maclura</dc:creator>
      <dc:date>2020-12-11T08:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date Table - DAX - CALENDAR() - ADDCOLUMNS() - Quarter Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1545001#M30497</link>
      <description>&lt;P&gt;After some other tests, I think it should be something related to a chaching mechanism.&lt;BR /&gt;In fact, sorting issues happen not only with rows, but also with columns, when you add more columns into the formula. The new columns are created regardless of their position in the formula.&lt;BR /&gt;If you create a new date table, when you run the formula the first time, columns are created in the order they appear into the formula.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 09:17:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/1545001#M30497</guid>
      <dc:creator>maclura</dc:creator>
      <dc:date>2020-12-11T09:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date Table - DAX - CALENDAR() - ADDCOLUMNS() - Quarter Issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/2178287#M50674</link>
      <description>&lt;P&gt;I just had the same issue.&amp;nbsp; It is really weird that it would do that.&amp;nbsp; I had to sort the date column in mine asc to see it begining on 1/1/YYYY.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 14:11:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Table-DAX-CALENDAR-ADDCOLUMNS-Quarter-Issue/m-p/2178287#M50674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-08T14:11:31Z</dc:date>
    </item>
  </channel>
</rss>

