<?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: Date Slicer Showing Previous Quarter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4177402#M165894</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for your reply, I went with solution #2 and it worked just fine! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2024 09:37:12 GMT</pubDate>
    <dc:creator>cn4422</dc:creator>
    <dc:date>2024-09-26T09:37:12Z</dc:date>
    <item>
      <title>Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4154080#M165092</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a dynamic slicer that automatically is set to and shows the previous quarter.&lt;/P&gt;&lt;P&gt;I have a date table but I'm not quite sure how to accomplish this. Probably with a DAX formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link to the example data:&lt;/P&gt;&lt;P&gt;&lt;A title="Sample Data" href="https://drive.google.com/file/d/1Io1r-Wk1NF2SFa6ADs3G07mmY6EB5M6x/view?usp=sharing" target="_self"&gt;Sample Data&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx for your help!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 08:24:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4154080#M165092</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-09-17T08:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4154161#M165097</link>
      <description>&lt;P&gt;I usually add "relative" calculated columns to the date dimension table. So "relative quarter" would be 1 for next quarter, 0 for the current , -1 for the previous and -2 for the quarter before the previous etc. Likewise for year, month, week and day. This way you can also easily report on the last 3 months.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 08:57:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4154161#M165097</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-09-17T08:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4156114#M165158</link>
      <description>&lt;P&gt;Thanks for your reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not 100% sure how to do this...&lt;/P&gt;&lt;P&gt;Should I add a new Column into the date table (the one from the sample data) - or do I need to create a new dimension table where I put the "relative quarter"?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 08:12:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4156114#M165158</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-09-18T08:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4156829#M165183</link>
      <description>&lt;P&gt;Can't download the sample data (link is blocked) but the column(s) must be added to the existing date dimension table.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 12:45:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4156829#M165183</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-09-18T12:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4159081#M165259</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226664" data-lia-user-login="sjoerdvn" class="lia-mention lia-mention-user"&gt;sjoerdvn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Strange that the download didn't work with google drive link (I have uploaded again, this time with a dropbox link - you can (usually) download the file just bei declining to register, in case you don't have a DP account).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Sample Data" href="https://www.dropbox.com/scl/fi/en7gqjw5285sdylcs6dav/Date-Table-Previous-Quarter-Slicer-Example.pbix?rlkey=ibha5ppnykze4pfnslqhwq4tr&amp;amp;st=m9j6s7fo&amp;amp;dl=0" target="_self"&gt;Download Sample Data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have here a screenshot from the date table and actually I don't know how to include the "relative quarter" into this... or did you mean to create a new dimension table with a relationship to the existing date table?&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>Thu, 19 Sep 2024 08:05:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4159081#M165259</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-09-19T08:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4169903#M165643</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Thanks for the reply from sjoerdvn&amp;nbsp;, please allow me to provide another insight:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="755889" data-lia-user-login="cn4422" class="lia-mention lia-mention-user"&gt;cn4422&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;I offer you two options to achieve this need:&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;SPAN&gt;First, use the quarter and year of the auto-date as the slicer, as shown in the following image:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;The downside is that you need to manually go to the click.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;2.&lt;/SPAN&gt;&lt;SPAN&gt;Second, use the following me&lt;/SPAN&gt;&lt;SPAN&gt;asure&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;MEASURE = 
IF (
    QUARTER ( MAX ( 'Datum'[Date] ) )
        = QUARTER ( TODAY () ) - 1
        &amp;amp;&amp;amp; YEAR ( MAX ( 'Datum'[Date] ) ) = YEAR ( TODAY () ),
    1
)&lt;/LI-CODE&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;And apply it to the visualization:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Please find the attached pbix relevant to the case.&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Best Regards,&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;Leroy Lu&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;"&gt;If this post &lt;SPAN&gt;helps&lt;/SPAN&gt;, then please consider Accept it &lt;SPAN&gt;as the solution &lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2024 08:32:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4169903#M165643</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-24T08:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4171141#M165691</link>
      <description>&lt;P&gt;In Table view, select Table Tools and "New Column" Then add the definition below&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Relative quarter = 
VAR rq = QUARTER([date])
VAR tq = QUARTER(TODAY())
VAR ry = YEAR([date])
VAR ty = YEAR(TODAY())
RETURN rq - tq + 4 * (ry - ty)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Sep 2024 15:31:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4171141#M165691</guid>
      <dc:creator>sjoerdvn</dc:creator>
      <dc:date>2024-09-24T15:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4177402#M165894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thanks for your reply, I went with solution #2 and it worked just fine! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 09:37:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4177402#M165894</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-09-26T09:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Date Slicer Showing Previous Quarter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4177519#M165906</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226664" data-lia-user-login="sjoerdvn" class="lia-mention lia-mention-user"&gt;sjoerdvn&lt;/a&gt;&amp;nbsp;!&lt;BR /&gt;Thanks for the clarification, that worked pretty well!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 10:02:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Date-Slicer-Showing-Previous-Quarter/m-p/4177519#M165906</guid>
      <dc:creator>cn4422</dc:creator>
      <dc:date>2024-09-26T10:02:24Z</dc:date>
    </item>
  </channel>
</rss>

