<?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 calculated for rolling specified period in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4233215#M167425</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659898" data-lia-user-login="ewakol" class="lia-mention lia-mention-user"&gt;ewakol&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a good day. Did you resolve the issue? If the issue persists, could you please share sample data and expected output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wearsky&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2024 08:32:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-10-08T08:32:46Z</dc:date>
    <item>
      <title>Measure calculated for rolling specified period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4169892#M165642</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i calculate&amp;nbsp;Demand Plan Monthly Error as a measure DPME = |Demand Plan - Actual Sales| / Actual Sales&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result looks similar like that:&lt;/P&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;i also give informaction how DPME look for last 12 month altogether. In showed example is 77% (ist not average, DPME is calculated for last 12 mc altogether). I have to prepare a chart as above but instead of showing for yyyy-mm data for a given month, I have to show, data for the last 12 months. Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For data prepared in Sep-24&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in 2024.8 need to show DPME for period from 2024.8 to 2023.9&amp;nbsp;(for 12 months, but calculated from the month that was 1 months ago)&lt;/LI&gt;&lt;LI&gt;in 2024.7&amp;nbsp; need to show DPME for period from 2024.7 to 2023.8 (for 12 months, but calculated from the month that was 2 months ago)&lt;/LI&gt;&lt;LI&gt;in 2024.6&amp;nbsp; need to show DPME for period from 2024.6 to 2023.7 (for 12 months, but calculated from the month that was 3 months ago)&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;(......)&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;in 2023.9&amp;nbsp; need to show DPME for period from 2024.9 to 2022.10 (for 12 months, but calculated from the month that was 12 months ago)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;is it posiible to do some measures like that? which can be put on chart on the top?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:25:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4169892#M165642</guid>
      <dc:creator>ewakol</dc:creator>
      <dc:date>2024-09-24T08:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculated for rolling specified period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4170336#M165660</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659898" data-lia-user-login="ewakol" class="lia-mention lia-mention-user"&gt;ewakol&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Create a Date Table: Ensure you have a Date table in your model. If not, create one. This table should have a continuous range of dates covering the period of your data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create the DPME Measure: Use DAX to create a measure that calculates the DPME for the last 12 months.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DPME 12 Month Rolling = &lt;BR /&gt;VAR CurrentDate = MAX('Date'[Date])&lt;BR /&gt;VAR StartDate = EDATE(CurrentDate, -12) + 1&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUMX(&lt;BR /&gt;'Sales',&lt;BR /&gt;ABS('Sales'[Demand Plan] - 'Sales'[Actual Sales]) / 'Sales'[Actual Sales]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a Line Chart: Add a line chart to your Power BI report.&lt;/P&gt;
&lt;P&gt;Add Data to the Chart:&lt;/P&gt;
&lt;P&gt;Drag the Date field from your Date table to the Axis of the chart.&lt;BR /&gt;Drag the DPME 12 Month Rolling measure to the Values of the chart.&lt;BR /&gt;Format the Chart: Adjust the chart formatting as needed to display the data clearly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 11:06:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4170336#M165660</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-09-24T11:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculated for rolling specified period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4177348#M165889</link>
      <description>&lt;P&gt;Than you very much for reply, i tried this solution but it doesny work please see below:&lt;BR /&gt;&lt;BR /&gt;&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>Thu, 26 Sep 2024 09:24:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4177348#M165889</guid>
      <dc:creator>ewakol</dc:creator>
      <dc:date>2024-09-26T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure calculated for rolling specified period</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4233215#M167425</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="659898" data-lia-user-login="ewakol" class="lia-mention lia-mention-user"&gt;ewakol&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a good day. Did you resolve the issue? If the issue persists, could you please share sample data and expected output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Wearsky&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2024 08:32:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-calculated-for-rolling-specified-period/m-p/4233215#M167425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-08T08:32:46Z</dc:date>
    </item>
  </channel>
</rss>

