<?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 calculation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/calculation/m-p/611022#M76799</link>
    <description>&lt;P&gt;dataset ln_mon_ref&lt;BR /&gt;LNo 12_Month_A1 12_Month_A6 12_Month_Base 12_Month_A2 12_Month_A4&lt;BR /&gt;23 290.7546354 448.57426097 1880.3844491 1116.960121 406.90120716&lt;BR /&gt;24 0.1278847503 0.1573367909 0.5645658305 0.3878716946 0.1324158737&lt;BR /&gt;25 56.02135594 65.7289856 282.42013204 174.8432417 59.878547019&lt;/P&gt;
&lt;P&gt;dataset sc_original&lt;BR /&gt;Scenario Original 10/30/30/30 33/0/33/33/0 50/0/0/50/0 50/0/25/25/0&lt;BR /&gt;12_Month_A1 0.1071 0 0 0 0&lt;BR /&gt;12_Month_A6 0.1071 0.3 0 0 0&lt;BR /&gt;12_Month_Base 0.4464 0.1 0.333333333 0.5 0.5&lt;BR /&gt;12_Month_A2 0.2683 0.3 0.333333333 0 0.25&lt;BR /&gt;12_Month_A4 0.0711 0.3 0.333333333 0.5 0.25&lt;/P&gt;
&lt;P&gt;based on LNO column 12_Month_A1 column should divide and multiply original*10/30/30/30 based on scenario column&lt;BR /&gt;from dataset sc_original as shown below example calculation.&lt;BR /&gt;I need four addition column sc_30_10,sc_33_33,sc_50_50,sc_50_25 each column should give different scenrio results&lt;BR /&gt;as shown in Expected output&lt;/P&gt;
&lt;P&gt;calculation example:&lt;BR /&gt;scenario_30_10&lt;BR /&gt;=290.7546354/0.1071*0+448.57426097/0.1071*0.3+1880.3844491/0.4464*0.1+1116.960121/0.2683*0.3+406.90120716/0.0711*0.3&lt;BR /&gt;=0.1278847503/0.1071*0+0.1573367909/0.1071*0.3+0.5645658305/0.4464*0.1+0.3878716946/0.2683*0.3+0.1324158737/0.0711*0.3&lt;BR /&gt;=56.02135594/0.1071*0+65.7289856/0.1071*0.3+282.42013204/0.4464*0.1+174.8432417/0.2683*0.3+59.878547019/0.0711*0.3&lt;/P&gt;
&lt;P&gt;scenario_33_33&lt;BR /&gt;=290.7546354/0.1071*0+448.57426097/0.1071*0+1880.3844491/0.4464*0.333333333+1116.960121/0.2683*0.333333333+406.90120716/0.0711*0.333333333 &lt;BR /&gt;=0.1278847503/0.1071*0+0.1573367909/0.1071*0+0.5645658305/0.4464*0.333333333+0.3878716946/0.2683*0.333333333+0.1324158737/0.0711*0.333333333 &lt;BR /&gt;=56.02135594/0.1071*0+65.7289856/0.1071*0+282.42013204/0.4464*0.333333333+174.8432417/0.2683*0.333333333+59.878547019/0.0711*0.333333333&lt;/P&gt;
&lt;P&gt;scenario_50_50&lt;BR /&gt;=290.7546354/0.1071*0+448.57426097/0.1071*0+1880.3844491/0.4464*0.5+1116.960121/0.2683*0+406.90120716/0.0711*0.5 &lt;BR /&gt;=0.1278847503/0.1071*0+0.1573367909/0.1071*0+0.5645658305/0.4464*0.5+0.3878716946/0.2683*0+0.1324158737/0.0711*0.5 &lt;BR /&gt;=56.02135594/0.1071*0+65.7289856/0.1071*0+282.42013204/0.4464*0.5+174.8432417/0.2683*0+59.878547019/0.0711*0.5&lt;/P&gt;
&lt;P&gt;scenario_50_25&lt;BR /&gt;=290.7546354/0.1071*0+448.57426097/0.1071*0+1880.3844491/0.4464*0.5+1116.960121/0.2683*0.25+406.90120716/0.0711*0.25 &lt;BR /&gt;=0.1278847503/0.1071*0+0.1573367909/0.1071*0+0.5645658305/0.4464*0.5+0.3878716946/0.2683*0.25+0.1324158737/0.0711*0.25 &lt;BR /&gt;=56.02135594/0.1071*0+65.7289856/0.1071*0+282.42013204/0.4464*0.5+174.8432417/0.2683*0.25+59.878547019/0.0711*0.25&lt;/P&gt;
&lt;P&gt;Expected output:&lt;BR /&gt;LNo 12_Month_A1 12_Month_A6 12_Month_Base 12_Month_A2 12_Month_A4 sc_30_10 sc_33_33 sc_50_50 sc_50_25&lt;BR /&gt;23 290.7546354 448.574261 1880.384449 1116.960121 406.9012072 4644 4699 4968 4578&lt;BR /&gt;24 0.12788475 0.157336791 0.564565831 0.387871695 0.132415874 2 2 2 1&lt;BR /&gt;25 56.02135594 65.7289856 282.420132 174.8432417 59.87854702 696 709 737 690&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2019 14:26:52 GMT</pubDate>
    <dc:creator>vnreddy</dc:creator>
    <dc:date>2019-12-11T14:26:52Z</dc:date>
    <item>
      <title>calculation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculation/m-p/611022#M76799</link>
      <description>&lt;P&gt;dataset ln_mon_ref&lt;BR /&gt;LNo 12_Month_A1 12_Month_A6 12_Month_Base 12_Month_A2 12_Month_A4&lt;BR /&gt;23 290.7546354 448.57426097 1880.3844491 1116.960121 406.90120716&lt;BR /&gt;24 0.1278847503 0.1573367909 0.5645658305 0.3878716946 0.1324158737&lt;BR /&gt;25 56.02135594 65.7289856 282.42013204 174.8432417 59.878547019&lt;/P&gt;
