<?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: filtered dCalendar in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041365#M45837</link>
    <description>&lt;P&gt;Yes. My sincere apologies for my previous comment (which I have deleted since &amp;nbsp;I realised how silly and, of course, wrong it was).&amp;nbsp;&lt;BR /&gt;have you tried the solution I posted?&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 21:00:47 GMT</pubDate>
    <dc:creator>PaulDBrown</dc:creator>
    <dc:date>2021-08-27T21:00:47Z</dc:date>
    <item>
      <title>filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041163#M45826</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi, guys. It is possible to create a filtered table, so that it is an auxiliary dCalendar, with a date range according to the date chosen by the user? For example, in the graph below, I would like only the data from 12/31/2021 to 01/09/2021 to appear. That is, instead of putting my complete dCalendar on the x-axis I would put the filtered.&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, 26 Aug 2021 18:03:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041163#M45826</guid>
      <dc:creator>STEPH0018</dc:creator>
      <dc:date>2021-08-26T18:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041230#M45828</link>
      <description>&lt;P&gt;Can't you use the regular date slicer set to "Between"?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will need a Calendar Table for that though&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:08:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041230#M45828</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2021-08-26T19:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041235#M45830</link>
      <description>&lt;P&gt;Hi, Paul,&amp;nbsp;&lt;SPAN&gt;the intention is for the user to choose only one date.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:11:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041235#M45830</guid>
      <dc:creator>STEPH0018</dc:creator>
      <dc:date>2021-08-26T19:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041242#M45833</link>
      <description>&lt;P&gt;...and the measure calculates what date range?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:14:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041242#M45833</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2021-08-26T19:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041248#M45834</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE(dCalendario[DATA]) and&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;LASTDATE(PARALLELPERIOD(dCalendario[DATA],-1, YEAR))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:17:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041248#M45834</guid>
      <dc:creator>STEPH0018</dc:creator>
      <dc:date>2021-08-26T19:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041254#M45835</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to see the data for the last year based on the date selected?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See if this works for you.&lt;/P&gt;
&lt;P&gt;1) Duplicate you date table using (I've called the duplicate "Period Filter") new table in the ribbon and&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Period Filter = 'Calendar Table'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Join this table to the Calendar table in a1-to many &lt;U&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;inactive&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/U&gt; relationship with a single filter direction from the Period Filter Table to the Calendar Table. The model should look like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Now add the slicer from the calendar table, and create the visual using the date field from the Period filter table as the axis.&lt;/P&gt;
&lt;P&gt;Create a measure along these lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Data by sel date = 
VAR CalD = MAX('Calendar Table'[Date])
VAR SelPeriods = DATESINPERIOD('Period Filter'[Date], CalD, -1, YEAR)
RETURN
CALCULATE([Sum of Sales], 
REMOVEFILTERS('Calendar Table'),
KEEPFILTERS(SelPeriods), 
USERELATIONSHIP('Calendar Table'[Date], 'Period Filter'[Date]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add this measure to the visual and you will get:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 19:58:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041254#M45835</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2021-08-26T19:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041265#M45836</link>
      <description>&lt;P&gt;when I put it on a card it appears as the dates I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But in table no.&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, 26 Aug 2021 19:27:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041265#M45836</guid>
      <dc:creator>STEPH0018</dc:creator>
      <dc:date>2021-08-26T19:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041365#M45837</link>
      <description>&lt;P&gt;Yes. My sincere apologies for my previous comment (which I have deleted since &amp;nbsp;I realised how silly and, of course, wrong it was).&amp;nbsp;&lt;BR /&gt;have you tried the solution I posted?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 21:00:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041365#M45837</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2021-08-27T21:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041389#M45838</link>
      <description>&lt;P&gt;&lt;SPAN&gt;yes, but it seems it doesn't understand that the 9th is the selected data.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 20:32:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2041389#M45838</guid>
      <dc:creator>STEPH0018</dc:creator>
      <dc:date>2021-08-26T20:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2043573#M45893</link>
      <description>&lt;P&gt;Hi, Paul, in my case it didn't work like yours, the x axis didn't change.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 19:57:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2043573#M45893</guid>
      <dc:creator>STEPH0018</dc:creator>
      <dc:date>2021-08-27T19:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: filtered dCalendar</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2043643#M45894</link>
      <description>&lt;P&gt;do you have "Auto Date-Time " selected in the file options?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Aug 2021 10:13:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtered-dCalendar/m-p/2043643#M45894</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2021-08-30T10:13:49Z</dc:date>
    </item>
  </channel>
</rss>

