<?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 be 12 months or a rollout by month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/832660#M6055</link>
    <description>&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;This solution works but only if I select the year and the month.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am using Power KPI 2.0 to show the rolling average and date hierarchy only shows the year. This gives me a really bad chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new at Power BI and I don't know what to do to fix this problem.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2019 14:10:06 GMT</pubDate>
    <dc:creator>TiaCamilian</dc:creator>
    <dc:date>2019-10-30T14:10:06Z</dc:date>
    <item>
      <title>Calculate be 12 months or a rollout by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/829001#M5919</link>
      <description>&lt;P&gt;On the following table "&lt;STRONG&gt;&lt;SPAN&gt;QuoteConvertionStartDate&lt;/SPAN&gt;&lt;/STRONG&gt;" I have columns for Date, Total, and Accepted&lt;/P&gt;&lt;P&gt;I need to calculate the "&lt;STRONG&gt;Total 12 moth roll&lt;/STRONG&gt;" and "&lt;STRONG&gt;Accepted 12 Moth Roll"&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I did the numbers manually to give a result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example to calculate the Total 12 months roll for Tusday January 1 2019 I have to sum:&lt;/P&gt;&lt;P&gt;Tusday January 1 2019 to Thrusday February 1 2018 = 40&lt;/P&gt;&lt;P&gt;To calculate the Total 12 months roll for Saturday December 1 2018 I have to sum: &amp;nbsp;&lt;/P&gt;&lt;P&gt;Saturday December 1 2018 to Monday January 1, 2018 = 41&lt;/P&gt;&lt;P&gt;To calculate the Total 12 months roll for Thusday November 1 2018 I have to sum:&lt;/P&gt;&lt;P&gt;Thusday November 1 2018 to Friday December 1, 2017 = 45&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;I have to do the same for Accepted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried the following DAX but is giving me the total by month and is giving me the total by 12 months or rolling back 12 months:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;__Value L12M = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR __EndDate = EOMONTH(LASTDATE(QuoteConvertionStartDate[Date].[Date]),0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR __StartDate = DATE(YEAR(__EndDate),MONTH(__EndDate) - 12, 2)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(QuoteConvertionStartDate[Total], DATESBETWEEN(QuoteConvertionStartDate[Date].[Date], __StartDate, __EndDate))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 20:34:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/829001#M5919</guid>
      <dc:creator>TiaCamilian</dc:creator>
      <dc:date>2019-10-25T20:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate be 12 months or a rollout by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/829103#M5926</link>
      <description>&lt;P&gt;You need a calendar table to write time intelligence formulas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here are some articles that I wrote&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://exceleratorbi.com.au/power-pivot-calendar-tables/" target="_blank"&gt;https://exceleratorbi.com.au/power-pivot-calendar-tables/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://exceleratorbi.com.au/dax-time-intelligence-beginners/" target="_blank"&gt;https://exceleratorbi.com.au/dax-time-intelligence-beginners/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you could write something like&lt;/P&gt;
&lt;P&gt;CALCULATE(sum(table[column]),datesinperiod(calendar[date],max(calendar[date]),-1,year))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Oct 2019 03:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/829103#M5926</guid>
      <dc:creator>MattAllington</dc:creator>
      <dc:date>2019-10-26T03:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate be 12 months or a rollout by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/832660#M6055</link>
      <description>&lt;P&gt;Thank you for the help.&lt;/P&gt;&lt;P&gt;This solution works but only if I select the year and the month.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I am using Power KPI 2.0 to show the rolling average and date hierarchy only shows the year. This gives me a really bad chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new at Power BI and I don't know what to do to fix this problem.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 14:10:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/832660#M6055</guid>
      <dc:creator>TiaCamilian</dc:creator>
      <dc:date>2019-10-30T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate be 12 months or a rollout by month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/836284#M6201</link>
      <description>&lt;P&gt;I fixed the problem with this solution&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 13:33:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-be-12-months-or-a-rollout-by-month/m-p/836284#M6201</guid>
      <dc:creator>TiaCamilian</dc:creator>
      <dc:date>2019-11-04T13:33:43Z</dc:date>
    </item>
  </channel>
</rss>

