<?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: Measure Changes When I add a field to my table visualization in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4410162#M175145</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370828" data-lia-user-login="kjanse" class="lia-mention lia-mention-user"&gt;kjanse&lt;/a&gt;&amp;nbsp;When you add additional fields to your table visualization, it changes the context of the calculation, which can affect the results of your cumulative sum measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To ensure that your cumulative sum measure calculates correctly regardless of the additional fields, you can modify your DAX formula to explicitly define the context for the fiscal year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM([CUMULATIVE_BALANCE]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED('RER_EXP'[FY]),&lt;BR /&gt;'RER_EXP'[FY] &amp;lt;= MAX('RER_EXP'[FY])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2025 03:48:30 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2025-02-14T03:48:30Z</dc:date>
    <item>
      <title>Measure Changes When I add a field to my table visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4410038#M175134</link>
      <description>&lt;P&gt;When I add certain fields to add additional details to a visual, my measure that is a cumulative sum of balances based on a fiscal year selection changes the sum and totals.&amp;nbsp; Here is the formula that I'm currently using:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;([CUMULATIVE_BALANCE]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;('RER_EXP'[FY]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'RER_EXP'[FY] &amp;lt;= &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('RER_EXP'[FY])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;BR /&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;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for you help!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Feb 2025 02:11:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4410038#M175134</guid>
      <dc:creator>kjanse</dc:creator>
      <dc:date>2025-02-14T02:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Changes When I add a field to my table visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4410162#M175145</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370828" data-lia-user-login="kjanse" class="lia-mention lia-mention-user"&gt;kjanse&lt;/a&gt;&amp;nbsp;When you add additional fields to your table visualization, it changes the context of the calculation, which can affect the results of your cumulative sum measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To ensure that your cumulative sum measure calculates correctly regardless of the additional fields, you can modify your DAX formula to explicitly define the context for the fiscal year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM([CUMULATIVE_BALANCE]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED('RER_EXP'[FY]),&lt;BR /&gt;'RER_EXP'[FY] &amp;lt;= MAX('RER_EXP'[FY])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 03:48:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4410162#M175145</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-02-14T03:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Changes When I add a field to my table visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4410454#M175153</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370828" data-lia-user-login="kjanse" class="lia-mention lia-mention-user"&gt;kjanse&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue you're describing typically occurs when the &lt;STRONG data-start="54" data-end="79"&gt;context of the visual&lt;/STRONG&gt; changes due to adding more fields, especially if those fields interact with your measure. You can modify your dax as below to solve this issue :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cumulative Balance Remove Filters = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM([CUMULATIVE_BALANCE]),&lt;BR /&gt;REMOVEFILTERS('RER_EXP'[FY]),&lt;BR /&gt;'RER_EXP'[FY] &amp;lt;= MAX('RER_EXP'[FY])&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(&lt;BR /&gt;SUM([CUMULATIVE_BALANCE]),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED('RER_EXP'[FY]),&lt;BR /&gt;'RER_EXP'[FY] &amp;lt;= MAX('RER_EXP'[FY])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Did I answer your query ? Mark this as solution if this has solved your issue, Kudos are appreciated.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;Neeraj&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 07:02:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4410454#M175153</guid>
      <dc:creator>divyed</dc:creator>
      <dc:date>2025-02-14T07:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Measure Changes When I add a field to my table visualization</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4412880#M175253</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;Firstly&amp;nbsp; divyed&amp;nbsp;and&amp;nbsp; bhanu_gautam&amp;nbsp;thank you for yours solutions！&lt;BR /&gt;And&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="370828" data-lia-user-login="kjanse" class="lia-mention lia-mention-user"&gt;kjanse&lt;/a&gt;&amp;nbsp;,Based on your question, I think you have to visualize the object is composed of data from two tables, then in this case, you use the ALL function, but you only exclude the impact of the filter of the column FY, at this time if you add other columns into the case, it will affect your cumulative total, you can use ALL directly on this table to ensure that your context will not be affected, if you still need to use the If you still need to use the FY column, then the suggestions given by the two SUs are great and effective, and can solve your needs perfectly, I hope this explanation helps you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DAX =
CALCULATE (
    SUM ( [CUMULATIVE_BALANCE] ),
    FILTER ( ALL ( 'RER_EXP' ), 'RER_EXP'[FY] &amp;lt;= MAX ( 'RER_EXP'[FY] ) )
)
&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;MEASURE =
CALCULATE (
    SUM ( [CUMULATIVE_BALANCE] ),
    ALLEXCEPT ( RER_EXP, 'RER_EXP'[FY] ),
    'RER_EXP'[FY] &amp;lt;= MAX ( 'RER_EXP'[FY] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Community Support Team_ Tom Shen&lt;/P&gt;
&lt;P&gt;If this post helps then please consider&amp;nbsp;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2025 02:52:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-Changes-When-I-add-a-field-to-my-table-visualization/m-p/4412880#M175253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-17T02:52:06Z</dc:date>
    </item>
  </channel>
</rss>

