<?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 Date Sliders OR Logic in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2907656#M39758</link>
    <description>&lt;P&gt;Hello. I am new to Power BI. I am needing to add a date slider to my report, however, I need the slider to look at two different columns and use an OR logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if we had a purchased date column and a returned date column, I would need the slider to look at purchase date in selected range OR returned date in selected range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible to do?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 19:54:06 GMT</pubDate>
    <dc:creator>marienugent</dc:creator>
    <dc:date>2022-11-15T19:54:06Z</dc:date>
    <item>
      <title>Date Sliders OR Logic</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2907656#M39758</link>
      <description>&lt;P&gt;Hello. I am new to Power BI. I am needing to add a date slider to my report, however, I need the slider to look at two different columns and use an OR logic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if we had a purchased date column and a returned date column, I would need the slider to look at purchase date in selected range OR returned date in selected range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible to do?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 19:54:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2907656#M39758</guid>
      <dc:creator>marienugent</dc:creator>
      <dc:date>2022-11-15T19:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date Sliders OR Logic</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2908561#M39768</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/472394"&gt;@marienugent&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to create an unrelated calendar table for slicer and then create a measure to filter your visual in visual level filter.&lt;/P&gt;
&lt;P&gt;My Sample:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_0-1668583529359.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/823848iD035891636EC8083/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1668583529359.png" alt="RicoZhou_0-1668583529359.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure Filter = 
VAR _Purchase_Date =
    SELECTEDVALUE ( 'Table'[Purchase Date] )
VAR _Returned_Date =
    SELECTEDVALUE ( 'Table'[Returned Date] )
VAR _Date_Range =
    VALUES ( 'Calendar'[Date] )
RETURN
    IF ( OR ( _Purchase_Date IN _Date_Range, _Returned_Date IN _Date_Range ), 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;In my sample, my date range is from 2022/10/01 to 2022/10/31, so the visual should return ID 1/3/4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RicoZhou_1-1668583653099.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/823851i9D1A27DF34C6B300/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_1-1668583653099.png" alt="RicoZhou_1-1668583653099.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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 07:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2908561#M39768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-16T07:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Date Sliders OR Logic</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2913086#M39802</link>
      <description>&lt;P&gt;This works, but only if I am displaying the dates in the visual, which I do not want them displayed. The only thing I need in the visual is a count of revenue and transactions, but I need the slicer to be able to accurately change those counts based on the purchase and returned dates.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 15:22:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2913086#M39802</guid>
      <dc:creator>marienugent</dc:creator>
      <dc:date>2022-11-17T15:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date Sliders OR Logic</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2938349#M40043</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/472394"&gt;@marienugent&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try this code to get count result.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count = 
VAR _Date_Range =
    VALUES ( 'Calendar'[Date] )
RETURN
    CALCULATE(COUNT('Table'[ID]),FILTER('Table', OR ( 'Table'[Purchase Date] IN _Date_Range, 'Table'[Returned Date] IN _Date_Range )))&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_0-1669801458337.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/832426i7C140AC6329FD8F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RicoZhou_0-1669801458337.png" alt="RicoZhou_0-1669801458337.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>Wed, 30 Nov 2022 09:44:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Date-Sliders-OR-Logic/m-p/2938349#M40043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-30T09:44:30Z</dc:date>
    </item>
  </channel>
</rss>

