<?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: Percentage difference between 3 specific dates per year in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/590659#M13084</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277576"&gt;@bobbyfajardo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might have a solution for you but it depends on the version you are using. In SAS VA8.3 a new operator was published.&amp;nbsp;&lt;EM&gt;AggregateCells&lt;/EM&gt;&amp;nbsp;&lt;SPAN&gt;aggregates the values of a specific set of cells in the detail data table for an object and allows offset starting point for the aggregation. I have used that operator to basically calculate:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 102px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32657i82B83285D7230537/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32659iA149A104AB3DC8BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;( AggregateCells(_Sum_, 'Bottles_Used'n, column, CellIndex(current, 0), CellIndex(current, 0)) - AggregateCells(_Sum_,'Bottles_Used'n, column, CellIndex(current, -1), CellIndex(current, -1)) ) / AggregateCells(_Sum_, 'Bottles_Used'n, column,CellIndex(current, -1), CellIndex(current, -1))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are running &amp;lt; VA8.3 then unfortunately I do not have an answer for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Sep 2019 21:14:08 GMT</pubDate>
    <dc:creator>PetriRoine</dc:creator>
    <dc:date>2019-09-21T21:14:08Z</dc:date>
    <item>
      <title>Percentage difference between 3 specific dates per year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/590424#M13081</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have numeric data on a count based on multiple criteria from specific date. The date and character variables are&lt;BR /&gt;(Date, Food Name, Compliments).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I need to calculate the change in bottles of Ketchup used for hamburgers and hotdogs from&lt;/P&gt;&lt;P&gt;&lt;U&gt;Jan 1, 2014 to Sept 1, 2014 to Jan 1, 2015 to Sept 1, 2015.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;So far I have attempted the following % difference features in SAS VA:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;1. All periods to the percent change including the period with date,&amp;nbsp; &amp;nbsp;system fails to recognize these specific dates&lt;BR /&gt;2. The create percentage difference feature based on the numeric count,&amp;nbsp; system fails&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I attached the file to this posting.&amp;nbsp; Have fun!&amp;nbsp; and please let me know if I can provide more details.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you, Robert&lt;/P&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;&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, 20 Sep 2019 14:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/590424#M13081</guid>
      <dc:creator>bobbyfajardo</dc:creator>
      <dc:date>2019-09-20T14:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage difference between 3 specific dates per year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/590659#M13084</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277576"&gt;@bobbyfajardo&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I might have a solution for you but it depends on the version you are using. In SAS VA8.3 a new operator was published.&amp;nbsp;&lt;EM&gt;AggregateCells&lt;/EM&gt;&amp;nbsp;&lt;SPAN&gt;aggregates the values of a specific set of cells in the detail data table for an object and allows offset starting point for the aggregation. I have used that operator to basically calculate:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 102px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32657i82B83285D7230537/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32659iA149A104AB3DC8BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;( AggregateCells(_Sum_, 'Bottles_Used'n, column, CellIndex(current, 0), CellIndex(current, 0)) - AggregateCells(_Sum_,'Bottles_Used'n, column, CellIndex(current, -1), CellIndex(current, -1)) ) / AggregateCells(_Sum_, 'Bottles_Used'n, column,CellIndex(current, -1), CellIndex(current, -1))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you are running &amp;lt; VA8.3 then unfortunately I do not have an answer for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2019 21:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/590659#M13084</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2019-09-21T21:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage difference between 3 specific dates per year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/590919#M13085</link>
      <description>&lt;P&gt;I'm in SAS VA 7.3.&amp;nbsp; This looks really handy!&amp;nbsp; When we upgrade, I'll give it a try.&amp;nbsp; Today, we found a work around in SAS VA 7.3.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;All other SAS users, let me know if you are interested in the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 13:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/590919#M13085</guid>
      <dc:creator>bobbyfajardo</dc:creator>
      <dc:date>2019-09-23T13:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage difference between 3 specific dates per year</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/591432#M13087</link>
      <description>&lt;P&gt;Nice to hear that you found another way to get where you want &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; Could I ask you to please share your approach here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Petri&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 09:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Percentage-difference-between-3-specific-dates-per-year/m-p/591432#M13087</guid>
      <dc:creator>PetriRoine</dc:creator>
      <dc:date>2019-09-25T09:03:21Z</dc:date>
    </item>
  </channel>
</rss>

