<?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: Opening balance from running total column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3278961#M121738</link>
    <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have the requirement where user can select any date. it can be a single day or a week or a couple of months. and the solution you perposed is workable for month, quarter and year opening and closing balance.&lt;BR /&gt;i'm looking for a way to select dynamic minmum date so i can utilize the running totals to get the correct results.&lt;BR /&gt;please reach out to me if you need aditional clarity.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 07:38:27 GMT</pubDate>
    <dc:creator>junaidch278</dc:creator>
    <dc:date>2023-06-12T07:38:27Z</dc:date>
    <item>
      <title>Opening balance from running total column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3276774#M121561</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;&lt;P&gt;Thanks in advance. I am having a problem while calculating opening and closing balance on the PBI from the following table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I have tried these 2 dax calculations but it is not reflecting the desired results.&lt;BR /&gt;&lt;FONT size="2" color="#800080"&gt;CALCULATE&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;min&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactStockMovement[ClosingBalance]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimDate[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),(&lt;/SPAN&gt;&lt;SPAN&gt;DimDate[date]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;min&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimDate[date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;min&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FactStockMovement[ClosingBalance]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DimDate[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),(&lt;/SPAN&gt;&lt;SPAN&gt;DimDate[date]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;FIRSTDATE(DimDate[date])&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2" color="#800080"&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;FONT size="4" color="#000000"&gt;Can anyone guide me how can i calculate opening and closing balance from the table.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="4" color="#000000"&gt;the 1st expression is working for the values having opening and closing balance, but if there is no transaction on the min and max date we are getting null.&lt;BR /&gt;looking forward to hearing from you guys.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jun 2023 14:22:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3276774#M121561</guid>
      <dc:creator>junaidch278</dc:creator>
      <dc:date>2023-06-09T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Opening balance from running total column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3277567#M121627</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="573466" data-lia-user-login="junaidch278" class="lia-mention lia-mention-user"&gt;junaidch278&lt;/a&gt;&amp;nbsp;you should probably use functions OPENING/CLOSINGBALANCE* for DAX. check link&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sqlbi.com/tv/closingbalancemonth-closingbalancequarter-closingbalanceyear-dax-guide/" target="_self"&gt;https://www.sqlbi.com/tv/closingbalancemonth-closingbalancequarter-closingbalanceyear-dax-guide/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 08:09:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3277567#M121627</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-10T08:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Opening balance from running total column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3278961#M121738</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="555045" data-lia-user-login="some_bih" class="lia-mention lia-mention-user"&gt;some_bih&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I have the requirement where user can select any date. it can be a single day or a week or a couple of months. and the solution you perposed is workable for month, quarter and year opening and closing balance.&lt;BR /&gt;i'm looking for a way to select dynamic minmum date so i can utilize the running totals to get the correct results.&lt;BR /&gt;please reach out to me if you need aditional clarity.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 07:38:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3278961#M121738</guid>
      <dc:creator>junaidch278</dc:creator>
      <dc:date>2023-06-12T07:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Opening balance from running total column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3279011#M121741</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="573466" data-lia-user-login="junaidch278" class="lia-mention lia-mention-user"&gt;junaidch278&lt;/a&gt;&amp;nbsp;to provide clear solution in some way, the amounts as input and output should be clear.&lt;/P&gt;&lt;P&gt;In general, are these inputs for amount like stock, etc cash balance or like income, etc salary.&lt;/P&gt;&lt;P&gt;What about wanted output?&amp;nbsp; From picture stock is wanted to be shown, like opening balance +/- inputs / outputs = ending balance, right?&lt;/P&gt;&lt;P&gt;Give us some example data as input and expected output per X (x could be date, product key...)&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 08:01:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opening-balance-from-running-total-column/m-p/3279011#M121741</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2023-06-12T08:01:13Z</dc:date>
    </item>
  </channel>
</rss>

