<?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: Creating a performance index in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161935#M31448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending upon your definition of performance index, something like the following might suffice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile cards dlm='09'x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input SalsID $ ActualSales TargetSales Region $;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;XE908 19000 13800 East&lt;/P&gt;&lt;P&gt;XA908 20000 18000 East&lt;/P&gt;&lt;P&gt;XC102 25000 30000 West&lt;/P&gt;&lt;P&gt;XB102 15000 18000 East&lt;/P&gt;&lt;P&gt;XA908 20000 22000 West&lt;/P&gt;&lt;P&gt;XE908 10000 10000 North&lt;/P&gt;&lt;P&gt;XB102 30000 25000 South&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc summary data=have nway;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var ActualSales TargetSales;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class region;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output out=want (drop=_:) sum=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; growth=ActualSales/TargetSales-1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by descending growth;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Feb 2014 16:27:57 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2014-02-04T16:27:57Z</dc:date>
    <item>
      <title>Creating a performance index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161933#M31446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dataset with variables as "SalesID", "ActualSales" , "TargetSalesAmt" and "Region". I need to create a performance index based on total sales achieved against the target set, and identify the best performing region overall. How can this be done without using Proq SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;SalsID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;ActualSales&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;TargetSales&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Region&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XE908&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;19000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13800&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;East&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XA908&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;East&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XC102&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;West&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XB102&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;15000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;East&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XA908&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;22000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;West&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XE908&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;North&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;XB102&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;25000&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;South&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 14:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161933#M31446</guid>
      <dc:creator>Deepakkala04</dc:creator>
      <dc:date>2014-02-04T14:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a performance index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161934#M31447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you define in more detail what a performance index is? Perhaps by give some sample desired output?&lt;/P&gt;&lt;P&gt;And why not SQL? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 16:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161934#M31447</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-02-04T16:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a performance index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161935#M31448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending upon your definition of performance index, something like the following might suffice:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile cards dlm='09'x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input SalsID $ ActualSales TargetSales Region $;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;XE908 19000 13800 East&lt;/P&gt;&lt;P&gt;XA908 20000 18000 East&lt;/P&gt;&lt;P&gt;XC102 25000 30000 West&lt;/P&gt;&lt;P&gt;XB102 15000 18000 East&lt;/P&gt;&lt;P&gt;XA908 20000 22000 West&lt;/P&gt;&lt;P&gt;XE908 10000 10000 North&lt;/P&gt;&lt;P&gt;XB102 30000 25000 South&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc summary data=have nway;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var ActualSales TargetSales;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class region;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output out=want (drop=_:) sum=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; growth=ActualSales/TargetSales-1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by descending growth;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 16:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161935#M31448</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-02-04T16:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a performance index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161936#M31449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linush.. Actually I want to represent the above data in a format which is some what like:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Region with Highest Sale&lt;/P&gt;&lt;P&gt;2. Sales achieved (BY salesID) and also if they have been able to meet their targets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y no SQL:- am looking for a very basic resolution for this problem. I want to test out if this is possible thru any basic SAS proc/data statements.(they might be a bit tedious)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 16:30:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161936#M31449</guid>
      <dc:creator>Deepakkala04</dc:creator>
      <dc:date>2014-02-04T16:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a performance index</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161937#M31450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Merge against the output from&lt;/P&gt;&lt;P&gt;PROC MEANS data= dataset missing noprint&amp;nbsp; nway ;&lt;/P&gt;&lt;P&gt;Class region ;&lt;/P&gt;&lt;P&gt;Var _numeric_ ;&lt;/P&gt;&lt;P&gt;Output out= index_perf( drop= _type_&amp;nbsp; )&lt;/P&gt;&lt;P&gt; Sum= /autoname ;&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like&lt;/P&gt;&lt;P&gt;proc sort data= dataset ;&lt;/P&gt;&lt;P&gt;By region ;&lt;/P&gt;&lt;P&gt;Run ;&lt;/P&gt;&lt;P&gt;Data index_and_data ;&lt;/P&gt;&lt;P&gt;Merge dataset index_perf&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;By region ;&lt;/P&gt;&lt;P&gt;****** suitable performance calcs ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 17:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-performance-index/m-p/161937#M31450</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2014-02-04T17:14:04Z</dc:date>
    </item>
  </channel>
</rss>

