<?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: Openingbalancemonth vs own calculation difference in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2667493#M79375</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Opening balance return data on the last date of the previous month. So it will not work the same as what you have &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer &lt;A href="https://www.youtube.com/watch?v=6lzYOXI5wfo&amp;amp;t=37s" target="_blank"&gt;https://www.youtube.com/watch?v=6lzYOXI5wfo&amp;amp;t=37s&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 13:46:05 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-07-28T13:46:05Z</dc:date>
    <item>
      <title>Openingbalancemonth vs own calculation difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2667389#M79365</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to report on the Opening/Closing Balance by month, but for some reason, my very first Opening Balance (using the OpeningBalanceMonth function is not showing any data).&lt;BR /&gt;When I rewrite the measure it does show a number.&lt;BR /&gt;Can someone tell me why this is happening?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Measure 1 (using the OpeningBalanceMonth function)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Measure 2 (using own logic)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Below you see the difference between the two measures.&lt;BR /&gt;I would expect that the measure 1 (with the use of OpeningBalanceMonth function) would return the exact same thing as measure 2 (with the use of own logic)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 13:09:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2667389#M79365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-28T13:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Openingbalancemonth vs own calculation difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2667493#M79375</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Opening balance return data on the last date of the previous month. So it will not work the same as what you have &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer &lt;A href="https://www.youtube.com/watch?v=6lzYOXI5wfo&amp;amp;t=37s" target="_blank"&gt;https://www.youtube.com/watch?v=6lzYOXI5wfo&amp;amp;t=37s&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 13:46:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2667493#M79375</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-28T13:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Openingbalancemonth vs own calculation difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2667519#M79380</link>
      <description>&lt;P&gt;Thank you for your response, but the Microsoft Docs is showing the following definition:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Evaluates the expression at the &lt;U&gt;&lt;STRONG&gt;first&lt;/STRONG&gt; &lt;/U&gt;date of the month in the current context"&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/openingbalancemonth-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/openingbalancemonth-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This made me think that by using this function it would evaluate the 1/january/2021.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 14:01:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2667519#M79380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-28T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Openingbalancemonth vs own calculation difference</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2675132#M79894</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Approve with Anonymous&lt;/LI-USER&gt;&amp;nbsp;, &lt;SPAN&gt;the Microsoft Docs is&amp;nbsp; not very clearly,&amp;nbsp;&lt;/SPAN&gt;although it returns a scalar value that represents the expression evaluated at the first date of the month in the current context, the real calculate logic of this function is evaluating the specified expression for the date corresponding to&lt;STRONG&gt; the end of the previous month&lt;/STRONG&gt; after applying all the filters.&lt;/P&gt;
&lt;P&gt;Here is a simple sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&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;From the picture, you can see that the opening balance of January 2022 is blank, that is because there is no data of December 2019, the opening balance of January 2022 would be the closing balance of December 2019. And if you continue to view the data of February 2022, you can see the opening balance will be the closing balance of January 2022.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is why your first measure does not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, please refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsqlskull.com%2F2021%2F03%2F12%2Fopeningbalancemonth-function-dax%2F%23%3A~%3Atext%3DLets%2520create%2520a%2520measure%2520named%2520OBMonth%2520that%2520uses%2CIt%2520returns%2520the%2520opening%2520balance%2520for%2520every%2520month&amp;amp;data=05%7C01%7Cv-jianboli%40microsoft.com%7Cf0deb5bf27684028d3e808da74696ae5%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637950293507148135%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=CbPApjOMbpwIUFMtVkPPPesjfFFowGNI%2BWKESLUCV9g%3D&amp;amp;reserved=0" target="_blank" rel="noopener"&gt;OPENINGBALANCEMONTH Function DAX&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/tv/openingbalancemonth-openingbalancequarter-openingbalanceyear-dax-guide/" target="_blank" rel="noopener"&gt; OPENINGBALANCEMONTH, OPENINGBALANCEQUARTER, OPENINGBALANCEYEAR &amp;amp;#8211; DAX Guide - SQLBI&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 09:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Openingbalancemonth-vs-own-calculation-difference/m-p/2675132#M79894</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-08-02T09:40:42Z</dc:date>
    </item>
  </channel>
</rss>

