<?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: Measure for fiscal year budget total - ignoring month in line chart? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3473723#M132673</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628951" data-lia-user-login="SaAn" class="lia-mention lia-mention-user"&gt;SaAn&lt;/a&gt;&amp;nbsp;Yes, you are correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ALL('Date') part of the CALCULATE function ensures that the month context is ignored when calculating the Fiscal Year Budget Total.&amp;nbsp; It removes any filters or context applied to the 'Date' dimension, which allows you to calculate the Budget Value for the specified Fiscal Year (from May to April) without considering the specific month filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an essential part of the measure to achieve the desired result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad to hear that it worked for you! Please like the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2023 14:45:06 GMT</pubDate>
    <dc:creator>DallasBaba</dc:creator>
    <dc:date>2023-10-12T14:45:06Z</dc:date>
    <item>
      <title>Measure for fiscal year budget total - ignoring month in line chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3468750#M132420</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm struggeling creating a measure, which will display the fiscal year total sum all months (Budget values) to compare with the Actual MAT (moving annual total). I expect a straight line for each fiscal year period in the chart. I somehow need to ignore the month filter context or the like - but how? I have tried to illustrate the expected result in the picture below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The simplified data model for this case is one Date dimension and two facts holding actual and budget values, respectively.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The three main measures in this case are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Budget Value&lt;/STRONG&gt; = SUM(Budget Value)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual Value&lt;/STRONG&gt; = SUM(Actual Value)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual MAT&lt;/STRONG&gt; =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;MAT_StartDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;EDATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;), -&lt;/SPAN&gt;&lt;SPAN&gt;12&lt;/SPAN&gt;&lt;SPAN&gt;)+&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;MAT_EndDate&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;Result&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;[Actual Value]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAT_StartDate&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAT_EndDate&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;Result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Oct 2023 12:12:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3468750#M132420</guid>
      <dc:creator>SaAn</dc:creator>
      <dc:date>2023-10-10T12:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for fiscal year budget total - ignoring month in line chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3469524#M132452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628951" data-lia-user-login="SaAn" class="lia-mention lia-mention-user"&gt;SaAn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can modify your measure as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actual MAT =&lt;BR /&gt;VAR MAT_StartDate = EDATE( MAX('Date'[Date]), -12)+1&lt;BR /&gt;VAR MAT_EndDate = MAX('Date'[Date])&lt;/P&gt;&lt;P&gt;VAR Result = CALCULATE( [Actual Value], ALL('Date'), 'Date'[Date] &amp;gt;= MAT_StartDate &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= MAT_EndDate)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=========== Or&amp;nbsp;Another approach is to ========&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Create a Measure for Budget Totala = SUM('Budget'[Budget Value])&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Create a Measure for Actual Total = SUM('Actual'[Actual Value])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a Measure for Fiscal Year MAT Total =&lt;BR /&gt;VAR MAT_StartDate = EDATE(MAX('Date'[Date]), -12) + 1&lt;BR /&gt;VAR MAT_EndDate = MAX('Date'[Date])&lt;BR /&gt;VAR FiscalYearStart = DATE(YEAR(MAT_StartDate), 1, 1)&lt;BR /&gt;VAR FiscalYearEnd = DATE(YEAR(MAT_StartDate), 12, 31)&lt;BR /&gt;VAR Result =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Actual Total],&lt;BR /&gt;ALL('Date'),&lt;BR /&gt;FILTER('Date', 'Date'[Date] &amp;gt;= FiscalYearStart &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= FiscalYearEnd)&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know is this work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Babatunde Dallas&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 18:15:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3469524#M132452</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-10T18:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for fiscal year budget total - ignoring month in line chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3470739#M132518</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446607" data-lia-user-login="DallasBaba" class="lia-mention lia-mention-user"&gt;DallasBaba&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to replicate the measure you suggested. I have also created a modified version using Budget Total instead of Actual Total as the aim is to have a measure depicting the &lt;STRONG&gt;Fiscal Year&lt;/STRONG&gt; &lt;STRONG&gt;budget total&lt;/STRONG&gt;&amp;nbsp;(not MAT) as illustrated in my attachment in the original post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, our Fiscal Year is running from May to April. I have also tried to modify the measure according to that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result by replicating your suggested measures 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;I think the key aspect is to be able to sum budget by Fiscal Year, while ignoring the month context in the line chart. But I don't know how to do that in DAX.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 09:06:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3470739#M132518</guid>
      <dc:creator>SaAn</dc:creator>
      <dc:date>2023-10-11T09:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for fiscal year budget total - ignoring month in line chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3471855#M132578</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628951" data-lia-user-login="SaAn" class="lia-mention lia-mention-user"&gt;SaAn&lt;/a&gt;&amp;nbsp;you&amp;nbsp;can modify the measure by defining the start and end dates of the Fiscal Year based on the maximum date in your Date dimension and then use CALCULATE to sum the Budget Value for that period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fiscal Year Budget Total =&lt;BR /&gt;VAR FiscalYearStart = DATE(YEAR(MAX('Date'[Date])), 5, 1)&lt;BR /&gt;VAR FiscalYearEnd = DATE(YEAR(MAX('Date'[Date])) + 1, 4, 30) // Assuming your Fiscal Year ends on April 30th&lt;BR /&gt;VAR Result = CALCULATE([Budget Value], ALL('Date'), 'Date'[Date] &amp;gt;= FiscalYearStart &amp;amp;&amp;amp; 'Date'[Date] &amp;lt;= FiscalYearEnd)&lt;BR /&gt;RETURN Result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;:&lt;BR /&gt;This measure calculates the Budget Value for the specified Fiscal Year (from May to April) by ignoring the month context.&lt;BR /&gt;It first&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know is this works&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3471855#M132578</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-11T17:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for fiscal year budget total - ignoring month in line chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3473702#M132672</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446607" data-lia-user-login="DallasBaba" class="lia-mention lia-mention-user"&gt;DallasBaba&lt;/a&gt;&amp;nbsp;Brilliant. It worked. Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Just to be sure, it's the &lt;SPAN&gt;ALL('Date') subset of the CALCULATE that dictates to ignore the month context first of all?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 14:28:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3473702#M132672</guid>
      <dc:creator>SaAn</dc:creator>
      <dc:date>2023-10-12T14:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for fiscal year budget total - ignoring month in line chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3473723#M132673</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628951" data-lia-user-login="SaAn" class="lia-mention lia-mention-user"&gt;SaAn&lt;/a&gt;&amp;nbsp;Yes, you are correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ALL('Date') part of the CALCULATE function ensures that the month context is ignored when calculating the Fiscal Year Budget Total.&amp;nbsp; It removes any filters or context applied to the 'Date' dimension, which allows you to calculate the Budget Value for the specified Fiscal Year (from May to April) without considering the specific month filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an essential part of the measure to achieve the desired result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad to hear that it worked for you! Please like the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2023 14:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3473723#M132673</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-12T14:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for fiscal year budget total - ignoring month in line chart?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3474901#M132731</link>
      <description>&lt;P&gt;Thanks for your help&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446607" data-lia-user-login="DallasBaba" class="lia-mention lia-mention-user"&gt;DallasBaba&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 06:40:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-fiscal-year-budget-total-ignoring-month-in-line/m-p/3474901#M132731</guid>
      <dc:creator>SaAn</dc:creator>
      <dc:date>2023-10-13T06:40:48Z</dc:date>
    </item>
  </channel>
</rss>

