<?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 Moving Average in Visual Analytics 7.4 (in a Dynamic Label) in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Moving-Average-in-Visual-Analytics-7-4-in-a-Dynamic-Label/m-p/432663#M9290</link>
    <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;Starting in version 7.4 SAS introduced the very useful functionality of "dynamic labels".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to display just the average of one measure (let's say Revenues) over the 3 last months. The question here is: how SAS will know from which month to start when I'm using relative period. Should&amp;nbsp;I use a parameter? And how? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfectly if I put a "crosstab" with all the months and calculate the average with "RelativePeriod" function. However, if I don't want to display all the months and just present the average (in a dynamic label) how can I construct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rodrigo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2018 10:31:24 GMT</pubDate>
    <dc:creator>rodrigo_pereira</dc:creator>
    <dc:date>2018-01-31T10:31:24Z</dc:date>
    <item>
      <title>Moving Average in Visual Analytics 7.4 (in a Dynamic Label)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Moving-Average-in-Visual-Analytics-7-4-in-a-Dynamic-Label/m-p/432663#M9290</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;Starting in version 7.4 SAS introduced the very useful functionality of "dynamic labels".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to display just the average of one measure (let's say Revenues) over the 3 last months. The question here is: how SAS will know from which month to start when I'm using relative period. Should&amp;nbsp;I use a parameter? And how? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works perfectly if I put a "crosstab" with all the months and calculate the average with "RelativePeriod" function. However, if I don't want to display all the months and just present the average (in a dynamic label) how can I construct this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rodrigo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 10:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Moving-Average-in-Visual-Analytics-7-4-in-a-Dynamic-Label/m-p/432663#M9290</guid>
      <dc:creator>rodrigo_pereira</dc:creator>
      <dc:date>2018-01-31T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Average in Visual Analytics 7.4 (in a Dynamic Label)</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Moving-Average-in-Visual-Analytics-7-4-in-a-Dynamic-Label/m-p/432854#M9294</link>
      <description>&lt;P&gt;Hello Rodrigo,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Moving Average is an aggregated operator and it doesn't really work unless it is assigned to a visual like a crosstab or graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As dynamic text in a Text object, there is no aggregation context to work with. (Arguably, you should not be able to assign aggregated measures as dynamic text.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general,&amp;nbsp;making a dynamic date selection based on the most recent date can be tricky. I seem to understand it is a limitation of how LASR and now CAS handle date values, but it is frustrating. Hopefully someone can help you find a good workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 18:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Moving-Average-in-Visual-Analytics-7-4-in-a-Dynamic-Label/m-p/432854#M9294</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2018-01-31T18:05:40Z</dc:date>
    </item>
  </channel>
</rss>

