<?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: Calculate Percent Change in VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501493#M11208</link>
    <description>&lt;P&gt;Hey ML,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No responses/solutions yet. Several views but it seems this isn't possible in VA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 14:09:12 GMT</pubDate>
    <dc:creator>ghartge</dc:creator>
    <dc:date>2018-10-04T14:09:12Z</dc:date>
    <item>
      <title>Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/498873#M11152</link>
      <description>&lt;P&gt;Greetings everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to calculate&amp;nbsp;the percent change between to values in a SAS VA crosstab? I have an example attached which I could make more straightforward but the way the data is displayed is what was requested. I would like to calculate&amp;nbsp;the percent difference between for example the value for 2017 Female Asian (36) and the 2016 Female Asian value (61) and all other values down the columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;((36 - 61) / (61))*100 = 40.98%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data driving&amp;nbsp;this report is student level meaning one row per student which is grouped and totaled by SAS using distinct&amp;nbsp;count on a dummy id text variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Sep 2018 21:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/498873#M11152</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-09-25T21:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501465#M11206</link>
      <description>&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to figure out a solution as well. Did you find a way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ML&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 13:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501465#M11206</guid>
      <dc:creator>mleitson</dc:creator>
      <dc:date>2018-10-04T13:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501493#M11208</link>
      <description>&lt;P&gt;Hey ML,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No responses/solutions yet. Several views but it seems this isn't possible in VA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 14:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501493#M11208</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-10-04T14:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501668#M11211</link>
      <description>&lt;P&gt;You must create another aggregated measure using parallel period operator(s) along with some simple numeric operators.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming that your existing "&lt;EM&gt;&lt;U&gt;Headcount&lt;/U&gt;&lt;/EM&gt;" aggregated measure is calculated as: Distinct [_ByGroup_] ('Row_ID'n)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then your percent difference called "&lt;U&gt;&lt;EM&gt;Headcount (% Diff)&lt;/EM&gt;&lt;/U&gt;" would be calculated as:&lt;/P&gt;&lt;P&gt;( ParallelPeriod(_DistinctCount_, 'Row_ID'n, _ApplyAllFilters_, 'Year'n, _Inferred_, _Inferred_, 0, _Full_, {Date}) - ParallelPeriod(_DistinctCount_, 'Row_ID'n, _ApplyAllFilters_, 'Year'n, _Inferred_, _Inferred_, -1, _Full_, {Date}) ) / Abs(ParallelPeriod(_DistinctCount_, 'Row_ID'n, _ApplyAllFilters_, 'Year'n, _Inferred_, _Inferred_, -1, _Full_, {Date}))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the format of this new aggregated measure to Percent, and drag it into the cross tab.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 19:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501668#M11211</guid>
      <dc:creator>Robert_T</dc:creator>
      <dc:date>2018-10-04T19:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501683#M11213</link>
      <description>&lt;P&gt;Thank you Robert_L,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give me a bit of clarity on the 'Year'n value? I substituted the variables I use ('Term Year'n) and get the error(s) below. This is a character field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;( ParallelPeriod(_DistinctCount_, 'Student_ID'n, _ApplyAllFilters_, 'Term Year'n , _Inferred_, _Inferred_, 0, _Full_, {Date}) - ParallelPeriod(_DistinctCount_, 'Student_ID'n, _ApplyAllFilters_, 'Term Year'n, _Inferred_, _Inferred_, -1, _Full_, {Date}) )&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&amp;nbsp;Abs(ParallelPeriod(_DistinctCount_, 'Student_ID'n, _ApplyAllFilters_, 'Term Year'n, _Inferred_, _Inferred_, -1, _Full_, {Date}))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invalid data item for this context: Term Year&lt;/P&gt;&lt;P&gt;Invalid data item for this context: Term Year&lt;/P&gt;&lt;P&gt;Invalid data item for this context: Term Year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 20:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501683#M11213</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-10-04T20:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501693#M11214</link>
      <description>&lt;P&gt;I'm guessing that your variable 'Term Year'n is not formatted as a date with the year specified. The&amp;nbsp;data item for the period calculation must be an item whose format specifies year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/vaug/66720/HTML/default/viewer.htm#n1lxnqfip132can1hdzuerib7i76.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/vaug/66720/HTML/default/viewer.htm#n1lxnqfip132can1hdzuerib7i76.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 21:17:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/501693#M11214</guid>
      <dc:creator>Robert_T</dc:creator>
      <dc:date>2018-10-04T21:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/508345#M11378</link>
      <description>&lt;P&gt;Hey Robert_T (or anyone),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This "seems" WAY more complicated than it should be. In the attached&amp;nbsp;image I describe&amp;nbsp;what I am trying to do.&lt;/P&gt;&lt;P&gt;I have a category titled "Days From the 1st Day of Classes" that are my&amp;nbsp;row values.&lt;/P&gt;&lt;P&gt;I have two semesters (Term_Year) that is a measure as columns. They are '2017' and '2018'.&lt;/P&gt;&lt;P&gt;I "simply" need to calculate the percent difference for each row.&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2017&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2018&lt;/P&gt;&lt;P&gt;Days From&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Headcount&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Headcount&lt;/P&gt;&lt;P&gt;42&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15,576&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15,587&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Need percent change here&lt;/EM&gt;&lt;/STRONG&gt;&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; as the third column&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user doesn't want dates they need the number of days pre and post the first day of classes and the percent (and actual number) difference for each day. I cannot do this in EG since this data will be linked to a drop-down list for several different categories of students. The last day this runs there will be about 100 rows and the data will have interactions with a line graph and possibly a pie chart.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Days From the First Day of Classes&amp;nbsp; &amp;nbsp;- Category, Format Float&lt;/P&gt;&lt;P&gt;Headcount&amp;nbsp; &amp;nbsp;- Aggregated&amp;nbsp;Measure - Distinct [_ByGroup_] ('Student_ID'n)&lt;/P&gt;&lt;P&gt;Term_Year&amp;nbsp; &amp;nbsp;- Category - Format $&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 14:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/508345#M11378</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-10-29T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/538061#M11962</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am stuck with exactly the same problem where I am trying to find % difference between the last two quarters of aggregated measure which I have calculated like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum [_ByGroup_] ('twoplusatsix'n) / Sum [_ByGroup_] ('onbookatsix'n)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for the year variable I have the date variable which has quarter and year in it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone please tell me how should I apply the formula for my aggregated measure to find the % difference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Feb 2019 09:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/538061#M11962</guid>
      <dc:creator>kanchans</dc:creator>
      <dc:date>2019-02-24T09:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/577522#M12856</link>
      <description>!mleit, #ghartg_e, et al. What &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13560"&gt;@Robert&lt;/a&gt;_L said and linked to makes sense, if you're using the part of VA that he and others seem to think you are. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117818"&gt;@ccaulkins91&lt;/a&gt;, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/118308"&gt;@ccaulkins9&lt;/a&gt;, #ccaulkins912</description>
      <pubDate>Mon, 29 Jul 2019 20:19:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/577522#M12856</guid>
      <dc:creator>ccaulkins912</dc:creator>
      <dc:date>2019-07-29T20:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Percent Change in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/577524#M12857</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/263691"&gt;@kanchans&lt;/a&gt;, If you were to re-post this as a new ticket you might be able to get some more feedback. Feel free to keep trying although it looks like you;'re no longer using SAS Communities? too bad...</description>
      <pubDate>Mon, 29 Jul 2019 20:21:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Percent-Change-in-VA/m-p/577524#M12857</guid>
      <dc:creator>ccaulkins912</dc:creator>
      <dc:date>2019-07-29T20:21:28Z</dc:date>
    </item>
  </channel>
</rss>

