<?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>Question Re: Model-level Running Total (ITERATE) restarts from zero when using Restricted Measures / Input Co in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/model-level-running-total-iterate-restarts-from-zero-when-using-restricted/qaa-p/14313422#M4935663</link>
    <description>Hi William_Yu1 thanks for checking the issue i have added screenshot of error and required output</description>
    <pubDate>Fri, 23 Jan 2026 10:23:33 GMT</pubDate>
    <dc:creator>Insan28</dc:creator>
    <dc:date>2026-01-23T10:23:33Z</dc:date>
    <item>
      <title>Model-level Running Total (ITERATE) restarts from zero when using Restricted Measures / Input Contro</title>
      <link>https://community.sap.com/t5/technology-q-a/model-level-running-total-iterate-restarts-from-zero-when-using-restricted/qaq-p/14309573</link>
      <description>&lt;P&gt;I am trying to display a Running Total (RT) that remains accurate across fiscal years, even when a user filters the view to a specific Fiscal Year (FY).&lt;BR /&gt;I have a model-level measure calculating the Running Total using the&amp;nbsp;ITERATE&amp;nbsp;function:&lt;BR /&gt;1-&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ITERATE(PRIOR() + [Measure], [Measure], [d/DIM_DATE])&lt;BR /&gt;2--&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(NOT(ISNULL([d/DIM_IMPACT_DATE].[p/FISCAL_CALPERIOD])),LOOKUP([VALUE] ,[d/DIM_DATE] =LastPeriods("Month",1000000 )), IF(NOT(ISNULL([d/DIM_DATE].[p/FISCAL_CALQUARTER])),LOOKUP([VALUE] ,[d/DIM_DATE] =LastPeriods("Quarter",10000 )), IF(NOT(ISNULL([d/DIM_DATE].[p/FISCAL_YEAR])),LOOKUP([VALUE] ,[d/DIM_DATE] =LastPeriods("Year",100 ))))))&lt;BR /&gt;Current Configuration &amp;amp; Attempts made:&lt;BR /&gt;Restricted Measure:&amp;nbsp;I created a Restricted Measure in the Story using a&amp;nbsp;Calculation Input Control&amp;nbsp;for the Fiscal Year.&lt;BR /&gt;Constant Selection:&amp;nbsp;I enabled&amp;nbsp;Constant Selection&amp;nbsp;on the&amp;nbsp;DIM_IMPACT_DATE&amp;nbsp;dimension within the Restricted Measure to try and preserve historical context.&lt;BR /&gt;Model-Level Logic:&amp;nbsp;I have tried using&amp;nbsp;LOOKUP&amp;nbsp;and&amp;nbsp;LastPeriods&amp;nbsp;formulas to fetch historical data, but these return nulls (slant lines) or incorrect values once the FY restriction is applied.&lt;BR /&gt;Observation:&amp;nbsp;Test measures show that the&amp;nbsp;ITERATE&amp;nbsp;logic works perfectly when all years are visible in the table. The "restart" only happens when the query context is limited to a specific year.&lt;BR /&gt;When the table is unfiltered, the values are correct (e.g., FY 2026 correctly includes the cumulative sum of 2024 and 2025). However, as soon as I apply a restriction to show only the selected year, the Running Total&amp;nbsp;restarts from zero&amp;nbsp;for that year.&lt;BR /&gt;Note: No standard filter for&amp;nbsp; date only dynamic selection based on FY user is selecting&lt;BR /&gt;The Issue:&lt;BR /&gt;Even with Constant Selection enabled, the engine seems to be performing a "Pre-Aggregation" filter that strips historical data before the&amp;nbsp;ITERATE&amp;nbsp;function executes, forcing the calculation to restart at the beginning of the filtered period.&lt;BR /&gt;Questions:&lt;BR /&gt;How can I force the&amp;nbsp;ITERATE&amp;nbsp;function to respect historical data when a Story-level restriction is active?&lt;BR /&gt;Is there a specific "Calculation Priority" setting or a "Visual-only Filter" method that allows me to hide previous years without removing their data from the RT calculation context?&lt;BR /&gt;Are there any known limitations with&amp;nbsp;ITERATE&amp;nbsp;when combined with Restricted Measures and Constant Selection in the Optimized Story Experience?&lt;/P&gt;&lt;P&gt;I am adding screenshots of an eg how the Running Total created on model level works fine until it is restricted to any year.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jan 2026 18:28:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-level-running-total-iterate-restarts-from-zero-when-using-restricted/qaq-p/14309573</guid>
      <dc:creator>Insan28</dc:creator>
      <dc:date>2026-01-20T18:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Model-level Running Total (ITERATE) restarts from zero when using Restricted Measures / Input Co</title>
      <link>https://community.sap.com/t5/technology-q-a/model-level-running-total-iterate-restarts-from-zero-when-using-restricted/qaa-p/14310681#M4935403</link>
      <description>Can you provide a screenshot on how the table shows data now and what's the desired display?</description>
      <pubDate>Tue, 20 Jan 2026 04:53:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-level-running-total-iterate-restarts-from-zero-when-using-restricted/qaa-p/14310681#M4935403</guid>
      <dc:creator>William_Yu1</dc:creator>
      <dc:date>2026-01-20T04:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Model-level Running Total (ITERATE) restarts from zero when using Restricted Measures / Input Co</title>
      <link>https://community.sap.com/t5/technology-q-a/model-level-running-total-iterate-restarts-from-zero-when-using-restricted/qaa-p/14313422#M4935663</link>
      <description>Hi William_Yu1 thanks for checking the issue i have added screenshot of error and required output</description>
      <pubDate>Fri, 23 Jan 2026 10:23:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-level-running-total-iterate-restarts-from-zero-when-using-restricted/qaa-p/14313422#M4935663</guid>
      <dc:creator>Insan28</dc:creator>
      <dc:date>2026-01-23T10:23:33Z</dc:date>
    </item>
  </channel>
</rss>

