<?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: Calculate First Day of Fiscal Week, Month and Quarter based on date selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188566#M115554</link>
    <description>&lt;P&gt;You can use&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Start Fiscal Quarter =
CALCULATE (
    MIN ( 'Budget Calendar'[Date] ),
    ALL ( 'Budget Calendar' ),
    VALUES ( 'Budget Calendar'[Fiscal Year Quarter] )
)
&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 14 Apr 2023 12:52:52 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-04-14T12:52:52Z</dc:date>
    <item>
      <title>Calculate First Day of Fiscal Week, Month and Quarter based on date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188386#M115531</link>
      <description>&lt;P&gt;Hi I have a date range selector as below.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using below dax, I get the "ToDate"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;02DateTo = max(BudgetCalendar[Date])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I wish to retrieve the first date of that fiscal week, month and quarter of that "ToDate"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if 04-Oct-23 is selected as ToDate, the corresponding fiscal week will be 40, fiscal month 10 and fiscal quarter 4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need a dax measure that will tell me the start date of week 40, fiscal month 10 and fiscal quarter 4. Please note that fiscal week, month and quarter might not necessarily start on the 1st of each month.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 11:16:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188386#M115531</guid>
      <dc:creator>Ackbar-Learner</dc:creator>
      <dc:date>2023-04-14T11:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate First Day of Fiscal Week, Month and Quarter based on date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188566#M115554</link>
      <description>&lt;P&gt;You can use&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Start Fiscal Quarter =
CALCULATE (
    MIN ( 'Budget Calendar'[Date] ),
    ALL ( 'Budget Calendar' ),
    VALUES ( 'Budget Calendar'[Fiscal Year Quarter] )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188566#M115554</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-14T12:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate First Day of Fiscal Week, Month and Quarter based on date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188602#M115558</link>
      <description>&lt;P&gt;Not working as intended. It is returning the first date in my budget calendar &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;. Remember there is a date filter already on the page!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:10:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188602#M115558</guid>
      <dc:creator>Ackbar-Learner</dc:creator>
      <dc:date>2023-04-14T13:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate First Day of Fiscal Week, Month and Quarter based on date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188640#M115562</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;First day fiscal quarter =
VAR CurrentQuarter =
    LOOKUPVALUE (
        'Budget calendar'[Fiscal year quarter],
        'Budget calendar'[Date], [02DateTo]
    )
RETURN
    CALCULATE (
        MIN ( 'Budget Calendar'[Date] ),
        REMOVEFILTERS ( 'Budget Calendar' ),
        'Budget Calendar'[Fiscal year quarter] = CurrentQuarter
    )
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:24:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188640#M115562</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-14T13:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate First Day of Fiscal Week, Month and Quarter based on date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188684#M115568</link>
      <description>&lt;P&gt;This works fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:36:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-First-Day-of-Fiscal-Week-Month-and-Quarter-based-on/m-p/3188684#M115568</guid>
      <dc:creator>Ackbar-Learner</dc:creator>
      <dc:date>2023-04-14T13:36:30Z</dc:date>
    </item>
  </channel>
</rss>

