<?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 Variable and calculated account formula in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745177#M4783689</link>
    <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;First define these 2 helper accounts accounts&lt;/P&gt;&lt;P&gt;If Year = Base Year then calculate the Number of Planes&lt;/P&gt;&lt;P&gt;and If Year is Larger then Base Year Take the number of planes in the base year and calculate for each year increase by 3%&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane]=[no. passengers ]/[ seat on plane]&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane_baseyr]=RESTRICT([calc_plane] ,[d/Time]=['BaseYear'] )&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane_future]=ITERATE(PRIOR () * 1.03 ,[calc_plane_baseyr],[d/Time])&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;IF(TONUMBER([d/Time].[p/YEAR] ) &amp;gt;TONUMBER(['BaseYear'] ),[calc_plane_future] ,IF(TONUMBER([d/Time].[p/YEAR] ) =TONUMBER(['BaseYear'] ),[calc_plane],0))&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note: ['BaseYear'] this is my model vaiable ID&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;My final formula&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232522-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;variable selection&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232520-image.png" /&gt;&lt;/P&gt;&lt;P&gt;In Year 2022 it shows the original calculation for no of planes, for future years it incrmenets by 3% over base yea value.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232523-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
    <pubDate>Thu, 07 Dec 2023 07:48:11 GMT</pubDate>
    <dc:creator>N1kh1l</dc:creator>
    <dc:date>2023-12-07T07:48:11Z</dc:date>
    <item>
      <title>model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaq-p/12745176</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
  &lt;P&gt;Need your help pls with model Varibale and calculated account formula&lt;/P&gt;
  &lt;P&gt;I have number of passenger's for 2023 and number of planes is calculate (no. passengers / seat on plane)&lt;/P&gt;
  &lt;P&gt;this is the simple part&lt;/P&gt;
  &lt;P&gt;for 2024 - 2032 i want in each year the number of planes to be 3% above last year&lt;/P&gt;
  &lt;P&gt;I created a Variables parameter Base year&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2231531-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Now in the Number of Planes Account i want to write a formula to calculate &lt;BR /&gt;If Year = Base Year then calculate the Number of Planes&lt;/P&gt;
  &lt;P&gt;and If Year is Larger then Base Year Take the number of planes in the base year and calculate for each year increase by 3%&lt;/P&gt;
  &lt;P&gt;Appreciate You help How is the best way to define that&lt;/P&gt;
  &lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 21:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaq-p/12745176</guid>
      <dc:creator>daniel_weisblut86</dc:creator>
      <dc:date>2023-12-06T21:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745177#M4783689</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;First define these 2 helper accounts accounts&lt;/P&gt;&lt;P&gt;If Year = Base Year then calculate the Number of Planes&lt;/P&gt;&lt;P&gt;and If Year is Larger then Base Year Take the number of planes in the base year and calculate for each year increase by 3%&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane]=[no. passengers ]/[ seat on plane]&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane_baseyr]=RESTRICT([calc_plane] ,[d/Time]=['BaseYear'] )&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane_future]=ITERATE(PRIOR () * 1.03 ,[calc_plane_baseyr],[d/Time])&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;IF(TONUMBER([d/Time].[p/YEAR] ) &amp;gt;TONUMBER(['BaseYear'] ),[calc_plane_future] ,IF(TONUMBER([d/Time].[p/YEAR] ) =TONUMBER(['BaseYear'] ),[calc_plane],0))&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Note: ['BaseYear'] this is my model vaiable ID&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;My final formula&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232522-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;variable selection&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232520-image.png" /&gt;&lt;/P&gt;&lt;P&gt;In Year 2022 it shows the original calculation for no of planes, for future years it incrmenets by 3% over base yea value.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232523-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 07:48:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745177#M4783689</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-12-07T07:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745178#M4783690</link>
      <description>&lt;P&gt;Hi Nikhil&lt;/P&gt;&lt;P&gt;Thank you for the quick respond &lt;/P&gt;&lt;P&gt;Regarding The last formula&lt;/P&gt;&lt;P&gt; where do i define it?&lt;BR /&gt;in the model? or at the story?&lt;/P&gt;&lt;P&gt;IF(TONUMBER([d/Time].[p/YEAR] ) &amp;gt;TONUMBER(['BaseYear'] ),[calc_plane_future] ,IF(TONUMBER([d/Time].[p/YEAR] ) =TONUMBER(['BaseYear'] ),[calc_plane],0))&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 10:18:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745178#M4783690</guid>
      <dc:creator>daniel_weisblut86</dc:creator>
      <dc:date>2023-12-07T10:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745179#M4783691</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In the model in calculated account.&lt;/P&gt;&lt;P&gt;Br.&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 11:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745179#M4783691</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-12-07T11:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745180#M4783692</link>
      <description>&lt;P&gt;Ok&lt;/P&gt;&lt;P&gt;Its in separate account?&lt;/P&gt;&lt;P&gt;You just wrote the formula and didnt mention in which account &lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 13:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745180#M4783692</guid>
      <dc:creator>daniel_weisblut86</dc:creator>
      <dc:date>2023-12-07T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745181#M4783693</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is your [Number of Planes]  seperate account which will show calculated value (no. passengers / seat on plane) for base year and 3% increment over base year for future years.&lt;/P&gt;&lt;P&gt;Br.&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2023 13:09:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745181#M4783693</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-12-07T13:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745182#M4783694</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I put everything like you write but something is not working&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2233497-image.png" /&gt;&lt;/P&gt;&lt;P&gt;When i put 2023 base year&lt;/P&gt;&lt;P&gt;I input no.passengers in 2023 24K its working great&lt;BR /&gt;In 2024 i input no.passengers 26K its not calculate Numberofplane&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2233498-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Appreciated you help&lt;/P&gt;Daniel</description>
      <pubDate>Thu, 07 Dec 2023 21:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745182#M4783694</guid>
      <dc:creator>daniel_weisblut86</dc:creator>
      <dc:date>2023-12-07T21:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745183#M4783695</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;This does not look as simple but I have tried to work it out. I would still advise you to check if you can use Data Action for this.&lt;/P&gt;&lt;P&gt;Account members&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232590-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Formulas:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane]=[No_of_pax]/[Seat_on_plane]&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane_baseyr]=LOOKUP([calc_plane] ,[d/Date]=['BaseYear'] )&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;[calc_plane_future]=ITERATE(IF([d/Date].[p/YEAR]&amp;gt;['BaseYear'] ,PRIOR(),[calc_plane_baseyr]/1.03) * 1.03 ,[calc_plane_baseyr],[d/Date])&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;[No_of_plane]=IF([d/Date].[p/YEAR]  &amp;gt;['BaseYear'],[calc_plane_future] ,&lt;BR /&gt;IF([d/Date].[p/YEAR] =['BaseYear'],[calc_plane_baseyr],0))&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Below I am using as you did not say what happens to year prior to Base Yr, so I am keeping them as calc_plane=[No_of_pax]/[Seat_on_plane]&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;[No_of_plane_1]=IF([No_of_plane]=0 ,[calc_plane] ,[No_of_plane] )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Base Yr= 2023, 159 in 2023 and then 3% increment over years&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232591-image.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Base Yr= 2024,&lt;/B&gt;&lt;B&gt;172 in 2024 and then 3% increment over years, 159 in 2023&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232592-image.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Base Yr= 2025,&lt;/B&gt;&lt;B&gt;185 in 2024 and then 3% increment over years, 159 in 2023 nd 172 in 2024&lt;/B&gt;&lt;B&gt;&lt;BR /&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232593-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps !!&lt;/P&gt;&lt;P&gt;Please accept/upvote if this helps you&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 15:37:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745183#M4783695</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-12-08T15:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745184#M4783696</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;You know i tried everything you wrote and it didn't work&lt;/P&gt;&lt;P&gt;And then i try it in the classic model and its worked&lt;/P&gt;&lt;P&gt;I Built the my model in the new model with Account and 1 measure &lt;/P&gt;&lt;P&gt;Do you have an idea why the iterate and period functions are not working in the new model? (i try to build simple example and its not working) &lt;/P&gt;&lt;P&gt;Again Thank you a lot &lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 21:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745184#M4783696</guid>
      <dc:creator>daniel_weisblut86</dc:creator>
      <dc:date>2023-12-09T21:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745185#M4783697</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;daniel_weisblut&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My example was fully on new model itself. Below is the simple model used.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2232627-image.png" /&gt;&lt;/P&gt;&lt;P&gt;Br.&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 06:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745185#M4783697</guid>
      <dc:creator>N1kh1l</dc:creator>
      <dc:date>2023-12-10T06:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: model Variable and calculated account formula</title>
      <link>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745186#M4783698</link>
      <description>&lt;P&gt;Thank you very much&lt;/P&gt;&lt;P&gt;You help me a lot&lt;/P&gt;&lt;P&gt;Have a good week &lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2023 07:11:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/model-variable-and-calculated-account-formula/qaa-p/12745186#M4783698</guid>
      <dc:creator>daniel_weisblut86</dc:creator>
      <dc:date>2023-12-10T07:11:59Z</dc:date>
    </item>
  </channel>
</rss>

