<?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: year function in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3070866#M106575</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511389" data-lia-user-login="PriscaSalve" class="lia-mention lia-mention-user"&gt;PriscaSalve&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you just make sure if you have created a Relationship between Year column of "STARTUP FILE" table and Year column of "Table 2"?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please refer to the below screenshot for sample reference,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;Inogic Professional Service Division&lt;/P&gt;&lt;P&gt;An expert technical extension for your techno-functional business needs&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM&lt;/P&gt;&lt;P&gt;Drop an email at &lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Service:&amp;nbsp; &lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2023 04:26:33 GMT</pubDate>
    <dc:creator>SamInogic</dc:creator>
    <dc:date>2023-02-09T04:26:33Z</dc:date>
    <item>
      <title>year function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068387#M106343</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;when I apply the data type in text it show current size and when i apply data type in year its show this result kindly help&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 09:05:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068387#M106343</guid>
      <dc:creator>PriscaSalve</dc:creator>
      <dc:date>2023-02-08T09:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: year function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068492#M106349</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511389" data-lia-user-login="PriscaSalve" class="lia-mention lia-mention-user"&gt;PriscaSalve&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can try below expression for the table as this creates a Year column as Whole Number by default,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Table = ADDCOLUMNS(CALENDAR(DATE(2016,1,1), DATE(YEAR(TODAY()) + 5, Month(TODAY()), DAY(TODAY()))), "Year", YEAR([Date]))&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please refer to the below screenshot.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If this answer helps, please mark it as Accepted Solution so it would help others to find the solution.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;Inogic Professional Service Division&lt;/P&gt;&lt;P&gt;An expert technical extension for your techno-functional business needs&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM&lt;/P&gt;&lt;P&gt;Drop an email at &lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Service:&amp;nbsp; &lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 09:32:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068492#M106349</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-02-08T09:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: year function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068571#M106357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Or just simply create a column with format function :&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;Year = FORMAT( [YourDateColumn] , "yyyy" )&lt;/PRE&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS : When you see your comumn as date type, it's normal you see 8 july 1905, &lt;BR /&gt;because it is 2014 days after the 1st january 1900. &lt;BR /&gt;Dates can be shown as serial numbers counting from 31/12/1899.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 09:53:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068571#M106357</guid>
      <dc:creator>AilleryO</dc:creator>
      <dc:date>2023-02-08T09:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: year function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068772#M106383</link>
      <description>&lt;P&gt;hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511389" data-lia-user-login="PriscaSalve" class="lia-mention lia-mention-user"&gt;PriscaSalve&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the result of YEAR() is by default set as Whole Number. Do not change the type to Text, it seems OK, but you might need to calculate on year or at least compare them. If you change the type to Date, it takes the year number as a serial number starting from 1899-12-31, which is wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 11:45:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068772#M106383</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-02-08T11:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: year function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068828#M106387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511389" data-lia-user-login="PriscaSalve" class="lia-mention lia-mention-user"&gt;PriscaSalve&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I am getting the year value in numeric. below is my dax&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 12:13:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3068828#M106387</guid>
      <dc:creator>Aburar_123</dc:creator>
      <dc:date>2023-02-08T12:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: year function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3069467#M106429</link>
      <description>&lt;P&gt;THANKS FOR THE SOLUTION I HAVE APPLIED ON IT BUT WHEN I APPLY ON CHART IT THERE A DIFFRENCE IN THE GRAPH.&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 15:29:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3069467#M106429</guid>
      <dc:creator>PriscaSalve</dc:creator>
      <dc:date>2023-02-08T15:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: year function</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3070866#M106575</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="511389" data-lia-user-login="PriscaSalve" class="lia-mention lia-mention-user"&gt;PriscaSalve&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Can you just make sure if you have created a Relationship between Year column of "STARTUP FILE" table and Year column of "Table 2"?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please refer to the below screenshot for sample reference,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;&lt;P&gt;Inogic Professional Service Division&lt;/P&gt;&lt;P&gt;An expert technical extension for your techno-functional business needs&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM&lt;/P&gt;&lt;P&gt;Drop an email at &lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Service:&amp;nbsp; &lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 04:26:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/year-function/m-p/3070866#M106575</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-02-09T04:26:33Z</dc:date>
    </item>
  </channel>
</rss>

