<?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: DAX Measure  for not showing the future months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3339032#M125295</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="544658" data-lia-user-login="SupriyaVarun" class="lia-mention lia-mention-user"&gt;SupriyaVarun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To ensure that future months show as blank, you can add a condition that checks whether the month is in the future, and if it is, returns BLANK(). You can use the TODAY() function to get the current date and use it for the comparison.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% Automated Order EU - Previous Month =&lt;BR /&gt;VAR CurrentDate = TODAY()&lt;BR /&gt;VAR CurrentMonth = MONTH(CurrentDate)&lt;BR /&gt;VAR CurrentYear = YEAR(CurrentDate)&lt;BR /&gt;VAR CurrentFiscalMonthNumber =&lt;BR /&gt;LOOKUPVALUE(&lt;BR /&gt;'SM Dim Calendar'[Fiscal Month Number],&lt;BR /&gt;'SM Dim Calendar'[Calendar Year], CurrentYear,&lt;BR /&gt;'SM Dim Calendar'[Calendar Month], CurrentMonth)&lt;/P&gt;&lt;P&gt;VAR CurrentAcual = [% Automated order EU]&lt;BR /&gt;VAR PreviousActual =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[% Automated order EU],&lt;BR /&gt;ALLSELECTED ( 'SM Dim Calendar' ),&lt;BR /&gt;'SM Dim Calendar'[Fiscal Month Number]&lt;BR /&gt;= MAX ( 'SM Dim Calendar'[Fiscal Month Number] ) - 1&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;MAX('SM Dim Calendar'[Fiscal Month Number]) &amp;gt; CurrentFiscalMonthNumber,&lt;BR /&gt;BLANK(),&lt;BR /&gt;CurrentAcual - COALESCE ( PreviousActual, CurrentAcual )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note:&amp;nbsp;&lt;SPAN&gt;Please note that you should adjust this based on your fiscal year start month if it does not start in January.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 16:03:16 GMT</pubDate>
    <dc:creator>rubayatyasmin</dc:creator>
    <dc:date>2023-07-19T16:03:16Z</dc:date>
    <item>
      <title>DAX Measure  for not showing the future months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3338931#M125289</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you please help me with this,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;For the below query how to show blank&amp;nbsp; for &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the future months?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Eg : August month showing&amp;nbsp; -44.6% Now I want it to show a blank Value&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Measure Below :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;% Automated Order EU - Previous Month =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR CurrentAcual = [% Automated order EU]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR PreviousActual =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CALCULATE (&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[% Automated order EU],&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ALLSELECTED ( 'SM Dim Calendar' ),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'SM Dim Calendar'[Fiscal Month Number]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;= MAX ( 'SM Dim Calendar'[Fiscal Month Number] ) - 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CurrentAcual - COALESCE ( PreviousActual, CurrentAcual )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want the output like this below:&lt;BR /&gt;&lt;/SPAN&gt;&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;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 15:18:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3338931#M125289</guid>
      <dc:creator>SupriyaVarun</dc:creator>
      <dc:date>2023-07-19T15:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure  for not showing the future months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3339032#M125295</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="544658" data-lia-user-login="SupriyaVarun" class="lia-mention lia-mention-user"&gt;SupriyaVarun&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To ensure that future months show as blank, you can add a condition that checks whether the month is in the future, and if it is, returns BLANK(). You can use the TODAY() function to get the current date and use it for the comparison.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;try this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;% Automated Order EU - Previous Month =&lt;BR /&gt;VAR CurrentDate = TODAY()&lt;BR /&gt;VAR CurrentMonth = MONTH(CurrentDate)&lt;BR /&gt;VAR CurrentYear = YEAR(CurrentDate)&lt;BR /&gt;VAR CurrentFiscalMonthNumber =&lt;BR /&gt;LOOKUPVALUE(&lt;BR /&gt;'SM Dim Calendar'[Fiscal Month Number],&lt;BR /&gt;'SM Dim Calendar'[Calendar Year], CurrentYear,&lt;BR /&gt;'SM Dim Calendar'[Calendar Month], CurrentMonth)&lt;/P&gt;&lt;P&gt;VAR CurrentAcual = [% Automated order EU]&lt;BR /&gt;VAR PreviousActual =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[% Automated order EU],&lt;BR /&gt;ALLSELECTED ( 'SM Dim Calendar' ),&lt;BR /&gt;'SM Dim Calendar'[Fiscal Month Number]&lt;BR /&gt;= MAX ( 'SM Dim Calendar'[Fiscal Month Number] ) - 1&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;MAX('SM Dim Calendar'[Fiscal Month Number]) &amp;gt; CurrentFiscalMonthNumber,&lt;BR /&gt;BLANK(),&lt;BR /&gt;CurrentAcual - COALESCE ( PreviousActual, CurrentAcual )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note:&amp;nbsp;&lt;SPAN&gt;Please note that you should adjust this based on your fiscal year start month if it does not start in January.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:03:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3339032#M125295</guid>
      <dc:creator>rubayatyasmin</dc:creator>
      <dc:date>2023-07-19T16:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure  for not showing the future months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3339084#M125297</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I am using a Live connection&lt;BR /&gt;&lt;BR /&gt;I just used this measure and its working now&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;% Automated Order Global - Previous Month =&lt;BR /&gt;VAR CurrentActual = [% Automated order]&lt;BR /&gt;VAR PreviousActual =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;[% Automated order],&lt;BR /&gt;ALLSELECTED ( 'SM Dim Calendar' ),&lt;BR /&gt;'SM Dim Calendar'[Fiscal Month Number]&lt;BR /&gt;= MAX ( 'SM Dim Calendar'[Fiscal Month Number] ) - 1&lt;BR /&gt;)&lt;BR /&gt;VAR CurrentMonthNumber = MONTH(TODAY()) +1&lt;BR /&gt;VAR SelectedMonthNumber = SELECTEDVALUE('SM Dim Calendar'[Fiscal Month Number])&lt;/P&gt;&lt;P&gt;RETURN&lt;BR /&gt;IF (&lt;BR /&gt;SelectedMonthNumber &amp;gt;= CurrentMonthNumber,&lt;BR /&gt;BLANK(),&lt;BR /&gt;CurrentActual - COALESCE ( PreviousActual, CurrentActual )&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I got the result &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&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;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:32:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3339084#M125297</guid>
      <dc:creator>SupriyaVarun</dc:creator>
      <dc:date>2023-07-19T16:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure  for not showing the future months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3339118#M125298</link>
      <description>&lt;P&gt;how about&amp;nbsp;&lt;SPAN&gt;SelectedMonthNumber &amp;gt; CurrentMonthNumber, instead of&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SelectedMonthNumber &amp;gt;= CurrentMonthNumber?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 16:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-for-not-showing-the-future-months/m-p/3339118#M125298</guid>
      <dc:creator>rubayatyasmin</dc:creator>
      <dc:date>2023-07-19T16:34:05Z</dc:date>
    </item>
  </channel>
</rss>

