<?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: Fiscal year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176110#M114650</link>
    <description>&lt;P&gt;Is giving me 1 not 4.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 13:53:09 GMT</pubDate>
    <dc:creator>djreyes</dc:creator>
    <dc:date>2023-04-06T13:53:09Z</dc:date>
    <item>
      <title>Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3175131#M114592</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fiscal year starts April, I tried the formula below but I am getting an error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Column 2 = if(QUARTER(PowerBi[Document Date].[Quarter])&amp;gt;=2,QUARTER(PowerBi[Document Date].[Quarter])-1,QUARTER(PowerBi[Document Date].[Quarter])+1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message is: Cannot convert Qrt 1 of Type Test to type Date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel like I am missing something. Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 03:41:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3175131#M114592</guid>
      <dc:creator>djreyes</dc:creator>
      <dc:date>2023-04-06T03:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3175474#M114615</link>
      <description>&lt;P&gt;The QUARTER function expects a date, but you're passing in the quarter from the date hierarchy. Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column 2 =
IF (
    QUARTER ( PowerBi[Document Date].[Date] ) &amp;gt;= 2,
    QUARTER ( PowerBi[Document Date].[Date] ) - 1,
    QUARTER ( PowerBi[Document Date].[Date] ) + 1
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Apr 2023 08:23:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3175474#M114615</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-06T08:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176092#M114647</link>
      <description>&lt;P&gt;It worked, question though, I am running a report from January to March which is Quarter 1 for calendar year, but in our fiscal year its quarter 4. Its giving me the result of 2 instead of 4.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 13:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176092#M114647</guid>
      <dc:creator>djreyes</dc:creator>
      <dc:date>2023-04-06T13:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176108#M114649</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column 2 =
VAR CalendarQuarter =
    IF (
        QUARTER ( PowerBi[Document Date].[Date] ) &amp;gt;= 2,
        QUARTER ( PowerBi[Document Date].[Date] ) - 1,
        QUARTER ( PowerBi[Document Date].[Date] ) + 1
    )
VAR FiscalQuarter =
    MOD ( CalendarQuarter + 3, 4 )
RETURN
    FiscalQuarter
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Apr 2023 13:51:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176108#M114649</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-06T13:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176110#M114650</link>
      <description>&lt;P&gt;Is giving me 1 not 4.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 13:53:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176110#M114650</guid>
      <dc:creator>djreyes</dc:creator>
      <dc:date>2023-04-06T13:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176125#M114651</link>
      <description>&lt;P&gt;Probably easier to just use SWITCH&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column 2 =
VAR CalendarQuarter =
    IF (
        QUARTER ( PowerBi[Document Date].[Date] ) &amp;gt;= 2,
        QUARTER ( PowerBi[Document Date].[Date] ) - 1,
        QUARTER ( PowerBi[Document Date].[Date] ) + 1
    )
VAR FiscalQuarter =
    SWITCH ( CalendarQuarter, 1, 4, 2, 1, 3, 2, 4, 3 )
RETURN
    FiscalQuarter
&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Apr 2023 13:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176125#M114651</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-06T13:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176135#M114653</link>
      <description>&lt;P&gt;Still 1, I changed the value to 3 and the result is 4, is that an option?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Column 2 =
IF (
    QUARTER ( PowerBi[Document Date].[Date] ) &amp;gt;= 2,
    QUARTER ( PowerBi[Document Date].[Date] ) - 1,
    QUARTER ( PowerBi[Document Date].[Date] ) + 3
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:03:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176135#M114653</guid>
      <dc:creator>djreyes</dc:creator>
      <dc:date>2023-04-06T14:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Fiscal year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176138#M114654</link>
      <description>&lt;P&gt;Yep, that should give the right result I think&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 14:05:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Fiscal-year/m-p/3176138#M114654</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-06T14:05:45Z</dc:date>
    </item>
  </channel>
</rss>

