<?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: A measure that can be filtered by 2 date columns using 1 slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755975#M182104</link>
    <description>&lt;P&gt;Thank you. I appreciate your response, however, I'm not sure why but some filters are not showing accurate numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 05:14:39 GMT</pubDate>
    <dc:creator>Orman01</dc:creator>
    <dc:date>2025-07-08T05:14:39Z</dc:date>
    <item>
      <title>A measure that can be filtered by 2 date columns using 1 slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755830#M182098</link>
      <description>&lt;P&gt;Hi Everyone! I have this requirement to create a slicer where a measure should be filtered by both start date and end date. (ex. We need to see the total tickets created and completed from Jan 1 to Jan 31 (Between Date Slicer)). Tried using USERELATIONSHIP but it can only filter one date column.&lt;BR /&gt;&lt;BR /&gt;CREATED_COMPLETED = CALCULATE(DISTINCTCOUNT('RAW'[TICKETNUMBER]),USERELATIONSHIP('RAW'[DATE CREATED],'Date Table'[Date]),USERELATIONSHIP('RAW'[DATE COMPLETED],'Date Table'[Date]))&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 22:51:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755830#M182098</guid>
      <dc:creator>Orman01</dc:creator>
      <dc:date>2025-07-07T22:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: A measure that can be filtered by 2 date columns using 1 slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755842#M182099</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1304290" data-lia-user-login="Orman01" class="lia-mention lia-mention-user"&gt;Orman01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, in this case you would need to disconnect your Date table from RAW table and create one measure for filtering your report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can refer to my &lt;A href="https://drive.google.com/file/d/1u1ACo4jbZruwIIaCEd-kjaelX_qvTb3d/view?usp=sharing" target="_self"&gt;testFile&lt;/A&gt;. I used this demo measure below and you can adjust it based on your real situation.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Tickets_CreatedAndCompleted = 
CALCULATE(
    DISTINCTCOUNT('Tickets'[TICKETNUMBER]),
    FILTER(
        'Tickets',
        'Tickets'[DATE CREATED] &amp;gt;= MIN('Date Table'[Date]) &amp;amp;&amp;amp;
        'Tickets'[DATE CREATED] &amp;lt;= MAX('Date Table'[Date]) &amp;amp;&amp;amp;
        'Tickets'[DATE COMPLETED] &amp;gt;= MIN('Date Table'[Date]) &amp;amp;&amp;amp;
        'Tickets'[DATE COMPLETED] &amp;lt;= MAX('Date Table'[Date])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope it helps:)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2025 23:29:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755842#M182099</guid>
      <dc:creator>MasonMA</dc:creator>
      <dc:date>2025-07-07T23:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: A measure that can be filtered by 2 date columns using 1 slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755900#M182101</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;created and completed: = 
VAR _t =
    FILTER (
        RAW,
        RAW[DATE COMPLETED] &amp;gt;= MIN ( 'Date Table'[Date] )
            &amp;amp;&amp;amp; RAW[DATE CREATED] &amp;lt;= MAX ( 'Date Table'[Date] )
    )
RETURN
    COUNTROWS ( _t )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 02:54:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755900#M182101</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-07-08T02:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: A measure that can be filtered by 2 date columns using 1 slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755975#M182104</link>
      <description>&lt;P&gt;Thank you. I appreciate your response, however, I'm not sure why but some filters are not showing accurate numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 05:14:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755975#M182104</guid>
      <dc:creator>Orman01</dc:creator>
      <dc:date>2025-07-08T05:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: A measure that can be filtered by 2 date columns using 1 slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755976#M182105</link>
      <description>&lt;P&gt;This works! Thanks a lot!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 05:15:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-measure-that-can-be-filtered-by-2-date-columns-using-1-slicer/m-p/4755976#M182105</guid>
      <dc:creator>Orman01</dc:creator>
      <dc:date>2025-07-08T05:15:22Z</dc:date>
    </item>
  </channel>
</rss>

