<?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: Live During Date Filter in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Live-During-Date-Filter/m-p/2822691#M39101</link>
    <description>&lt;P&gt;@Anonymous&amp;nbsp;Thanks for this, but how would I get it to filter my exhibits and not just a count of ID's as shown above?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 17:25:47 GMT</pubDate>
    <dc:creator>wacook</dc:creator>
    <dc:date>2022-10-06T17:25:47Z</dc:date>
    <item>
      <title>Live During Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-During-Date-Filter/m-p/2820618#M39085</link>
      <description>&lt;P&gt;I am trying to figure out how to create a date filter that will work for my data. We have policies that go live and expire on certain days, so we like to see deals that are live during certain periods. For instance, we compare all policies that were live in Q3 '22 vs all policies that were live Q3 '21. It is quite simple, all deals that expire after September 30 and start after October 1 are live during Q4, I just can't find a way to build that into a slicer.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 18:50:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-During-Date-Filter/m-p/2820618#M39085</guid>
      <dc:creator>wacook</dc:creator>
      <dc:date>2022-10-05T18:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Live During Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-During-Date-Filter/m-p/2822153#M39099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/452116"&gt;@wacook&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think there should be a [Expire Date] column and a [Start Date] column in your table. Here I suggest you to create an unrelated date table to build the slicer.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Calendar = ADDCOLUMNS( CALENDARAUTO(),"Year",YEAR([Date]),"Qtr",QUARTER([Date]),"Month",MONTH([Date]))&lt;/LI-CODE&gt;
&lt;P&gt;My Sample is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1665046123968.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/799320i35988282E99354E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1665046123968.png" alt="RicoZhou_0-1665046123968.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Current Quarter = 
CALCULATE (
    COUNT ( 'Table'[ID] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Start Date] &amp;lt;= MAX ( 'Calendar'[Date] )
            &amp;amp;&amp;amp; 'Table'[Expire Date] &amp;gt; MAX ( 'Calendar'[Date] )
    )
)&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Previous Quarter = 
CALCULATE (
    COUNT ( 'Table'[ID] ),
    FILTER (
        ALL ( 'Table' ),
        'Table'[Start Date] &amp;lt;= EOMONTH ( MAX ( 'Calendar'[Date] ), -12 )
            &amp;amp;&amp;amp; 'Table'[Expire Date] &amp;gt; EOMONTH ( MAX ( 'Calendar'[Date] ), -12 )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_1-1665046226170.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/799321i4844501C09DA0B96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_1-1665046226170.png" alt="RicoZhou_1-1665046226170.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 08:50:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-During-Date-Filter/m-p/2822153#M39099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-06T08:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Live During Date Filter</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Live-During-Date-Filter/m-p/2822691#M39101</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;Thanks for this, but how would I get it to filter my exhibits and not just a count of ID's as shown above?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 17:25:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Live-During-Date-Filter/m-p/2822691#M39101</guid>
      <dc:creator>wacook</dc:creator>
      <dc:date>2022-10-06T17:25:47Z</dc:date>
    </item>
  </channel>
</rss>

