<?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: Indexing dates of the year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291891#M56355</link>
    <description>&lt;P&gt;Thank you! Will this work year over year? So I would like a 1-365 from 2019, but also 1-365 to 2020, and so on. Would I need seperate date tables for this?&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jan 2022 19:44:03 GMT</pubDate>
    <dc:creator>abeirne</dc:creator>
    <dc:date>2022-01-19T19:44:03Z</dc:date>
    <item>
      <title>Indexing dates of the year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291871#M56353</link>
      <description>&lt;P&gt;Hi, I would like to index the dates of each year (2019, 2020, 2021) so that I can match the index to the previous year's date.&lt;BR /&gt;&lt;BR /&gt;So 2019 would have the index on the dates, and then I could match the 2020 index to the 2019 dates. Kind of like SamePeriodLastYear, but I am not able to use this with my current data, as the original ID's are all different throughout the years. Please help, I can explain more if needed. I am looking at quotes sent throughout the years, and would like to compare then YoY, but cannot do so without being able to connect the quotes to a primary key. I was thinking the index would become the primary key. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 19:32:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291871#M56353</guid>
      <dc:creator>abeirne</dc:creator>
      <dc:date>2022-01-19T19:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing dates of the year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291880#M56354</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am not sure if I follow, what you are describing would be day of year? You can get day of year with this calculated column dax:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DayOfYear = &lt;/SPAN&gt;&lt;SPAN&gt;DATEDIFF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;STARTOFYEAR&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;'Calendar'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DAY&lt;/SPAN&gt;&lt;SPAN&gt;)+&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Jan 2022 19:38:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291880#M56354</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-19T19:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing dates of the year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291891#M56355</link>
      <description>&lt;P&gt;Thank you! Will this work year over year? So I would like a 1-365 from 2019, but also 1-365 to 2020, and so on. Would I need seperate date tables for this?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 19:44:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291891#M56355</guid>
      <dc:creator>abeirne</dc:creator>
      <dc:date>2022-01-19T19:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing dates of the year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291897#M56356</link>
      <description>&lt;P&gt;You would need separated table or some other logic to address leap years. The problem is that leap years will have numbers from 1-366.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 19:50:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Indexing-dates-of-the-year/m-p/2291897#M56356</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-19T19:50:27Z</dc:date>
    </item>
  </channel>
</rss>

