<?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 Look at last 14 months and include in Table or not in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Look-at-last-14-months-and-include-in-Table-or-not/m-p/3102212#M109119</link>
    <description>&lt;P&gt;I have a page where I select the month and it display the Revenue for that Financial Month. Now the client want the following to determine commercially dead customers .&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"If 14 consecutive months prior to Selected Month and including the selected month, there is 0 revenue each month - Then Include in Table"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Figure 1 - Formula for standard Revenue for the month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Revenue USD =&lt;/P&gt;&lt;P&gt;VAR ReferenceDate = MAX('Time'[Financial_Month] )&lt;BR /&gt;VAR _Revenue_USD = SUM ( 'FinanceData'[usd_revenue] )&lt;/P&gt;&lt;P&gt;RETURN IF ( _Revenue_USD&amp;gt;=0 &amp;amp;&amp;amp; ReferenceDate="Current Month", _Revenue_USD, _Revenue_USD)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a simple DAX way to do this ?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 18:21:16 GMT</pubDate>
    <dc:creator>JimmyKhan2022</dc:creator>
    <dc:date>2023-02-27T18:21:16Z</dc:date>
    <item>
      <title>Look at last 14 months and include in Table or not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Look-at-last-14-months-and-include-in-Table-or-not/m-p/3102212#M109119</link>
      <description>&lt;P&gt;I have a page where I select the month and it display the Revenue for that Financial Month. Now the client want the following to determine commercially dead customers .&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;"If 14 consecutive months prior to Selected Month and including the selected month, there is 0 revenue each month - Then Include in Table"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Figure 1 - Formula for standard Revenue for the month&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Revenue USD =&lt;/P&gt;&lt;P&gt;VAR ReferenceDate = MAX('Time'[Financial_Month] )&lt;BR /&gt;VAR _Revenue_USD = SUM ( 'FinanceData'[usd_revenue] )&lt;/P&gt;&lt;P&gt;RETURN IF ( _Revenue_USD&amp;gt;=0 &amp;amp;&amp;amp; ReferenceDate="Current Month", _Revenue_USD, _Revenue_USD)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there a simple DAX way to do this ?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 18:21:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Look-at-last-14-months-and-include-in-Table-or-not/m-p/3102212#M109119</guid>
      <dc:creator>JimmyKhan2022</dc:creator>
      <dc:date>2023-02-27T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Look at last 14 months and include in Table or not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Look-at-last-14-months-and-include-in-Table-or-not/m-p/3102267#M109125</link>
      <description>&lt;P&gt;Do you have some example data without sensitve data?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 19:07:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Look-at-last-14-months-and-include-in-Table-or-not/m-p/3102267#M109125</guid>
      <dc:creator>andhiii079845</dc:creator>
      <dc:date>2023-02-27T19:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Look at last 14 months and include in Table or not</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Look-at-last-14-months-and-include-in-Table-or-not/m-p/3102312#M109132</link>
      <description>&lt;P&gt;first calculate revenue for last 14 months&lt;/P&gt;&lt;P&gt;var daterange =&amp;nbsp;&lt;SPAN&gt;L&lt;/SPAN&gt;&lt;SPAN&gt;ASTDATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt; ( '&lt;/SPAN&gt;&lt;SPAN&gt;Date Table'[&lt;/SPAN&gt;&lt;SPAN&gt;Date])&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR _Revenue_USD = SUM&lt;/SPAN&gt; &lt;SPAN&gt;( 'FinanceData'[usd_revenue]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATES&lt;/SPAN&gt;&lt;SPAN&gt;INPERIOD&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Date Table&lt;/SPAN&gt;&lt;SPAN&gt;'[Date&lt;/SPAN&gt;&lt;SPAN&gt;], dat&lt;/SPAN&gt;&lt;SPAN&gt;eR&lt;/SPAN&gt;&lt;SPAN&gt;ange, -&lt;/SPAN&gt;&lt;SPAN&gt;14&lt;/SPAN&gt;&lt;SPAN&gt;,MO&lt;/SPAN&gt;&lt;SPAN&gt;NT&lt;/SPAN&gt;&lt;SPAN&gt;H&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;then you can apply if condition&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;if(&lt;SPAN&gt;_Revenue_USD= 0 ,_Revenue_USD)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Feb 2023 19:35:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Look-at-last-14-months-and-include-in-Table-or-not/m-p/3102312#M109132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-27T19:35:21Z</dc:date>
    </item>
  </channel>
</rss>

