<?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 Rolling &amp;quot;in this month&amp;quot; calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-quot-in-this-month-quot-calculation/m-p/4207697#M166818</link>
    <description>&lt;P&gt;I have an operations dashboard that displays data for the current month and year-to-date (YTD). On the current month side, all my visuals use a relative date filter to show items from "this month."&lt;/P&gt;&lt;P&gt;The data is updated daily, with the SQL build providing data up to the previous day (today -1).&lt;/P&gt;&lt;P&gt;The issue arises at the start of a new month—on the 1st, the reports appear blank because the filter is trying to include today's data, which isn't yet available.&lt;/P&gt;&lt;P&gt;How can I ensure that my "current month" visuals continue to display the full month's data without going blank on the first day?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 11:25:02 GMT</pubDate>
    <dc:creator>simonandtony</dc:creator>
    <dc:date>2024-10-01T11:25:02Z</dc:date>
    <item>
      <title>Rolling "in this month" calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-quot-in-this-month-quot-calculation/m-p/4207697#M166818</link>
      <description>&lt;P&gt;I have an operations dashboard that displays data for the current month and year-to-date (YTD). On the current month side, all my visuals use a relative date filter to show items from "this month."&lt;/P&gt;&lt;P&gt;The data is updated daily, with the SQL build providing data up to the previous day (today -1).&lt;/P&gt;&lt;P&gt;The issue arises at the start of a new month—on the 1st, the reports appear blank because the filter is trying to include today's data, which isn't yet available.&lt;/P&gt;&lt;P&gt;How can I ensure that my "current month" visuals continue to display the full month's data without going blank on the first day?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 11:25:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-quot-in-this-month-quot-calculation/m-p/4207697#M166818</guid>
      <dc:creator>simonandtony</dc:creator>
      <dc:date>2024-10-01T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling "in this month" calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-quot-in-this-month-quot-calculation/m-p/4207855#M166828</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="817199" data-lia-user-login="simonandtony" class="lia-mention lia-mention-user"&gt;simonandtony&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the below measure y replacing your measures which you have created..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;CurrentMonthData =&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;IF(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;DAY(TODAY()) = 1,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;CALCULATE([YourMeasure], DATESINPERIOD('Date'[Date], TODAY(), -1, MONTH)),[YourMeasure])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; are much appreciated!&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dharmendar S&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/dharmendar-s-b5b43463/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIN&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 11:46:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-quot-in-this-month-quot-calculation/m-p/4207855#M166828</guid>
      <dc:creator>dharmendars007</dc:creator>
      <dc:date>2024-10-01T11:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling "in this month" calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-quot-in-this-month-quot-calculation/m-p/4211478#M166982</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="817199" data-lia-user-login="simonandtony" class="lia-mention lia-mention-user"&gt;simonandtony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can try formula like below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CurrentMonthData = 
VAR TodayDate =
    TODAY ()
VAR StartOfMonth_ =
    DATE ( YEAR ( TodayDate ), MONTH ( TodayDate ), 1 )
VAR EndOfMonth_ =
    EOMONTH ( TodayDate, 0 )
RETURN
    CALCULATE (
        SUM ( 'Table'[Amount] ),
        'Table'[OrderDate] &amp;gt;= StartOfMonth_
            &amp;amp;&amp;amp; 'Table'[OrderDate] &amp;lt;= EndOfMonth_ - 1
    )&lt;/LI-CODE&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;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 07:37:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rolling-quot-in-this-month-quot-calculation/m-p/4211478#M166982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-10-02T07:37:13Z</dc:date>
    </item>
  </channel>
</rss>

