<?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: Show the date range as MTD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260717#M54659</link>
    <description>&lt;P&gt;add a calculated column in your date table&lt;/P&gt;
&lt;P&gt;new column=if(format([date],"yyyymm")=format(today(),"yyyymm")&amp;amp;&amp;amp;[date]&amp;lt;=today(),1,0)&lt;/P&gt;
&lt;P&gt;then use this new column to filter your slicer&lt;/P&gt;</description>
    <pubDate>Thu, 30 Dec 2021 07:23:33 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2021-12-30T07:23:33Z</dc:date>
    <item>
      <title>Show the date range as MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260652#M54652</link>
      <description>&lt;P&gt;I want to display a date range slicer as mtd. for Example if today is december 30th the slicer should show a date range from decemeber 1 to december 30th or if today is 2nd january 2022 then it should show 1st and 2nd january date range. BAsically it should display a date range from the start of the current month till current date(today). Can anayone help me ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 06:45:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260652#M54652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-30T06:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Show the date range as MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260674#M54654</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , if you have not selected any date then with help from data table and measure on any fact or date table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MTD= &lt;BR /&gt;var _min = eomonth(today(),-1)+1&lt;BR /&gt;var _max = today() &lt;BR /&gt;return &lt;BR /&gt;CALCULATE(sum('Table'[Qty]), FILTER(ALL('Table'),'Table'[Date] &amp;gt;= _min &amp;amp;&amp;amp; 'Table'[Date] &amp;lt;=_max ) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Display along with date from date table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;refer if needed&lt;/P&gt;
&lt;P&gt;All About Time Intelligence around Today: &lt;A href="https://youtu.be/gcLhhxhXKEI" target="_blank"&gt;https://youtu.be/gcLhhxhXKEI &lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In case you select a date from joined date table and then need a mtd tred, then you need independent date table&lt;/P&gt;
&lt;P&gt;Need of an Independent Date Table:&lt;A href="https://www.youtube.com/watch?v=44fGGmg9fHI" target="_blank"&gt;https://www.youtube.com/watch?v=44fGGmg9fHI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 07:00:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260674#M54654</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-12-30T07:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show the date range as MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260699#M54656</link>
      <description>&lt;P&gt;Hi amit... Thanks for promt reply...&lt;/P&gt;&lt;P&gt;but I want to filter a date slicer to show a date range slicer showing date from 1st of current month till today not any values such as qunatity but just a date range&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 07:11:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260699#M54656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-30T07:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Show the date range as MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260717#M54659</link>
      <description>&lt;P&gt;add a calculated column in your date table&lt;/P&gt;
&lt;P&gt;new column=if(format([date],"yyyymm")=format(today(),"yyyymm")&amp;amp;&amp;amp;[date]&amp;lt;=today(),1,0)&lt;/P&gt;
&lt;P&gt;then use this new column to filter your slicer&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 07:23:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2260717#M54659</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-12-30T07:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Show the date range as MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2327686#M58341</link>
      <description>&lt;P&gt;it works fine when there is no date range selected. When we select a date range the column doesnot filter the slicer. Can you suugest an alternative&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 08:51:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2327686#M58341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-09T08:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Show the date range as MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2342792#M59172</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="264353" data-lia-user-login="wdx223_Daniel" class="lia-mention lia-mention-user"&gt;wdx223_Daniel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am too facing same problem but your solution is working when we don't alter the date range.&lt;/P&gt;&lt;P&gt;if we select any date outside the range post this filter applied. date filter is not applying for any values , its just showing complete unfiltered data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:46:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-the-date-range-as-MTD/m-p/2342792#M59172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-16T16:46:47Z</dc:date>
    </item>
  </channel>
</rss>

