<?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 Cumulative Total with dynamic and effective filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670081#M142334</link>
    <description>&lt;P&gt;Hi Profis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue here and wana your help.&lt;/P&gt;&lt;P&gt;I create Total cumulative measure as below :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[" Ford."]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_LedgerAccount&lt;/SPAN&gt;&lt;SPAN&gt;[LedgerAccount]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Dim_LedgerAccount&lt;/SPAN&gt;&lt;SPAN&gt;[LedgerAccount]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_LedgerAccount&lt;/SPAN&gt;&lt;SPAN&gt;[LedgerAccount]&lt;/SPAN&gt;&lt;SPAN&gt;)) , &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_Date&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Dim_Date&lt;/SPAN&gt;&lt;SPAN&gt;[Date_NK]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_Date&lt;/SPAN&gt;&lt;SPAN&gt;[Date_NK]&lt;/SPAN&gt;&lt;SPAN&gt;))).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Everything läuft smoothy, till i select a month from filter. Then the measure will been brocken as in the screen shot :&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;Thanks in advance for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 31 Jan 2024 11:06:00 GMT</pubDate>
    <dc:creator>Talal141218</dc:creator>
    <dc:date>2024-01-31T11:06:00Z</dc:date>
    <item>
      <title>Cumulative Total with dynamic and effective filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670081#M142334</link>
      <description>&lt;P&gt;Hi Profis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue here and wana your help.&lt;/P&gt;&lt;P&gt;I create Total cumulative measure as below :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[" Ford."]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_LedgerAccount&lt;/SPAN&gt;&lt;SPAN&gt;[LedgerAccount]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Dim_LedgerAccount&lt;/SPAN&gt;&lt;SPAN&gt;[LedgerAccount]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_LedgerAccount&lt;/SPAN&gt;&lt;SPAN&gt;[LedgerAccount]&lt;/SPAN&gt;&lt;SPAN&gt;)) , &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ALLSELECTED&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_Date&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;Dim_Date&lt;/SPAN&gt;&lt;SPAN&gt;[Date_NK]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_Date&lt;/SPAN&gt;&lt;SPAN&gt;[Date_NK]&lt;/SPAN&gt;&lt;SPAN&gt;))).&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Everything läuft smoothy, till i select a month from filter. Then the measure will been brocken as in the screen shot :&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;Thanks in advance for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jan 2024 11:06:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670081#M142334</guid>
      <dc:creator>Talal141218</dc:creator>
      <dc:date>2024-01-31T11:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with dynamic and effective filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670099#M142338</link>
      <description>&lt;P&gt;It seems like you're trying to create a cumulative total measure, but you're encountering issues when selecting a specific month from the filter. The problem might lie in how your measure is interacting with the filter context.&lt;/P&gt;&lt;P&gt;Here's a revised version of your measure that might work better:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total Cumulative =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[YourMeasure],&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED(Dim_LedgerAccount[LedgerAccount]),&lt;BR /&gt;Dim_LedgerAccount[LedgerAccount] &amp;lt;= MAX(Dim_LedgerAccount[LedgerAccount])&lt;BR /&gt;),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED(Dim_Date),&lt;BR /&gt;Dim_Date[Date_NK] &amp;lt;= MAX(Dim_Date[Date_NK])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Replace [YourMeasure] with the measure you want to cumulate. This formula aims to calculate the cumulative total based on the maximum values of the Ledger Account and Date in the current filter context.&lt;/P&gt;&lt;P&gt;However, if selecting a specific month is breaking the cumulative total, it might be due to the way your date filtering is set up or how your data model is structured.&lt;/P&gt;&lt;P&gt;Ensure that your date table is correctly related to your fact table, and check if the relationships are set up to handle filtering appropriately. Additionally, verify that the date column you're using in your filter has the correct granularity for your analysis.&lt;/P&gt;&lt;P&gt;If the issue persists, providing more details about your data model and the specific behavior you're observing could help in providing a more tailored solution.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jan 2024 11:14:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670099#M142338</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-01-31T11:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with dynamic and effective filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670118#M142339</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for your quickly response. I will share with you the measure i created to calculate the Accounts receivable :&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;" Ford."&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Fact_GeneralLedger&lt;/SPAN&gt;&lt;SPAN&gt;[CM_Fact_GeneralLedger_Amount_CCY]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Dim_LedgerAccount&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Dim_LedgerAccount&lt;/SPAN&gt;&lt;SPAN&gt;[LedgerAccount]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"1200"&lt;/SPAN&gt;&lt;SPAN&gt;)).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I will be thankful for your replay.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Jan 2024 11:23:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670118#M142339</guid>
      <dc:creator>Talal141218</dc:creator>
      <dc:date>2024-01-31T11:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cumulative Total with dynamic and effective filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670462#M142356</link>
      <description>&lt;P&gt;It seems like you want to calculate the accounts receivable specifically for the "Ford" ledger account (assuming "1200" represents the ledger account for Ford). Your measure looks correct for calculating the accounts receivable for that specific ledger account.&lt;/P&gt;&lt;P&gt;The measure you provided calculates the total amount from the Fact_GeneralLedger table where the LedgerAccount is "1200". Here's the measure you provided:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" Ford." = CALCULATE(Fact_GeneralLedger[CM_Fact_GeneralLedger_Amount_CCY], FILTER(Dim_LedgerAccount, Dim_LedgerAccount[LedgerAccount] = "1200"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This measure filters the Fact_GeneralLedger table to only include rows where the LedgerAccount is "1200", and then it sums up the values in the CM_Fact_GeneralLedger_Amount_CCY column for those rows.&lt;/P&gt;&lt;P&gt;If you're looking to create a cumulative total for the accounts receivable for Ford, you can use a measure similar to the one provided in your original question, but tailored for the "Ford" ledger account specifically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cumulative_Ford_AR =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;[Ford.],&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED(Dim_LedgerAccount),&lt;BR /&gt;Dim_LedgerAccount[LedgerAccount] = "1200"&lt;BR /&gt;),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED(Dim_Date),&lt;BR /&gt;Dim_Date[Date_NK] &amp;lt;= MAX(Dim_Date[Date_NK])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This measure will calculate the cumulative accounts receivable for the "Ford" ledger account over time, considering all dates and ledger accounts if no specific filters are applied.&lt;/P&gt;&lt;P&gt;Remember to adjust the measure according to your data model and requirements. If you have any further questions or need additional assistance, feel free to ask!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 14:03:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Cumulative-Total-with-dynamic-and-effective-filter/m-p/3670462#M142356</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-01-31T14:03:24Z</dc:date>
    </item>
  </channel>
</rss>

