<?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: Date Sliders OR Logic in Developer</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="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472394" data-lia-user-login="marienugent" class="lia-mention lia-mention-user"&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;img /&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;img /&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>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-16T07:28:00Z</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="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472394" data-lia-user-login="marienugent" class="lia-mention lia-mention-user"&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;img /&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;img /&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="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472394" data-lia-user-login="marienugent" class="lia-mention lia-mention-user"&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;img /&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>

