<?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 Show measure for previous year figure when filtering for current year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4601039#M176136</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure I am using to look for the average restoration time of incidents for the previous fiscal year, and it works for its intended purpose, but I would like for it to display when I am looking at the current fiscal year. How should I adjust the measure to display the same information that it currently does when looking for dates in the current fiscal year? The measure is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Time to Restore_2024 = CALCULATE([Mean Time to Restore],FILTER(Incidents,Incidents[Actual start of incident]&amp;gt;=2023/11/01&amp;amp;&amp;amp;Incidents[Actual start of the incident]&amp;lt;=(NOW()-365)))&lt;/LI-CODE&gt;&lt;P&gt;Currently, this displays a value that's in line with what I'm expecting when I filter for dates in the previous fiscal year. I would like for it to display&amp;nbsp;&lt;EM&gt;the same information&lt;/EM&gt; when filtering for dates only in the current fiscal year; it currently returns a blank if I do that (which is understandable given the way I've written this). Any assistance would be greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Mar 2025 19:35:08 GMT</pubDate>
    <dc:creator>TenguMan</dc:creator>
    <dc:date>2025-03-07T19:35:08Z</dc:date>
    <item>
      <title>Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4601039#M176136</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measure I am using to look for the average restoration time of incidents for the previous fiscal year, and it works for its intended purpose, but I would like for it to display when I am looking at the current fiscal year. How should I adjust the measure to display the same information that it currently does when looking for dates in the current fiscal year? The measure is as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Time to Restore_2024 = CALCULATE([Mean Time to Restore],FILTER(Incidents,Incidents[Actual start of incident]&amp;gt;=2023/11/01&amp;amp;&amp;amp;Incidents[Actual start of the incident]&amp;lt;=(NOW()-365)))&lt;/LI-CODE&gt;&lt;P&gt;Currently, this displays a value that's in line with what I'm expecting when I filter for dates in the previous fiscal year. I would like for it to display&amp;nbsp;&lt;EM&gt;the same information&lt;/EM&gt; when filtering for dates only in the current fiscal year; it currently returns a blank if I do that (which is understandable given the way I've written this). Any assistance would be greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 19:35:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4601039#M176136</guid>
      <dc:creator>TenguMan</dc:creator>
      <dc:date>2025-03-07T19:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4601387#M176154</link>
      <description>&lt;P&gt;If your data model has a proper Calendar table then you can use the standard time intelligence functions like SAMEPERIODLASTYEAR()&lt;/P&gt;</description>
      <pubDate>Sat, 08 Mar 2025 02:14:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4601387#M176154</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-08T02:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4603387#M176221</link>
      <description>&lt;P&gt;Will this still work if the period in question is across two calendar years? The fiscal year begins in November for this model, so I would be looking at data from November to February (ultimately November to October).&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 13:14:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4603387#M176221</guid>
      <dc:creator>TenguMan</dc:creator>
      <dc:date>2025-03-10T13:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4603412#M176223</link>
      <description>&lt;P&gt;yes.&amp;nbsp; It ony breaks down for fiscal quarters where you have to fall back to the underlying DATEADD(xxx,-3,MONTH)&amp;nbsp; function.&amp;nbsp; Comparing adjacent fiscal quarters is futile anyhow.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 13:20:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4603412#M176223</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-10T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4603896#M176239</link>
      <description>&lt;P&gt;To make sure, the function I would change it to would look something like this, right?&lt;/P&gt;&lt;P&gt;Time to Restore_2024 = CALCULATE([Time to Restore],FILTER(Incidents,SAMEPERIODLASTYEAR(Incidents[Incident Day]))&lt;/P&gt;&lt;P&gt;Assuming a relationship to the calendar table.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 19:16:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4603896#M176239</guid>
      <dc:creator>TenguMan</dc:creator>
      <dc:date>2025-03-10T19:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4604001#M176248</link>
      <description>&lt;P&gt;SAMEPERIODLASTYEAR needs to go against the dimension date, not the fact date.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 21:16:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4604001#M176248</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-10T21:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4605292#M176287</link>
      <description>&lt;P&gt;I tried this with the date key column from both the calendar and the incidents table, and it is not working as I expected. When I look at fiscal year 2025 dates, it shows 2025 data (expecting 2024); when I look at fiscal year 2024 dates, nothing happens.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 14:15:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4605292#M176287</guid>
      <dc:creator>TenguMan</dc:creator>
      <dc:date>2025-03-11T14:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4605525#M176298</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 16:42:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4605525#M176298</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-11T16:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4670167#M178878</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="461279" data-lia-user-login="TenguMan" class="lia-mention lia-mention-user"&gt;TenguMan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Super User has already highlighted -- kindly requesting you to share sample data so that we can assist more accurately and provide the best solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your query has been resolved, please feel free to share the solution here. It will help others in the community to resolve similar threads more easily.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 07:24:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4670167#M178878</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-04-28T07:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4679214#M179222</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="461279" data-lia-user-login="TenguMan" class="lia-mention lia-mention-user"&gt;TenguMan&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I wanted to follow up on our previous rwply regarding the issue. We would love to hear back from you to ensure we can assist you further.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you got the solution, Kindly share with the community members and please accept it as a solution so other members can easily find it. Please let us know if there’s anything else we can do to help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 04:39:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4679214#M179222</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-05-05T04:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show measure for previous year figure when filtering for current year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4732043#M181266</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="461279" data-lia-user-login="TenguMan" class="lia-mention lia-mention-user"&gt;TenguMan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you please confirm whether you have resolved issue.&amp;nbsp;If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well.&amp;nbsp;This will be helpful for other community members who have similar problems to solve it faster.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If we don’t hear back, we’ll go ahead and close this thread.Should you need further assistance in the future, we encourage you to reach out via the Microsoft Fabric Community Forum and create a new thread. We’ll be happy to help.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jun 2025 05:49:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-measure-for-previous-year-figure-when-filtering-for-current/m-p/4732043#M181266</guid>
      <dc:creator>v-sgandrathi</dc:creator>
      <dc:date>2025-06-14T05:49:21Z</dc:date>
    </item>
  </channel>
</rss>

