<?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 SAS VA YOY PROFIT VARIANCE using a filter in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-YOY-PROFIT-VARIANCE-using-a-filter/m-p/305470#M5652</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to incorporate a YOY Profit Variance formula in cross table using the following data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Age Group: 18-25, 26-35, 36-55, 55+&lt;/P&gt;&lt;P&gt;Profit: $DOLLAR&lt;/P&gt;&lt;P&gt;Activity Date&lt;/P&gt;&lt;P&gt;Current/Previous Year Flag: CY, PY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ideal output would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt; &amp;nbsp;&lt;/STRONG&gt; &lt;STRONG&gt;&amp;nbsp;CY - Current Yr &amp;nbsp; &amp;nbsp;PY - Current Yr &amp;nbsp; &amp;nbsp; Var.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Age 18-25 &amp;nbsp; &amp;nbsp; $ &amp;nbsp;146,888 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp;104,138 &amp;nbsp; &amp;nbsp;41%&lt;/P&gt;&lt;P&gt;Age 26-35 &amp;nbsp; &amp;nbsp; $ &amp;nbsp; &amp;nbsp;91,169 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp;111,672 &amp;nbsp; -18%&lt;/P&gt;&lt;P&gt;Age 36-55 &amp;nbsp; &amp;nbsp; $ &amp;nbsp;120,281 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp; &amp;nbsp;86,284 &amp;nbsp; &amp;nbsp;39%&lt;/P&gt;&lt;P&gt;Age 55+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp;144,021 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp; &amp;nbsp;92,877 &amp;nbsp; &amp;nbsp;55%&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ &amp;nbsp;502,359 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp;394,971 &amp;nbsp; &amp;nbsp;27%&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following formula however; it did not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;[(IF&amp;nbsp;&lt;SPAN&gt;Current/Previous Year Flag = CY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;RETURN PROFIT) /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(IF&amp;nbsp;&lt;SPAN&gt;Current/Previous Year Flag = PY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RETURN PROFIT)] -1&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format: PERCENT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone help please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CJ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2016 18:02:45 GMT</pubDate>
    <dc:creator>chrisjab</dc:creator>
    <dc:date>2016-10-18T18:02:45Z</dc:date>
    <item>
      <title>SAS VA YOY PROFIT VARIANCE using a filter</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-YOY-PROFIT-VARIANCE-using-a-filter/m-p/305470#M5652</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to incorporate a YOY Profit Variance formula in cross table using the following data:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Age Group: 18-25, 26-35, 36-55, 55+&lt;/P&gt;&lt;P&gt;Profit: $DOLLAR&lt;/P&gt;&lt;P&gt;Activity Date&lt;/P&gt;&lt;P&gt;Current/Previous Year Flag: CY, PY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ideal output would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRONG&gt; &amp;nbsp;&lt;/STRONG&gt; &lt;STRONG&gt;&amp;nbsp;CY - Current Yr &amp;nbsp; &amp;nbsp;PY - Current Yr &amp;nbsp; &amp;nbsp; Var.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Age 18-25 &amp;nbsp; &amp;nbsp; $ &amp;nbsp;146,888 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp;104,138 &amp;nbsp; &amp;nbsp;41%&lt;/P&gt;&lt;P&gt;Age 26-35 &amp;nbsp; &amp;nbsp; $ &amp;nbsp; &amp;nbsp;91,169 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp;111,672 &amp;nbsp; -18%&lt;/P&gt;&lt;P&gt;Age 36-55 &amp;nbsp; &amp;nbsp; $ &amp;nbsp;120,281 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp; &amp;nbsp;86,284 &amp;nbsp; &amp;nbsp;39%&lt;/P&gt;&lt;P&gt;Age 55+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp;144,021 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp; &amp;nbsp;92,877 &amp;nbsp; &amp;nbsp;55%&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Total &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $ &amp;nbsp;502,359 &amp;nbsp; &amp;nbsp; &amp;nbsp;$ &amp;nbsp;394,971 &amp;nbsp; &amp;nbsp;27%&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following formula however; it did not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;[(IF&amp;nbsp;&lt;SPAN&gt;Current/Previous Year Flag = CY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;RETURN PROFIT) /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(IF&amp;nbsp;&lt;SPAN&gt;Current/Previous Year Flag = PY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RETURN PROFIT)] -1&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;format: PERCENT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can someone help please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CJ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 18:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-YOY-PROFIT-VARIANCE-using-a-filter/m-p/305470#M5652</guid>
      <dc:creator>chrisjab</dc:creator>
      <dc:date>2016-10-18T18:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA YOY PROFIT VARIANCE using a filter</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-YOY-PROFIT-VARIANCE-using-a-filter/m-p/308350#M5719</link>
      <description>&lt;P&gt;CJ, Did you try to nest the formula? My example is: ( 'Sales Rep Actual'n - 'Sales Rep Target'n ) / 'Sales Rep Target'n and set the format to Percent. I have included a couple of&amp;nbsp;screenshots.&amp;nbsp; Shannon&amp;nbsp; PS&amp;nbsp;You MAY need to check the aggregation.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13095i7EB54D2FB9251FEF/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="formula.PNG" title="formula.PNG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13096iCA5D41CB747C4D7B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="xtab1.PNG" title="xtab1.PNG" /&gt;</description>
      <pubDate>Mon, 31 Oct 2016 19:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-YOY-PROFIT-VARIANCE-using-a-filter/m-p/308350#M5719</guid>
      <dc:creator>ShannonMoore</dc:creator>
      <dc:date>2016-10-31T19:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA YOY PROFIT VARIANCE using a filter</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-YOY-PROFIT-VARIANCE-using-a-filter/m-p/308374#M5721</link>
      <description>&lt;P&gt;To complement what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36578"&gt;@ShannonMoore﻿&lt;/a&gt;&amp;nbsp;said, you would need to derive the equivalent&amp;nbsp;of&amp;nbsp;Shannon's&amp;nbsp;Sales Rep Actual and Sales Rep Target. In your case, those would be Profit CY and Profit PY, defined respectively as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF Current/Previous Year Flag = CY&lt;/P&gt;
&lt;P&gt;RETURN Profit&lt;/P&gt;
&lt;P&gt;ELSE missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF Current/Previous Year Flag = PY&lt;/P&gt;
&lt;P&gt;RETURN Profit&lt;/P&gt;
&lt;P&gt;ELSE missing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Renato&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2016 19:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-YOY-PROFIT-VARIANCE-using-a-filter/m-p/308374#M5721</guid>
      <dc:creator>Renato_sas</dc:creator>
      <dc:date>2016-10-31T19:57:44Z</dc:date>
    </item>
  </channel>
</rss>

