<?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 Missing Values in Periodic aggregation SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Missing-Values-in-Periodic-aggregation-SAS-VA/m-p/494760#M11092</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate % change in monthly "Write off amount" in my data. To do this, I am using the periodic aggregation as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{Periodic aggregate (Current month)&amp;nbsp;- Relative Period Aggregate (previous month)}/ Relative Period aggregate (previous month).&lt;/P&gt;&lt;P&gt;My queries:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The formula for current month's aggregate works fine if I use "_Inferred_" as the interval for period. But it returns a missing value if I use "_ByMonth_". "Period"&amp;nbsp;is a date variable formatted as monyy. Screenshot attached.&lt;/P&gt;&lt;P&gt;2. The same formula does not work for "Relative Period" aggregation. So if I use "Relative Period" aggregation, it returns&amp;nbsp;a missing value while using "_Inferred_" or "_ByMonth_". Hence unable to output any percentage change. Screenshot attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Variable "Period" is SAS date variable (includes year) formatted as monyy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can someone help me understand where is the problem and why is one function working fine whereas another similar function is not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASVA_1.PNG" style="width: 592px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23212i130848D6641287A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="SASVA_1.PNG" alt="SASVA_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Sep 2018 10:00:50 GMT</pubDate>
    <dc:creator>Nmah</dc:creator>
    <dc:date>2018-09-12T10:00:50Z</dc:date>
    <item>
      <title>Missing Values in Periodic aggregation SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Missing-Values-in-Periodic-aggregation-SAS-VA/m-p/494760#M11092</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate % change in monthly "Write off amount" in my data. To do this, I am using the periodic aggregation as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{Periodic aggregate (Current month)&amp;nbsp;- Relative Period Aggregate (previous month)}/ Relative Period aggregate (previous month).&lt;/P&gt;&lt;P&gt;My queries:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The formula for current month's aggregate works fine if I use "_Inferred_" as the interval for period. But it returns a missing value if I use "_ByMonth_". "Period"&amp;nbsp;is a date variable formatted as monyy. Screenshot attached.&lt;/P&gt;&lt;P&gt;2. The same formula does not work for "Relative Period" aggregation. So if I use "Relative Period" aggregation, it returns&amp;nbsp;a missing value while using "_Inferred_" or "_ByMonth_". Hence unable to output any percentage change. Screenshot attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Variable "Period" is SAS date variable (includes year) formatted as monyy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can someone help me understand where is the problem and why is one function working fine whereas another similar function is not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASVA_1.PNG" style="width: 592px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23212i130848D6641287A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="SASVA_1.PNG" alt="SASVA_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 10:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Missing-Values-in-Periodic-aggregation-SAS-VA/m-p/494760#M11092</guid>
      <dc:creator>Nmah</dc:creator>
      <dc:date>2018-09-12T10:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Values in Periodic aggregation SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Missing-Values-in-Periodic-aggregation-SAS-VA/m-p/494983#M11100</link>
      <description>&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide some example&amp;nbsp;input data, preferably&amp;nbsp;in the form of data step code pasted into a code box, the actual results and the expected results. &lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 18:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Missing-Values-in-Periodic-aggregation-SAS-VA/m-p/494983#M11100</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-12T18:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Values in Periodic aggregation SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Missing-Values-in-Periodic-aggregation-SAS-VA/m-p/495211#M11104</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not give an error just returns a missing value that's why I am unable to interpret.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I think I have come to an understanding that this is because I am using the periodic aggregation in a "List Table" where "period" is not a data object in the table although it is being used as a dropdown control to display different months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence the formula is working fine on my other tables which are "Cross tabs" and have "Period" as a data object in the report/visualisation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence closing the thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 09:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Missing-Values-in-Periodic-aggregation-SAS-VA/m-p/495211#M11104</guid>
      <dc:creator>Nmah</dc:creator>
      <dc:date>2018-09-13T09:04:54Z</dc:date>
    </item>
  </channel>
</rss>

