<?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: Filter a table by date using DAX in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/757388#M364984</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set date range directly.&lt;/P&gt;&lt;PRE&gt;Table =
VAR DateStart =
    DATE ( "2018", "1", "5" )
VAR DateEnd =
    DATE ( "2018", "1", "15" )
RETURN
    CALCULATETABLE (
        TEST,
        FILTER ( TEST, TEST[Date] &amp;lt;= DateEnd &amp;amp;&amp;amp; TEST[Date] &amp;gt;= DateStart )
    )&lt;/PRE&gt;&lt;P&gt;Or you can set a &amp;nbsp;start time and time interval to define your date range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Table 2 =
VAR DateStart =
    DATE ( "2018", "1", "1" )
RETURN
    CALCULATETABLE ( TEST, DATESINPERIOD ( TEST[Date], DateStart, 15, DAY ) )&lt;/PRE&gt;&lt;P&gt;You can define the time interval by day, month, season, year. Here is the documentation for DATESINPERIOD() function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/datesinperiod-function-dax" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/dax/datesinperiod-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two DAX queries return a same table. You can choose one of them.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my test file, you can click the following link and download it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/ETVz0nkTJ3NMhRKnZJ6dRKkBeR8uUTIP0NtJdTnYyXqz0g?e=b28dSt" target="_blank" rel="noopener"&gt;https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/ETVz0nkTJ3NMhRKnZJ6dRKkBeR8uUTIP0NtJdTnYyXqz0g?e=b28dSt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eads&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this post &lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;&lt;SPAN&gt;Accept it as the solution&lt;/SPAN&gt;&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Aug 2019 06:03:35 GMT</pubDate>
    <dc:creator>v-eachen-msft</dc:creator>
    <dc:date>2019-08-05T06:03:35Z</dc:date>
    <item>
      <title>Filter a table by date using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/757031#M364804</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;How can I filter a table for a date field using DAX? I have a date range to filter.&lt;BR /&gt;&lt;BR /&gt;The output would be a second table.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Sat, 03 Aug 2019 21:07:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/757031#M364804</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-03T21:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a table by date using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/757037#M364806</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give this a try, you will just need to change the table and column names to match your data.&lt;/P&gt;&lt;PRE&gt;Filtered Sales = 
CALCULATETABLE(
    Sales,
    DATESBETWEEN ( Sales[Sales Date], DATE(2019,1,15), DATE(2019,2,5) )
)&lt;/PRE&gt;&lt;P&gt;This creates a new table called 'Filtered Sales' that is the Sales table filtered to 1/15/2019 - 2/5/2019&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2019 21:41:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/757037#M364806</guid>
      <dc:creator>jdbuchanan71</dc:creator>
      <dc:date>2019-08-03T21:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a table by date using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/757388#M364984</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can set date range directly.&lt;/P&gt;&lt;PRE&gt;Table =
VAR DateStart =
    DATE ( "2018", "1", "5" )
VAR DateEnd =
    DATE ( "2018", "1", "15" )
RETURN
    CALCULATETABLE (
        TEST,
        FILTER ( TEST, TEST[Date] &amp;lt;= DateEnd &amp;amp;&amp;amp; TEST[Date] &amp;gt;= DateStart )
    )&lt;/PRE&gt;&lt;P&gt;Or you can set a &amp;nbsp;start time and time interval to define your date range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Table 2 =
VAR DateStart =
    DATE ( "2018", "1", "1" )
RETURN
    CALCULATETABLE ( TEST, DATESINPERIOD ( TEST[Date], DateStart, 15, DAY ) )&lt;/PRE&gt;&lt;P&gt;You can define the time interval by day, month, season, year. Here is the documentation for DATESINPERIOD() function.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/datesinperiod-function-dax" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/dax/datesinperiod-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two DAX queries return a same table. You can choose one of them.&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my test file, you can click the following link and download it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/ETVz0nkTJ3NMhRKnZJ6dRKkBeR8uUTIP0NtJdTnYyXqz0g?e=b28dSt" target="_blank" rel="noopener"&gt;https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/ETVz0nkTJ3NMhRKnZJ6dRKkBeR8uUTIP0NtJdTnYyXqz0g?e=b28dSt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eads&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this post &lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;&lt;SPAN&gt;Accept it as the solution&lt;/SPAN&gt;&lt;/I&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 06:03:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/757388#M364984</guid>
      <dc:creator>v-eachen-msft</dc:creator>
      <dc:date>2019-08-05T06:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a table by date using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/758287#M365431</link>
      <description>&lt;P&gt;Thank you so much! Your method worked for me&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 22:13:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/758287#M365431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-05T22:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a table by date using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/2797867#M969365</link>
      <description>&lt;P&gt;Hello, is there any option using the filter parameter used in the report?&amp;nbsp; Because i'm trying but the selected date not filter&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:49:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/2797867#M969365</guid>
      <dc:creator>Lucho_MOB507</dc:creator>
      <dc:date>2022-09-26T20:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a table by date using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/3440086#M1141158</link>
      <description>&lt;P&gt;How can I create a measure to get the values for one specific date,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a variable for the date, but the calculate(measure, filter(date=variable date)) returns a blank result&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 14:00:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filter-a-table-by-date-using-DAX/m-p/3440086#M1141158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-09-20T14:00:44Z</dc:date>
    </item>
  </channel>
</rss>

