<?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: Using SAS for Budget Analysis in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533820#M6231</link>
    <description>&lt;P&gt;Your data steps do not work for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can calculate the sum using PROC MEANs. Then merge the summarized data with the amounts data file to calculate your variance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also don't see where the budget amount is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get a report that looks like that you'll likely want to recalculate the items and then use PROC REPORT to display the information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how you can calculate the summary statistics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means data=input noprint;
class Contractor_Name Primary_Disability Secondary_Disability Paid_Date;
var cost;
format paid_date monyy7.;
output out=summary sum=paid;
run;&lt;/PRE&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>Fri, 08 Feb 2019 03:59:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-02-08T03:59:32Z</dc:date>
    <item>
      <title>Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533658#M6213</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am tasked with determining whether a contractor will spend their allocated funds during the fiscal year. My dataset contains the following:&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Fiscal Year&lt;/TD&gt;&lt;TD&gt;Vendor Name&lt;/TD&gt;&lt;TD&gt;Paid Date&lt;/TD&gt;&lt;TD&gt;Service Detail CD&lt;/TD&gt;&lt;TD&gt;Cost&lt;/TD&gt;&lt;TD&gt;Sub Categories&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;TD&gt;9/4/2017&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;TD&gt;$1,300.00&lt;/TD&gt;&lt;TD&gt;Typical&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;TD&gt;9/4/2018&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;TD&gt;$199.99&lt;/TD&gt;&lt;TD&gt;Complex/High Dollar&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;name&lt;/TD&gt;&lt;TD&gt;1/31/2019&lt;/TD&gt;&lt;TD&gt;68&lt;/TD&gt;&lt;TD&gt;$4,300.00&lt;/TD&gt;&lt;TD&gt;Complex/High Dollar&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Each contractor has a specific allocation amount. I am trying to figure out how to project whether they will spend all their funds. The previous FY expenditure is included in the dataset. I have never used the &lt;FONT color="#0000FF"&gt;proc timeseries&lt;/FONT&gt; or the Time Series Forecasting System prior to today. However, the output I get does not really tell me much or it results in flat expenditure (straight line). I also tried &lt;FONT color="#0000FF"&gt;proc arima&lt;/FONT&gt; but I don't think I am understanding its functionality. As always, any guidance is greatly appreciated!&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV class="c"&gt;&lt;DIV class="branch"&gt;&lt;DIV class="c"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 Feb 2019 17:00:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533658#M6213</guid>
      <dc:creator>colabear</dc:creator>
      <dc:date>2019-02-07T17:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533679#M6221</link>
      <description>I'd think you'd also need funds and paid frequency as well.</description>
      <pubDate>Thu, 07 Feb 2019 18:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533679#M6221</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-02-07T18:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533682#M6222</link>
      <description>&lt;P&gt;Hello Tom,&lt;/P&gt;&lt;P&gt;Thank you for your response. I have the amount each contractor has been allocated. How do I put it in the dataset in an effective manner? Each service is paid whenever it's approved so i'm not sure how I could determine frequency. The paid_date variable is when the service was paid. I think i'm struggling the most with how to format my dataset.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 18:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533682#M6222</guid>
      <dc:creator>colabear</dc:creator>
      <dc:date>2019-02-07T18:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533690#M6224</link>
      <description>Can you provide a more detailed example showing, what you have as input and what you want as output. If you don’t know this yet, you’re not at the programming stage yet.</description>
      <pubDate>Thu, 07 Feb 2019 18:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533690#M6224</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-07T18:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533732#M6227</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is my input data:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data input;