&lt;P&gt;dataset sc_original&lt;BR /&gt;Scenario Original 10/30/30/30 33/0/33/33/0 50/0/0/50/0 50/0/25/25/0&lt;BR /&gt;12_Month_A1 0.1071 0 0 0 0&lt;BR /&gt;12_Month_A6 0.1071 0.3 0 0 0&lt;BR /&gt;12_Month_Base 0.4464 0.1 0.333333333 0.5 0.5&lt;BR /&gt;12_Month_A2 0.2683 0.3 0.333333333 0 0.25&lt;BR /&gt;12_Month_A4 0.0711 0.3 0.333333333 0.5 0.25&lt;/P&gt;
&lt;P&gt;based on LNO column 12_Month_A1 column should divide and multiply original*10/30/30/30 based on scenario column&lt;BR /&gt;from dataset sc_original as shown below example calculation.&lt;BR /&gt;I need four addition column sc_30_10,sc_33_33,sc_50_50,sc_50_25 each column should give different scenrio results&lt;BR /&gt;as shown in Expected output&lt;/P&gt;
&lt;P&gt;calculation example:&lt;BR /&gt;scenario_30_10&lt;BR /&gt;=290.7546354/0.1071*0+448.57426097/0.1071*0.3+1880.3844491/0.4464*0.1+1116.960121/0.2683*0.3+406.90120716/0.0711*0.3&lt;BR /&gt;=0.1278847503/0.1071*0+0.1573367909/0.1071*0.3+0.5645658305/0.4464*0.1+0.3878716946/0.2683*0.3+0.1324158737/0.0711*0.3&lt;BR /&gt;=56.02135594/0.1071*0+65.7289856/0.1071*0.3+282.42013204/0.4464*0.1+174.8432417/0.2683*0.3+59.878547019/0.0711*0.3&lt;/P&gt;
&lt;P&gt;scenario_33_33&lt;BR /&gt;=290.7546354/0.1071*0+448.57426097/0.1071*0+1880.3844491/0.4464*0.333333333+1116.960121/0.2683*0.333333333+406.90120716/0.0711*0.333333333 &lt;BR /&gt;=0.1278847503/0.1071*0+0.1573367909/0.1071*0+0.5645658305/0.4464*0.333333333+0.3878716946/0.2683*0.333333333+0.1324158737/0.0711*0.333333333 &lt;BR /&gt;=56.02135594/0.1071*0+65.7289856/0.1071*0+282.42013204/0.4464*0.333333333+174.8432417/0.2683*0.333333333+59.878547019/0.0711*0.333333333&lt;/P&gt;
&lt;P&gt;scenario_50_50&lt;BR /&gt;=290.7546354/0.1071*0+448.57426097/0.1071*0+1880.3844491/0.4464*0.5+1116.960121/0.2683*0+406.90120716/0.0711*0.5 &lt;BR /&gt;=0.1278847503/0.1071*0+0.1573367909/0.1071*0+0.5645658305/0.4464*0.5+0.3878716946/0.2683*0+0.1324158737/0.0711*0.5 &lt;BR /&gt;=56.02135594/0.1071*0+65.7289856/0.1071*0+282.42013204/0.4464*0.5+174.8432417/0.2683*0+59.878547019/0.0711*0.5&lt;/P&gt;
&lt;P&gt;scenario_50_25&lt;BR /&gt;=290.7546354/0.1071*0+448.57426097/0.1071*0+1880.3844491/0.4464*0.5+1116.960121/0.2683*0.25+406.90120716/0.0711*0.25 &lt;BR /&gt;=0.1278847503/0.1071*0+0.1573367909/0.1071*0+0.5645658305/0.4464*0.5+0.3878716946/0.2683*0.25+0.1324158737/0.0711*0.25 &lt;BR /&gt;=56.02135594/0.1071*0+65.7289856/0.1071*0+282.42013204/0.4464*0.5+174.8432417/0.2683*0.25+59.878547019/0.0711*0.25&lt;/P&gt;
&lt;P&gt;Expected output:&lt;BR /&gt;LNo 12_Month_A1 12_Month_A6 12_Month_Base 12_Month_A2 12_Month_A4 sc_30_10 sc_33_33 sc_50_50 sc_50_25&lt;BR /&gt;23 290.7546354 448.574261 1880.384449 1116.960121 406.9012072 4644 4699 4968 4578&lt;BR /&gt;24 0.12788475 0.157336791 0.564565831 0.387871695 0.132415874 2 2 2 1&lt;BR /&gt;25 56.02135594 65.7289856 282.420132 174.8432417 59.87854702 696 709 737 690&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 14:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculation/m-p/611022#M76799</guid>
      <dc:creator>vnreddy</dc:creator>
      <dc:date>2019-12-11T14:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: calculation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/calculation/m-p/624720#M77376</link>
      <description>&lt;P&gt;Interesting how a long wall of unformatted text that includes typos and no usable data provided as code receives no reply, isn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put some effort in your question if you want volunteers to put some effort into solving your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 03:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/calculation/m-p/624720#M77376</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-14T03:01:57Z</dc:date>
    </item>
  </channel>
</rss>

