<?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: Rolling 4 Quarters Based on Slicer Selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3528816#M135595</link>
    <description>&lt;P&gt;Looks like you need to use "all except( table, location) instead of all ( table). Just try and let me know.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 11 Nov 2023 05:37:52 GMT</pubDate>
    <dc:creator>Rupak_bi</dc:creator>
    <dc:date>2023-11-11T05:37:52Z</dc:date>
    <item>
      <title>Rolling 4 Quarters Based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3528116#M135575</link>
      <description>&lt;P&gt;Hi everyone, I've been stuggling to figure out a solution and hoping that someone in this community could point me in the right direction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;End Goal: Table/Matrix the displays only data for Last 4 Quarters based on slicer selection&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I found the following post here, and was able to implement for my situation and it is mostly working: &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/Show-previous-three-quarters-based-on-quarter-selected-in-slicer/m-p/2040729#M764501" target="_self"&gt;link&lt;/A&gt;&amp;nbsp;&lt;UL&gt;&lt;LI&gt;Summary: use a disconnected date table and a flag measure to flag the last four quarters. Then, use a visual level filter and the flag measure to filter for only for quarters with "Y" as these are the last four quarters&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is the measure I'm using to flag the last 4 quarters:&lt;/P&gt;&lt;P&gt;&amp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t;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;[Quarter Index]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TimeFrame&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;_max&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;TimeFrame&lt;/SPAN&gt;&lt;SPAN&gt; &amp;gt;= &lt;/SPAN&gt;&lt;SPAN&gt;_min&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Y"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"N"&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Issue: This approach doesn't seem to work when there are rows added to the matrix from other tables - ie a location table.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;See attached pbi file for example of the issue: &lt;A href="https://drive.google.com/file/d/16jWgVU_fK3YWPasq0JYP5zQMW8OFw4Ta/view?usp=sharing" target="_self"&gt;pbi example - google drive&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The first matrix shows the R4 quarters, which is how this should work&lt;/LI&gt;&lt;LI&gt;The second matrix includes the location code, which causes the R4 quarter flag filter to no longer work&lt;/LI&gt;&lt;LI&gt;I imagine that there is something in the DAX of the R4 quarter flag that is cuasing the rows to override the column filter, however, I am not able to figure out what is causing this&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It would be so appreciated if anyone is able to provide any suggestions how to make this work when there is row data as well. Thank you in advance for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 16:14:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3528116#M135575</guid>
      <dc:creator>skoldier24</dc:creator>
      <dc:date>2023-11-10T16:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 4 Quarters Based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3528816#M135595</link>
      <description>&lt;P&gt;Looks like you need to use "all except( table, location) instead of all ( table). Just try and let me know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 05:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3528816#M135595</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2023-11-11T05:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 4 Quarters Based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3529189#M135606</link>
      <description>&lt;P&gt;Hi Rupak, thanks for your response. I tried using ALLEXCEPT instead of ALL and I couldn't get to work on my end. I am maybe using wrong - did this work for you in the example pbi file? Thanks again, truly appreciate any help!&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 19:16:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3529189#M135606</guid>
      <dc:creator>skoldier24</dc:creator>
      <dc:date>2023-11-11T19:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 4 Quarters Based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3537616#M135933</link>
      <description>&lt;P&gt;Does anyone else have any thoughts on this? Would love any input!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 17:25:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3537616#M135933</guid>
      <dc:creator>skoldier24</dc:creator>
      <dc:date>2023-11-16T17:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 4 Quarters Based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3539138#M136009</link>
      <description>&lt;P&gt;is it OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 13:07:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3539138#M136009</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2023-11-17T13:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 4 Quarters Based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3539491#M136026</link>
      <description>&lt;P&gt;That looks right! Could you please post the DAX? thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 16:51:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3539491#M136026</guid>
      <dc:creator>skoldier24</dc:creator>
      <dc:date>2023-11-17T16:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 4 Quarters Based on Slicer Selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3539698#M136028</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Just modify your if statement as below.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TimeFrame&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;_max&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;amp;&amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;TimeFrame&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;gt;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;_min&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Y"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;Blank()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Nov 2023 20:03:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-4-Quarters-Based-on-Slicer-Selection/m-p/3539698#M136028</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2023-11-17T20:03:56Z</dc:date>
    </item>
  </channel>
</rss>

