<?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: MTD formula with 0 value of orders in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-formula-with-0-value-of-orders/m-p/3811580#M149058</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this ,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;MTD BLANK = CALCULATE(SUM(OrderLine[Booking USD]),DATESMTD(OrderLine[Date])) + 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 17:14:46 GMT</pubDate>
    <dc:creator>vivek31</dc:creator>
    <dc:date>2024-04-04T17:14:46Z</dc:date>
    <item>
      <title>MTD formula with 0 value of orders</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-formula-with-0-value-of-orders/m-p/3808379#M148895</link>
      <description>&lt;P&gt;Hi Everyone &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;For MTD i use following formula, but the problem is that when the value of orders are 0 in a month (for example March) it shows values of previous month instead of showing blank or 0. Could anyone help modify this Dax to show 0 or blank when there is no order in a month?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Order_Subtotal_CY_MTD =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;OrderLine&lt;/SPAN&gt;&lt;SPAN&gt;[Booking USD]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;DATESMTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;OrderLine&lt;/SPAN&gt;&lt;SPAN&gt;[Open_Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you so much in advance!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Apr 2024 16:53:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-formula-with-0-value-of-orders/m-p/3808379#M148895</guid>
      <dc:creator>FR14</dc:creator>
      <dc:date>2024-04-03T16:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: MTD formula with 0 value of orders</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-formula-with-0-value-of-orders/m-p/3809050#M148931</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Based on my testing, please &lt;SPAN&gt;try the following methods:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.Create the simple table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2.Create the new measure to calculate.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Order_MTD = IF(
    ISBLANK(
        CALCULATE(
            SUM(OrderLine[Booking USD]),
            DATESMTD(OrderLine[Date])
        )
    ), 
    0, 
    CALCULATE(
        SUM(OrderLine[Booking USD]),
        DATESMTD(OrderLine[Date])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3.Drag the measure into the table visual. The result is shown below.&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;Best Regards,&lt;/P&gt;
&lt;P&gt;Wisdom Wu&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 01:17:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-formula-with-0-value-of-orders/m-p/3809050#M148931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-04T01:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: MTD formula with 0 value of orders</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-formula-with-0-value-of-orders/m-p/3811580#M149058</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="623734" data-lia-user-login="FR14" class="lia-mention lia-mention-user"&gt;FR14&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this ,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;LI-CODE lang="markup"&gt;MTD BLANK = CALCULATE(SUM(OrderLine[Booking USD]),DATESMTD(OrderLine[Date])) + 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 17:14:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/MTD-formula-with-0-value-of-orders/m-p/3811580#M149058</guid>
      <dc:creator>vivek31</dc:creator>
      <dc:date>2024-04-04T17:14:46Z</dc:date>
    </item>
  </channel>
</rss>

