<?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: Creating a ISO week date table for academic purposes in higher education in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-ISO-week-date-table-for-academic-purposes-in-higher/m-p/2580733#M74036</link>
    <description>&lt;P&gt;Possible Solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking of using a switch true function to create academic years of the days between the dates provided above.&amp;nbsp; So, if DATE &amp;gt;= "2022-08-22" then "Academic Year 2022" and so forth.&amp;nbsp; Now, my thought is to create a list of 7 1's, 7 2's and for each of the given years down the column.&amp;nbsp; I know that GENERATESERIES can make series of number like 1, 2, 3, 4... down the column but I cannot find any documentation that can show how to make each value repeat 7 times down the column.&amp;nbsp; I am a little more versed in nested for and while loops which could do this iteration in other languages.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 15:27:48 GMT</pubDate>
    <dc:creator>dhall001</dc:creator>
    <dc:date>2022-06-15T15:27:48Z</dc:date>
    <item>
      <title>Creating a ISO week date table for academic purposes in higher education</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-ISO-week-date-table-for-academic-purposes-in-higher/m-p/2578734#M73928</link>
      <description>&lt;P&gt;Hello everyone!&amp;nbsp; I tried to create an academic date calendar with the WEEKNUM(DATE, 21) function and that works for the calendar year.&amp;nbsp; However, I need the first week to begin on these dates in August that are not separated by the same period of time:&lt;/P&gt;&lt;P&gt;(8/22/2022; 8/23/2021; 8/24/2020; 8/26/2019; 8/27/2018; 8/28/2017; 8/22/2016; 8/24/2015; 8/25/2014; 8/26/2013; 8/27/2012).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please help?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 22:58:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-ISO-week-date-table-for-academic-purposes-in-higher/m-p/2578734#M73928</guid>
      <dc:creator>dhall001</dc:creator>
      <dc:date>2022-06-14T22:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a ISO week date table for academic purposes in higher education</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-ISO-week-date-table-for-academic-purposes-in-higher/m-p/2580733#M74036</link>
      <description>&lt;P&gt;Possible Solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking of using a switch true function to create academic years of the days between the dates provided above.&amp;nbsp; So, if DATE &amp;gt;= "2022-08-22" then "Academic Year 2022" and so forth.&amp;nbsp; Now, my thought is to create a list of 7 1's, 7 2's and for each of the given years down the column.&amp;nbsp; I know that GENERATESERIES can make series of number like 1, 2, 3, 4... down the column but I cannot find any documentation that can show how to make each value repeat 7 times down the column.&amp;nbsp; I am a little more versed in nested for and while loops which could do this iteration in other languages.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 15:27:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-ISO-week-date-table-for-academic-purposes-in-higher/m-p/2580733#M74036</guid>
      <dc:creator>dhall001</dc:creator>
      <dc:date>2022-06-15T15:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a ISO week date table for academic purposes in higher education</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-ISO-week-date-table-for-academic-purposes-in-higher/m-p/2585086#M74316</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="387587" data-lia-user-login="dhall001" class="lia-mention lia-mention-user"&gt;dhall001&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try this solution.&lt;/P&gt;
&lt;P&gt;Here is the sample data created from a DAX formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = CALENDAR(DATE(2019,1,1),DATE(2022,12,31))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a Calculated column to identify Academic Year.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;First Day Of Fiscal Year =
SWITCH (
    TRUE (),
    'Table'[Date] &amp;gt;= DATE ( 2022, 8, 22 ), DATE ( 2022, 8, 22 ),
    'Table'[Date] &amp;gt;= DATE ( 2021, 8, 23 )
        &amp;amp;&amp;amp; 'Table'[Date] &amp;lt; DATE ( 2022, 8, 22 ), DATE ( 2021, 8, 23 ),
    'Table'[Date] &amp;gt;= DATE ( 2020, 8, 24 )
        &amp;amp;&amp;amp; 'Table'[Date] &amp;lt; DATE ( 2021, 8, 23 ), DATE ( 2020, 8, 24 ),
    'Table'[Date] &amp;gt;= DATE ( 2019, 8, 26 )
        &amp;amp;&amp;amp; 'Table'[Date] &amp;lt; DATE ( 2020, 8, 24 ), DATE ( 2019, 8, 26 ),
    'Table'[Date] &amp;gt;= DATE ( 2018, 8, 27 )
        &amp;amp;&amp;amp; DATE ( 2019, 8, 26 ), DATE ( 2018, 8, 27 )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create another Calculated column to get Fiscal Weeks.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Fiscal Weeks =
var FilteredTableCount=COUNTROWS(
        FILTER(
            SELECTCOLUMNS(
                GENERATESERIES(
                    'Table'[First Day Of Fiscal Year],
                    'Table'[Date]
                ),
                "Dates",
                [Value]
            ),
        FORMAT([Dates],"ddd")="Thu"    //mark the first thursday of the first week as week 1
        )
    )
VAR WeekNos =
    IF(
        FORMAT('Table'[Date],"ddd") &amp;lt;&amp;gt; "Thu",
        FilteredTableCount + 1,
        FilteredTableCount
    )
return WeekNos

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The result looks like this.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, attached the pbix file as reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post helps, then please consider&lt;STRONG&gt; Accept it as the solution&lt;/STRONG&gt; to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _ Caiyun&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 08:47:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-a-ISO-week-date-table-for-academic-purposes-in-higher/m-p/2585086#M74316</guid>
      <dc:creator>v-cazheng-msft</dc:creator>
      <dc:date>2022-06-17T08:47:08Z</dc:date>
    </item>
  </channel>
</rss>

