<?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: Last N quarters from selected quarter and year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3269950#M121144</link>
    <description>&lt;P&gt;The principle should be the same, you would need to modify the measure or calculation item to take into account quarters rather than months.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 08:14:28 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2023-06-06T08:14:28Z</dc:date>
    <item>
      <title>Last N quarters from selected quarter and year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3268252#M121044</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have requirement that when i'm selected quarter, bar graph need to show last 5 quarters from selected quarter.&lt;/P&gt;&lt;P&gt;I have sales table and i need to check how many sales are happend in last 5 quarters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have year Slicer and Quarter Slicer, i selected 2023 qtr 1 then i need to show&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qtr1-23,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qtr4-22,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qtr3-22,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qtr2-22,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qtr1-22&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Siva&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 10:24:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3268252#M121044</guid>
      <dc:creator>siva54</dc:creator>
      <dc:date>2023-06-05T10:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Last N quarters from selected quarter and year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3268528#M121069</link>
      <description>&lt;P&gt;Have a look at&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/show-previous-6-months-of-data-from-single-slicer-selection/" target="_blank"&gt;https://www.sqlbi.com/articles/show-previous-6-months-of-data-from-single-slicer-selection/&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 13:12:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3268528#M121069</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-05T13:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Last N quarters from selected quarter and year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3269636#M121129</link>
      <description>&lt;P&gt;Hi Johnt75,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working for monthly scenario, when it comes to Quarter it is not working. Could you please help me.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 04:16:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3269636#M121129</guid>
      <dc:creator>siva54</dc:creator>
      <dc:date>2023-06-06T04:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Last N quarters from selected quarter and year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3269950#M121144</link>
      <description>&lt;P&gt;The principle should be the same, you would need to modify the measure or calculation item to take into account quarters rather than months.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 08:14:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3269950#M121144</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-06T08:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Last N quarters from selected quarter and year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3270193#M121169</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used this dax&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Last4Qtrs = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;NumOfqtr&lt;/SPAN&gt;&lt;SPAN&gt; =-4&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt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Date]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Date]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;Result&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;I'm getting an extra quarter like this&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Jun 2023 10:17:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3270193#M121169</guid>
      <dc:creator>siva54</dc:creator>
      <dc:date>2023-06-06T10:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Last N quarters from selected quarter and year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3270289#M121181</link>
      <description>&lt;P&gt;Check that the date column in your fact table, which is linked to the date table, is of type date and not datetime. You'll need to check in both Power Query and in Power BI desktop.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 11:07:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Last-N-quarters-from-selected-quarter-and-year/m-p/3270289#M121181</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-06-06T11:07:17Z</dc:date>
    </item>
  </channel>
</rss>

