<?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: Need to filter data on when a row was active in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Need-to-filter-data-on-when-a-row-was-active/m-p/975114#M22698</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/214135"&gt;@RichardBroadley&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If I understand correctly, you won't have much luck finding/using custom visuals to solve this, as they are bound by the same rules as the data model in terms of filtering, as you have discovered.&lt;/P&gt;
&lt;P&gt;If you want to filter based on effective/end date ranges, the simplest implementation will be to create a measure that flags your record if its date range matches the selected date in a regular slicer, and then filter by that in any visuals. Note that this technique requires using 1/0 int values rather than TRUE/FALSE, as for some reason boolean measures can't be used as filter values in visuals, but numeric values can.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Date-Filter-Filter-by-point-in-time/td-p/474945" target="_self"&gt;I believe this post&lt;/A&gt; should give you the concept of what you need, the answer marked as the solution covers the final state, but &lt;A href="https://community.powerbi.com/t5/Desktop/Date-Filter-Filter-by-point-in-time/m-p/476121/highlight/true#M221449" target="_self"&gt;start reading from this post&lt;/A&gt; in the thread.&lt;/P&gt;
&lt;P&gt;Hopefully this should be all you need. If not, if you can provide some sample data or workbook we can take a stab at it.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 02:13:15 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2020-03-16T02:13:15Z</dc:date>
    <item>
      <title>Need to filter data on when a row was active</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-to-filter-data-on-when-a-row-was-active/m-p/970517#M22658</link>
      <description>&lt;P&gt;There are number of date slicers/filters for Power BI that can filter on a single date column within a dataset being within a user selected date range. However, I need a slicer/filter that works the opposite way round. We have records in our dataset that have ValidFrom and ValidTo date columns and what I need to do is filter the rows based on whether or not a user selecte date is within the date range in the ValidFrom and ValidTo columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Non of the custom visuals available online appear to do what I want, and I looked at writing a custom visual of my own to do it, but it seems the filtering/interaction between visuals is only setup for checking if a single column in the dataset is within the user selected date range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to have a visual that filters on whether or not a user selected date is within the date range specified in the data rows, and if so, how do I do it?&lt;/P&gt;&lt;P class="ics-element-donot-delete 1001_CC@"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 09:09:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-to-filter-data-on-when-a-row-was-active/m-p/970517#M22658</guid>
      <dc:creator>RichardBroadley</dc:creator>
      <dc:date>2020-03-12T09:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter data on when a row was active</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-to-filter-data-on-when-a-row-was-active/m-p/975114#M22698</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/214135"&gt;@RichardBroadley&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If I understand correctly, you won't have much luck finding/using custom visuals to solve this, as they are bound by the same rules as the data model in terms of filtering, as you have discovered.&lt;/P&gt;
&lt;P&gt;If you want to filter based on effective/end date ranges, the simplest implementation will be to create a measure that flags your record if its date range matches the selected date in a regular slicer, and then filter by that in any visuals. Note that this technique requires using 1/0 int values rather than TRUE/FALSE, as for some reason boolean measures can't be used as filter values in visuals, but numeric values can.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Date-Filter-Filter-by-point-in-time/td-p/474945" target="_self"&gt;I believe this post&lt;/A&gt; should give you the concept of what you need, the answer marked as the solution covers the final state, but &lt;A href="https://community.powerbi.com/t5/Desktop/Date-Filter-Filter-by-point-in-time/m-p/476121/highlight/true#M221449" target="_self"&gt;start reading from this post&lt;/A&gt; in the thread.&lt;/P&gt;
&lt;P&gt;Hopefully this should be all you need. If not, if you can provide some sample data or workbook we can take a stab at it.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 02:13:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-to-filter-data-on-when-a-row-was-active/m-p/975114#M22698</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2020-03-16T02:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need to filter data on when a row was active</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Need-to-filter-data-on-when-a-row-was-active/m-p/976386#M22713</link>
      <description>&lt;P&gt;I would try adding a measure to find whether the selected date is between your valid to/from dates (something akin to the below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Active Record on Date = 
var selDate = SELECTEDVALUE('Calendar'[Date])
var isActive = if(and(selDate&amp;gt;=firstdate('Table'[valid from]),selDate&amp;lt;=firstdate('Table'[valid to])),1,0)
return isActive&lt;/LI-CODE&gt;&lt;P&gt;some screenshots for context:&lt;/P&gt;&lt;P&gt;My Data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/246649i6C6F4743B22AA56B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="data.png" alt="data.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My Fields:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fields.png" style="width: 160px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/246646iEFEE546C3DB0F275/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fields.png" alt="fields.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My Slicer:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slicer.png" style="width: 352px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/246648i99A91DBE5B9FC1CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slicer.png" alt="slicer.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My Filter:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="filter.png" style="width: 193px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/246647iC53A561A7F34BECF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="filter.png" alt="filter.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will filter down the records when the selected date is between the to/from dates. hope that helps&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 15:34:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Need-to-filter-data-on-when-a-row-was-active/m-p/976386#M22713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-16T15:34:25Z</dc:date>
    </item>
  </channel>
</rss>

