<?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 below problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4890268#M186169</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daily Closing Balance = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Inventory'[Quantity]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Calendar'),&lt;BR /&gt;'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Monthly Closing Balance = &lt;BR /&gt;CLOSINGBALANCEMONTH(SUM('Inventory'[Quantity]), 'Calendar'[Date])&lt;/P&gt;
&lt;P&gt;Quarterly Closing Balance = &lt;BR /&gt;CLOSINGBALANCEQUARTER(SUM('Inventory'[Quantity]), 'Calendar'[Date])&lt;/P&gt;
&lt;P&gt;Yearly Closing Balance = &lt;BR /&gt;CLOSINGBALANCEYEAR(SUM('Inventory'[Quantity]), 'Calendar'[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this answer helped, please click Kudos or Accept as Solution.&lt;BR /&gt;-Kedar&lt;BR /&gt;LinkedIn: &lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank"&gt;https://www.linkedin.com/in/kedar-pande&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2025 05:46:32 GMT</pubDate>
    <dc:creator>Kedar_Pande</dc:creator>
    <dc:date>2025-12-02T05:46:32Z</dc:date>
    <item>
      <title>Dax measure for below problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4888953#M186155</link>
      <description>&lt;P&gt;Please provide the Closing balance DAX measure&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Calendar table&lt;/LI&gt;&lt;LI&gt;Inventory transaction fact table with below columns&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Posting date date type&lt;/P&gt;&lt;P class="lia-align-left"&gt;Material code type text&lt;/P&gt;&lt;P&gt;Quantity &amp;nbsp;&amp;nbsp;Int64.type&lt;BR /&gt;Amount&amp;nbsp;&amp;nbsp; Int64.type&lt;/P&gt;&lt;P&gt;Movement type Int64.type&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Want Daily, Monthly, quarterly, Yearly closing balance &amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 30 Nov 2025 02:45:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4888953#M186155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-11-30T02:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure for below problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4889858#M186159</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;LI-CODE lang="markup"&gt;Closing Balance :=
CALCULATE(
    SUM(Inventory[Quantity]),
    FILTER(
        ALL(Calendar),
        Calendar[Date] &amp;lt;= MAX(Calendar[Date])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works for Daily, Monthly, Quarterly, and Yearly because the MAX(Calendar[Date]) changes based on the visual’s granularity.&lt;/P&gt;&lt;P&gt;--------------------------------&lt;/P&gt;&lt;P&gt;I hope this helps, please give kudos and mark as solved if it does!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Connect with me on &lt;/SPAN&gt;&lt;A href="https://www.linkedin.com/in/alex-ward-30966b4b/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Subscribe to my &lt;/SPAN&gt;&lt;A href="https://www.youtube.com/@AlexTechShed" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;YouTube channel&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; for Fabric/Power Platform related content!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 17:39:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4889858#M186159</guid>
      <dc:creator>wardy912</dc:creator>
      <dc:date>2025-12-01T17:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure for below problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4890268#M186169</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daily Closing Balance = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM('Inventory'[Quantity]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('Calendar'),&lt;BR /&gt;'Calendar'[Date] &amp;lt;= MAX('Calendar'[Date])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Monthly Closing Balance = &lt;BR /&gt;CLOSINGBALANCEMONTH(SUM('Inventory'[Quantity]), 'Calendar'[Date])&lt;/P&gt;
&lt;P&gt;Quarterly Closing Balance = &lt;BR /&gt;CLOSINGBALANCEQUARTER(SUM('Inventory'[Quantity]), 'Calendar'[Date])&lt;/P&gt;
&lt;P&gt;Yearly Closing Balance = &lt;BR /&gt;CLOSINGBALANCEYEAR(SUM('Inventory'[Quantity]), 'Calendar'[Date])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this answer helped, please click Kudos or Accept as Solution.&lt;BR /&gt;-Kedar&lt;BR /&gt;LinkedIn: &lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank"&gt;https://www.linkedin.com/in/kedar-pande&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 05:46:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4890268#M186169</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2025-12-02T05:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure for below problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4893707#M186255</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;1.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Daily Closing Balance =
CALCULATE (
    SUM ( 'Inventory'[Quantity] ),
    FILTER (
        ALL ( 'Calendar'[Date] ),
        'Calendar'[Date] &amp;lt;= MAX ( 'Calendar'[Date] )
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;2.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Monthly Closing Balance =
VAR _LastDay =
    EOMONTH ( MAX ( 'Calendar'[Date] ), 0 )
RETURN
CALCULATE (
    [Daily Closing Balance],
    'Calendar'[Date] = _LastDay
)
&lt;/LI-CODE&gt;
&lt;P&gt;3.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Quarterly Closing Balance =
VAR _LastDayQuarter =
    ENDOFQUARTER ( 'Calendar'[Date] )
RETURN
CALCULATE (
    [Daily Closing Balance],
    'Calendar'[Date] = _LastDayQuarter
)
&lt;/LI-CODE&gt;
&lt;P&gt;4.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Yearly Closing Balance =
VAR _LastDayYear =
    ENDOFYEAR ( 'Calendar'[Date] )
RETURN
CALCULATE (
    [Daily Closing Balance],
    'Calendar'[Date] = _LastDayYear
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 05 Dec 2025 03:03:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4893707#M186255</guid>
      <dc:creator>Arul</dc:creator>
      <dc:date>2025-12-05T03:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure for below problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4893897#M186261</link>
      <description>&lt;P&gt;hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;try below:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Closing Balance KeepFilters = 
VAR LastDate = MAX('Calendar'[Date])
RETURN
    CALCULATE(
        SUM('Inventory Transaction'[Quantity]),
        KEEPFILTERS('Inventory Transaction'[Posting date] &amp;lt;= LastDate)
    )&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Closing Balance CalcTable = 
VAR LastDate = MAX('Calendar'[Date])
VAR FilteredTransactions = 
    CALCULATETABLE(
        'Inventory Transaction',
        'Inventory Transaction'[Posting date] &amp;lt;= LastDate
    )
RETURN
    SUMX(FilteredTransactions, [Quantity])&lt;/LI-CODE&gt;&lt;P&gt;If it doesnt work, please provide more information on input/output.&lt;/P&gt;&lt;P&gt;Please give kudos or mark it as solution once confirmed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Praful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 07:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4893897#M186261</guid>
      <dc:creator>Praful_Potphode</dc:creator>
      <dc:date>2025-12-05T07:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure for below problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4895880#M186324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="568855" data-lia-user-login="Kedar_Pande" class="lia-mention lia-mention-user"&gt;Kedar_Pande&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="107764" data-lia-user-login="Arul" class="lia-mention lia-mention-user"&gt;Arul&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1261729" data-lia-user-login="Praful_Potphode" class="lia-mention lia-mention-user"&gt;Praful_Potphode&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="475583" data-lia-user-login="wardy912" class="lia-mention lia-mention-user"&gt;wardy912&lt;/a&gt;&amp;nbsp; for your inputs.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I just wanted to check if the issue has been resolved on your end, or if you require any further assistance. Please feel free to let us know, we’re happy to help!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;BR /&gt;Chaithra E.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 11:52:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4895880#M186324</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-12-08T11:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure for below problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4899612#M186406</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Dec 2025 10:55:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-for-below-problem/m-p/4899612#M186406</guid>
      <dc:creator>v-echaithra</dc:creator>
      <dc:date>2025-12-11T10:55:16Z</dc:date>
    </item>
  </channel>
</rss>

