<?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: How to show trend of only the latest 3 Months (from Month selected) in the Line Graph? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3329639#M124751</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;thankyou for your reply mate i got some useful info from here but unfortunately it's not solving my problem&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 14:26:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-07-13T14:26:06Z</dc:date>
    <item>
      <title>How to show trend of only the latest 3 Months (from Month selected) in the Line Graph?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3329417#M124728</link>
      <description>&lt;P&gt;Hi, all. I have a Line Chart that shows Revenue over Month-Year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Month-Year comes from the Date Table. I also have two slicers, one for the&amp;nbsp;&lt;STRONG&gt;Year&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and one for the&amp;nbsp;&lt;STRONG&gt;Month,&amp;nbsp;&lt;/STRONG&gt;as shown in the image&amp;nbsp; &amp;nbsp;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My requirement is to show the&amp;nbsp;&lt;STRONG&gt;Last 3 Months&amp;nbsp;&lt;/STRONG&gt;from the selected Date in my Line Chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, now that I have selected&amp;nbsp;&lt;STRONG&gt;May 2020,&amp;nbsp;&lt;/STRONG&gt;then the Line Chart should show "March 2020, April 2020, May 2020", like this,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Similarly, If I have selected January 2020, it should show "Jan 2020, Dec 2019, Nov 2019"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or If I selected&amp;nbsp;&lt;STRONG&gt;All,&amp;nbsp;&lt;/STRONG&gt;then it should show the&amp;nbsp;Last three months from the&amp;nbsp;&lt;STRONG&gt;Maximum Date in current context.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I achieve this in Power BI? and is it possible to achieve this&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;without creating another Date Table?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help out in this? Thanks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="arial,helvetica,sans-serif" size="5"&gt;If anyone would like to download the Sample Power BI File, you can do so from here:&amp;nbsp;&lt;A href="https://drive.google.com/file/d/1RpKYMO7xaYuioMJPQ0Hh2XkIYsfaSwWp/view?usp=sharing" target="_blank" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/file/d/1RpKYMO7xaYuioMJPQ0Hh2XkIYsfaSwWp/view?usp=sharing&lt;/A&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:54:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3329417#M124728</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-13T12:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to show trend of only the latest 3 Months (from Month selected) in the Line Graph?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3329561#M124746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;check&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/slicer-filter-relative-time" target="_self"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/slicer-filter-relative-time&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Did I answer your question? Mark my post as a solution! Kudos Appreciated!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 13:57:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3329561#M124746</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-07-13T13:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to show trend of only the latest 3 Months (from Month selected) in the Line Graph?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3329639#M124751</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;thankyou for your reply mate i got some useful info from here but unfortunately it's not solving my problem&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 14:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3329639#M124751</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-13T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to show trend of only the latest 3 Months (from Month selected) in the Line Graph?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3335499#M125080</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create calculated table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table =
SUMMARIZE(
    'date','date'[year],'date'[month_name])&lt;/LI-CODE&gt;
&lt;P&gt;2. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _year=SELECTEDVALUE('Table'[year])
var _month=SELECTEDVALUE('Table'[month_name])
var _date=
MINX(
    FILTER(ALL('date'),
    'date'[year]=_year&amp;amp;&amp;amp;'date'[month_name]=_month),'date'[date])
var _date1=
EOMONTH(_date,-3)
var _date2=
EOMONTH(_date,0)
return
IF(
    MAX('date'[date])&amp;gt;_date1&amp;amp;&amp;amp;MAX('date'[date])&amp;lt;=_date2,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;3. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4. Result:&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;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 02:44:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-show-trend-of-only-the-latest-3-Months-from-Month/m-p/3335499#M125080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-07-18T02:44:51Z</dc:date>
    </item>
  </channel>
</rss>

