<?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: Slicer for dates between in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-for-dates-between/m-p/3492843#M133764</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584817" data-lia-user-login="NorbertG" class="lia-mention lia-mention-user"&gt;NorbertG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you referring to the fact that when the row contains a 1, only data less than the slicer date is displayed, and when the row does not contain a 1, the data can be displayed?&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _date=SELECTEDVALUE('Table 2'[Date])
var _text=
MAX('Table'[Row1])&amp;amp;"-"&amp;amp;MAX('Table'[Row2])&amp;amp;"-"&amp;amp;MAX('Table'[Row3])
var _if=
IF(
    CONTAINSSTRING(
        _text,1)=TRUE(),0,1)
return
IF(
    _if&amp;lt;&amp;gt;0,_if,
    IF(
    _if=0&amp;amp;&amp;amp;MAX('Table'[Date])&amp;lt;SELECTEDVALUE('Table 2'[Date]),1,_if))&lt;/LI-CODE&gt;
&lt;P&gt;2. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;If the results don't meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 04:21:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-24T04:21:33Z</dc:date>
    <item>
      <title>Slicer for dates between</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-for-dates-between/m-p/3485520#M133368</link>
      <description>&lt;P&gt;Hi everyone.&lt;BR /&gt;Im having troubles with table visual. The thing I want to achieve is to show certain rows which's [date_created] is earlier than the date selected on slicer if certain row's column value is 1 and show the rest regularely which's certain row's column value is 0. My slicer uses [date_created] as field. I don't know if this is helpful but rows with value 1 have blank in date_end.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:14:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-for-dates-between/m-p/3485520#M133368</guid>
      <dc:creator>NorbertG</dc:creator>
      <dc:date>2023-10-19T12:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer for dates between</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-for-dates-between/m-p/3489337#M133551</link>
      <description>&lt;P&gt;Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue. &lt;BR /&gt;If you are unsure how to do that please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;If you want to get answers faster please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2023 22:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-for-dates-between/m-p/3489337#M133551</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-10-21T22:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Slicer for dates between</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-for-dates-between/m-p/3492843#M133764</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="584817" data-lia-user-login="NorbertG" class="lia-mention lia-mention-user"&gt;NorbertG&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you referring to the fact that when the row contains a 1, only data less than the slicer date is displayed, and when the row does not contain a 1, the data can be displayed?&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _date=SELECTEDVALUE('Table 2'[Date])
var _text=
MAX('Table'[Row1])&amp;amp;"-"&amp;amp;MAX('Table'[Row2])&amp;amp;"-"&amp;amp;MAX('Table'[Row3])
var _if=
IF(
    CONTAINSSTRING(
        _text,1)=TRUE(),0,1)
return
IF(
    _if&amp;lt;&amp;gt;0,_if,
    IF(
    _if=0&amp;amp;&amp;amp;MAX('Table'[Date])&amp;lt;SELECTEDVALUE('Table 2'[Date]),1,_if))&lt;/LI-CODE&gt;
&lt;P&gt;2. Place [Flag]in Filters, set is=1, apply filter.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;If the results don't meet your expectations, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 04:21:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicer-for-dates-between/m-p/3492843#M133764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-24T04:21:33Z</dc:date>
    </item>
  </channel>
</rss>

