<?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: Function RelativePeriod - convert result and insert parameter in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-RelativePeriod-convert-result-and-insert-parameter/m-p/844715#M16680</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you can make the output of RelativePeriod into a string, sorry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For what it is worth, you can apply display rules to aggregated measure values. So you could highlight the positive/negative differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A workaround that is sometimes suggested when working with aggregated values is to create an aggregated data source to store the aggregated values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the offset parameter, I believe you could do something very inelegant like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;IF ( 'Param'p = 1 )&lt;BR /&gt;RETURN &lt;EM&gt;&lt;STRONG&gt;&amp;lt;RelativePeriod expression with offset 1&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;ELSE IF ('Param'p =2 )&lt;/P&gt;
&lt;P&gt;RETURN&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;RelativePeriod expression with offset 2&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;ELSE IF ('Param'p =3 )&lt;/P&gt;
&lt;P&gt;RETURN&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;RelativePeriod expression with offset 3&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could give it a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 21:20:04 GMT</pubDate>
    <dc:creator>Sam_SAS</dc:creator>
    <dc:date>2022-11-16T21:20:04Z</dc:date>
    <item>
      <title>Function RelativePeriod - convert result and insert parameter</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-RelativePeriod-convert-result-and-insert-parameter/m-p/844694#M16679</link>
      <description>&lt;P&gt;HI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to convert in a String variable the number variable that is result of a difference between two period calculated with function RelativePeriod .&lt;/P&gt;&lt;P&gt;Example: 1 = "positive" ; -1 = "negative" etc&lt;/P&gt;&lt;P&gt;But it's not possible because it is a aggregate calculated. Is there a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I want to insert a parameter&amp;nbsp; in the "offset interval" but it accepts only numbers.&amp;nbsp;&amp;nbsp;Is there a solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 19:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-RelativePeriod-convert-result-and-insert-parameter/m-p/844694#M16679</guid>
      <dc:creator>KOKIUSMAT</dc:creator>
      <dc:date>2022-11-16T19:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Function RelativePeriod - convert result and insert parameter</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-RelativePeriod-convert-result-and-insert-parameter/m-p/844715#M16680</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think you can make the output of RelativePeriod into a string, sorry.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For what it is worth, you can apply display rules to aggregated measure values. So you could highlight the positive/negative differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A workaround that is sometimes suggested when working with aggregated values is to create an aggregated data source to store the aggregated values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the offset parameter, I believe you could do something very inelegant like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;IF ( 'Param'p = 1 )&lt;BR /&gt;RETURN &lt;EM&gt;&lt;STRONG&gt;&amp;lt;RelativePeriod expression with offset 1&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;ELSE IF ('Param'p =2 )&lt;/P&gt;
&lt;P&gt;RETURN&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;RelativePeriod expression with offset 2&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;ELSE IF ('Param'p =3 )&lt;/P&gt;
&lt;P&gt;RETURN&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&amp;lt;RelativePeriod expression with offset 3&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could give it a try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 21:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Function-RelativePeriod-convert-result-and-insert-parameter/m-p/844715#M16680</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2022-11-16T21:20:04Z</dc:date>
    </item>
  </channel>
</rss>