infile datalines delimiter=',';
input Primary_Disability Secondary_Disability Contractor_Name Paid_Date	Unit_Type Cost Service_CD Service_Description Contract_ID Cost_Type;
datalines;
Hearing	Physical Contractor1	9/4/2018	Item	$1,300.00 31	Hearing Aid Purchase	3	Complex/High Dollar
Hearing	Physical Contractor1	9/4/2018	Service	$199.99  32	Hearing Aid Service Charge, Earmolds, and Batteries	3	Complex/High Dollar
Physical Cognitive	Contractor1 9/4/2018 Service	$300.00 68	Modification Inspection or Review by Engineer	3	Complex/High Dollar
Hearing Contractor2	9/4/2018	Item	$426.00 	31	Hearing Aid Purchase	15	Complex/High Dollar
Physical Vision	Contractor3	9/5/2018	Item	$105.02 	9	Assistive technology, not otherwise listed	2	Typical
Vision Contractor3	9/5/2018	Item	$105.02 	9	Assistive technology, not otherwise listed	2	Typical
Other	Physical	Contractor 4	9/7/2018	Item	$5,600.00 	62	Major Modification (e.g. permanent)	7	Typical
Physical Contractor5	9/28/2017	Service	$510.00 	26	Medical diagnostic &amp;amp; evaluation services	11	Typical
Physical Contractor6	9/28/2017	Service	$150.00 	65	Pre-modification evaluation or title search	11	Typical
Vision Contractor7	9/28/2017	Hour	$159.12 	40	Orientation &amp;amp; Mobility Training	11	Typical
Physical Contractor8	9/28/2017	Service	$200.00 	65	Pre-modification evaluation or title search	11	Typical
;
data amounts;
infile datalines delimiter=',';
input Contractor Amount ;
datalines;
Contractor1	$60,000.00
Contractor2	$150,000.00
Contractor3	$1,250,656.00
Contractor4	$350,000.00
Contractor5	$260,000.00
Contractor6	$420,000.00
Contractor7	$750,000.00
Contractor8	$68,000.00
;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This output below is what would be helpful. I'm not sure I need a graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fin_budget_vs_frcst_byperioddtl.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26962iA77BC3EAA11BB342/image-size/large?v=v2&amp;amp;px=999" role="button" title="fin_budget_vs_frcst_byperioddtl.png" alt="fin_budget_vs_frcst_byperioddtl.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 20:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533732#M6227</guid>
      <dc:creator>colabear</dc:creator>
      <dc:date>2019-02-07T20:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533820#M6231</link>
      <description>&lt;P&gt;Your data steps do not work for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can calculate the sum using PROC MEANs. Then merge the summarized data with the amounts data file to calculate your variance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also don't see where the budget amount is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get a report that looks like that you'll likely want to recalculate the items and then use PROC REPORT to display the information.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how you can calculate the summary statistics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc means data=input noprint;
class Contractor_Name Primary_Disability Secondary_Disability Paid_Date;
var cost;
format paid_date monyy7.;
output out=summary sum=paid;
run;&lt;/PRE&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>Fri, 08 Feb 2019 03:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533820#M6231</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-08T03:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533897#M6244</link>
      <description>So you're looking to total the charges by contractor for the year and compare it to the contractor's annual budget?</description>
      <pubDate>Fri, 08 Feb 2019 13:00:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533897#M6244</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-02-08T13:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533960#M6249</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Essentially, I need to project whether each contractor will spend all of their allocated funds (amount table). So, contractor #1 has spend $X ytd, how likely are they to spend the rest of their contracted amount before the end of the FY?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The input data set contains several variables including contractor, paid date, service, cost, cost type, ID, and fiscal year. There are other variables but I'm not sure if they are needed for this exercise. I have two fiscal years worth of data: 2018 (Sep-Aug) and 2019 (Sep-Jan). I believe for forecasting, the previous year's data is used to predict future costs. I think the biggest issue right now is ensuring my dataset if formatted correctly to execute any of the procedures.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I definitely do not have a financial/accounting background so it's making this all that more difficult for me! I appreciate your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 15:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/533960#M6249</guid>
      <dc:creator>colabear</dc:creator>
      <dc:date>2019-02-08T15:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/534008#M6256</link>
      <description>So can't you just extrapolate the projected annual charge based on what they've spent YTD?  If you have numbers to the end of September, just multiply that by 4/3 and compare it to the allocation.</description>
      <pubDate>Fri, 08 Feb 2019 16:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/534008#M6256</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-02-08T16:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/534023#M6259</link>
      <description>&lt;P&gt;Allow me to clarify something. Cost actually reflects expenditure. It's just named cost in the dataset. I will change it to "paid". It's possible that this is an unreasonable task given these contractors spend wildly different amounts each month. Typically more mid-year and beginning and end of the FY.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I multiplied FY17 paid amounts by 4/3&amp;nbsp; for each months. What is the rationale for 4/3 instead of maybe 10%?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I feel I am at a loss! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 18:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/534023#M6259</guid>
      <dc:creator>colabear</dc:creator>
      <dc:date>2019-02-08T18:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/534026#M6261</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The proc means was helpful for summarizing the data. The amounts datasets reflects the allocation amounts for each contractor. I may just have to analyze all this in Excel. Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 18:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/534026#M6261</guid>
      <dc:creator>colabear</dc:creator>
      <dc:date>2019-02-08T18:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS for Budget Analysis</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/534442#M6332</link>
      <description>Sept is 3/4th of the year.  If you've paid $30 by then, you can estimate total year as $40.</description>
      <pubDate>Mon, 11 Feb 2019 13:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Using-SAS-for-Budget-Analysis/m-p/534442#M6332</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-02-11T13:11:07Z</dc:date>
    </item>
  </channel>
</rss>

