<?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: help with DAX MTD in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615597#M176637</link>
    <description>&lt;P&gt;UPDATED&amp;nbsp;&lt;BR /&gt;-------&lt;BR /&gt;VAR DATE_ =&lt;BR /&gt;IF(&lt;BR /&gt;ISFILTERED(DimDate[Date]),&lt;BR /&gt;MAX(DimDate[Date]),&lt;BR /&gt;TODAY()&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Fact[SALES]),&lt;BR /&gt;DATESBETWEEN(DimDate[Date], EOMONTH(DATE_, -1) + 1, EOMONTH(DATE_, 0))&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 03:53:38 GMT</pubDate>
    <dc:creator>Pow3Range</dc:creator>
    <dc:date>2025-03-19T03:53:38Z</dc:date>
    <item>
      <title>help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615338#M176624</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm really &lt;SPAN&gt;struggling&amp;nbsp;&lt;/SPAN&gt;with this calculation with this DAX measure; What I need to accomplish is show let's sales numbers in a card. When a month is selected in another visual (like a timeline), the card should show the "sales" numbers for the selected month and that is working perfectly, what is not working is when no selection, the card should default to show "sales" for the current month, and that's is not working at all.&lt;/P&gt;&lt;P&gt;This is DAX I'm using right now;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; SUM(Fact[SALES]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;DATESMTD(DimDate[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;Any help would be highly &lt;STRONG&gt;appreciated&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 21:18:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615338#M176624</guid>
      <dc:creator>Midway</dc:creator>
      <dc:date>2025-03-18T21:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615359#M176625</link>
      <description>&lt;LI-CODE lang="markup"&gt;var dt = max( DimDate[Date] )
return
CALCULATE(
    SUM(Fact[SALES]),
    KEEPFILTERS( DATESBETWEEN( DimDate[Date], EOMONTH( dt, -1) + 1, dt ), dt ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Mar 2025 21:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615359#M176625</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-18T21:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615422#M176630</link>
      <description>&lt;P&gt;hey there, thanks for replying to my post. I tried this formula but it's giving an error, "unexpected parameter , dt". If I remove runs fine but still does not work. Still no sales without selecting any data points.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 22:51:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615422#M176630</guid>
      <dc:creator>Midway</dc:creator>
      <dc:date>2025-03-18T22:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615425#M176631</link>
      <description>&lt;P&gt;Where is it complaining?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 22:52:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615425#M176631</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-18T22:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615430#M176633</link>
      <description>&lt;P&gt;Updated&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var dt = MAX( DimDate[Date] )
return
CALCULATE(
    SUM(Fact[SALES]),
    DATESBETWEEN( DimDate[Date], EOMONTH( dt, -1) + 1, dt )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Mar 2025 23:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615430#M176633</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-18T23:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615456#M176635</link>
      <description>&lt;P&gt;it works when selecting any month but it's not defaulting to show current month sales when there is no selection.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 23:38:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615456#M176635</guid>
      <dc:creator>Midway</dc:creator>
      <dc:date>2025-03-18T23:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615597#M176637</link>
      <description>&lt;P&gt;UPDATED&amp;nbsp;&lt;BR /&gt;-------&lt;BR /&gt;VAR DATE_ =&lt;BR /&gt;IF(&lt;BR /&gt;ISFILTERED(DimDate[Date]),&lt;BR /&gt;MAX(DimDate[Date]),&lt;BR /&gt;TODAY()&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Fact[SALES]),&lt;BR /&gt;DATESBETWEEN(DimDate[Date], EOMONTH(DATE_, -1) + 1, EOMONTH(DATE_, 0))&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 03:53:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615597#M176637</guid>
      <dc:creator>Pow3Range</dc:creator>
      <dc:date>2025-03-19T03:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615629#M176644</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144388" data-lia-user-login="Midway" class="lia-mention lia-mention-user"&gt;Midway&lt;/a&gt;&amp;nbsp;please check this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ResultMeasure=&lt;/P&gt;&lt;P&gt;VAR IsMonthSelected = ISFILTERED('DATE'[Month])&lt;/P&gt;&lt;P&gt;VAR DefaultMonthSales =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('sheet1'[enrollment amount]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('DATE'),&lt;BR /&gt;'DATE'[Year] = YEAR(TODAY()) &amp;amp;&amp;amp; 'DATE'[Month] = MONTH(TODAY())&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;VAR SelectedMonthSales =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('sheet1'[enrollment amount]),&lt;BR /&gt;DATESMTD('DATE'[Date])&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF(&lt;BR /&gt;IsMonthSelected,&lt;BR /&gt;SelectedMonthSales,&lt;BR /&gt;DefaultMonthSales&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 05:07:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4615629#M176644</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-03-19T05:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616720#M176666</link>
      <description>&lt;P&gt;Thanks for replying to my post, this gets the default sales numbers for the current month when no selection has been made, but it keeps the same current month sales numbers when selecting other months.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 15:02:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616720#M176666</guid>
      <dc:creator>Midway</dc:creator>
      <dc:date>2025-03-19T15:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616721#M176667</link>
      <description>&lt;P&gt;Thanks for replying to my post, this gets the default sales numbers for the current month when no selection has been made, but it keeps the same current month sales numbers when selecting other months.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 15:02:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616721#M176667</guid>
      <dc:creator>Midway</dc:creator>
      <dc:date>2025-03-19T15:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616734#M176669</link>
      <description>&lt;P&gt;var dt = eomonth( MAXX( summarize( fact, DimDate[Date] ), dimdate[date]), 0)&lt;/P&gt;&lt;P&gt;return&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; SUM(Fact[SALES]),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; DATESBETWEEN( DimDate[Date], EOMONTH( dt, -1) + 1, dt )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 15:10:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616734#M176669</guid>
      <dc:creator>Deku</dc:creator>
      <dc:date>2025-03-19T15:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616810#M176671</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="144388" data-lia-user-login="Midway" class="lia-mention lia-mention-user"&gt;Midway&lt;/a&gt;&amp;nbsp;Use&amp;nbsp;DAX&lt;BR /&gt;SalesMeasure :=&lt;BR /&gt;IF(&lt;BR /&gt;ISFILTERED(DimDate[Month]),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Fact[SALES])&lt;BR /&gt;),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(Fact[SALES]),&lt;BR /&gt;DATESMTD(DimDate[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 15:56:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616810#M176671</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-03-19T15:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: help with DAX MTD</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616831#M176673</link>
      <description>&lt;P&gt;Thansk very much Deku!! this did the trick!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 16:05:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/help-with-DAX-MTD/m-p/4616831#M176673</guid>
      <dc:creator>Midway</dc:creator>
      <dc:date>2025-03-19T16:05:43Z</dc:date>
    </item>
  </channel>
</rss>

