<?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: Dead end on relative period function in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533352#M11862</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;What happens when you select 01FEB2019 instead of 01JAN2019?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My sales data is updated accordingly, but the Sales2018 does not change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Also, does 01DEC2018 give you missing values or does it give you the values from 01JAN2018?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Same behaviour, my sales data of Dec 2018 is displayed but the "ParallelPEriod" function returns February 2018, again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I proceed to open a ticket ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2019 17:53:25 GMT</pubDate>
    <dc:creator>VictorM</dc:creator>
    <dc:date>2019-02-06T17:53:25Z</dc:date>
    <item>
      <title>Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532878#M11845</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I'm refering to an old thread I've created some time ago that solved partially my problem.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Visual-Analytics/Relative-period-function-weird-behaviour/m-p/476714" target="_blank"&gt;https://communities.sas.com/t5/SAS-Visual-Analytics/Relative-period-function-weird-behaviour/m-p/476...&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm back on this subject because I am know stuck with another dead end behaviour.&lt;/P&gt;&lt;P&gt;I have my graph and my cross table showing my n-1 sales, current sales and budget for 2019, for a selected month.&lt;/P&gt;&lt;P&gt;I can select the month in a dropdown list.&lt;/P&gt;&lt;P&gt;So let's assume I select "January 2019", considering my previous post just above, I have to configure the "relative period" aggregated data to "IgnoreTimeFiltering" otherwise the filter would get rid of my January 2018 sales (n-1) data.&lt;/P&gt;&lt;P&gt;So far so good....&lt;/P&gt;&lt;P&gt;Except, we're now in February 2019, I still have selected "January 2019" in my dropdown list because I want to see how my sales look like for last month, compared to the budget and to last year January 2018 sales.&lt;/P&gt;&lt;P&gt;Well, the "relative period" function returns the sales of February 2018 automatically, not January, probably considering the current date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the point is : Either I enable time filtering to tell the system "show me January 2019" and my relative period does not show up at all, or I IGNORE time filtering to show it up BUT it only takes into account the relative period based on the current date, not the filter I selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea would be very appreciated...&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 10:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532878#M11845</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2019-02-05T10:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532925#M11849</link>
      <description>&lt;P&gt;Hello Victor,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible you are using the wrong operator?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say that you want a selection of January 2019 to return the value for January 2018. The operator that would do this is ParallelPeriod.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find the operator names very confusing, myself!&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;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:10:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532925#M11849</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-02-05T14:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532933#M11850</link>
      <description>&lt;P&gt;Good question. I tested with both, both have the same behavior and returns the same values.... does not help.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532933#M11850</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2019-02-05T14:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532955#M11851</link>
      <description>Can you show the expression for your aggregated item?</description>
      <pubDate>Tue, 05 Feb 2019 15:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532955#M11851</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-02-05T15:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532969#M11852</link>
      <description>&lt;P&gt;here it goes :&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ParallelPeriod(_Sum_, 'SalesQty'n, _IgnoreAllTimeFrameFilters_, 'DateCalc'n, _ByMonth_, _ByYear_, -1, _Full_, {Date})&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;SalesQty is my sales of 2019 or 2018, that are recorded every month, DateCalcl format is 01012018,01022018,01032018... (european format).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Relative period works and behave the same way.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;RelativePeriod(_Sum_, 'SalesQty'n, _IgnoreAllTimeFrameFilters_, 'DateCalc'n, _ByMonth_, -12, _Full_, {Date})&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 15:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532969#M11852</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2019-02-05T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532978#M11853</link>
      <description>Ah yes, it didn't occur to me that you could use -12 with RelativePeriod to get the previous year.&lt;BR /&gt;&lt;BR /&gt;It is very curious that it is affected by the current month, however. Would it be possible for you to share a screen capture of your report?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sam</description>
      <pubDate>Tue, 05 Feb 2019 16:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532978#M11853</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-02-05T16:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532992#M11854</link>
      <description>&lt;P&gt;Here it goes, I have taken the ParallelPeriod Function that I called "Sales2018". The SalesQty is the sales statistic column as explained above. Function used is :&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ParallelPeriod(_Sum_, 'SalesQty'n, _IgnoreAllTimeFrameFilters_, 'DateCalc'n, _ByMonth_, _ByYear_, -1, _Full_, {Date})&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you can see I have selected the data (DateCalc) in the dropdown list for January 2019. Now the problem is that the&amp;nbsp;Sales2018 function returns the figures of FEBRUARY 2018. I had to blur the data but it would not have meant a lot to you anyway.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-02-05_17-16-49.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26864i635BE3962EE7EED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-02-05_17-16-49.png" alt="2019-02-05_17-16-49.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now If I apply timefiltering my Sales2018 is removed from my graph...&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ParallelPeriod(_Sum_, 'SalesQty'n, _ApplyAllFilters_, 'DateCalc'n, _ByMonth_, _ByYear_, -1, _Full_, {Date})&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-02-05_17-20-53.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26865i75CA1945119DF505/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-02-05_17-20-53.png" alt="2019-02-05_17-20-53.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:21:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/532992#M11854</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2019-02-05T16:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533004#M11855</link>
      <description>&lt;P&gt;Thanks Victor, I will try to replicate this usecase later today or tomorrow. The backend for my test machine is down at the moment.&lt;BR /&gt;&lt;BR /&gt;You definitely do want the _IgnoreTimeFilters_ option, because the expression will return missing values otherwise when a single month is selected.&lt;BR /&gt;&lt;BR /&gt;The behavior you are seeing is a bit odd, so you might try building a simplified version of the report from scratch and see if you can replicate the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess the other thing to look at is, is Datecalc a calculated item? Is there something odd about its expression?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sam&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 16:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533004#M11855</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-02-05T16:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533057#M11856</link>
      <description>&lt;P&gt;I can't seem to replicate the behavior you are seeing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my test, where Calculated Item 1 has this expression:&lt;/P&gt;
&lt;PRE&gt;ParallelPeriod(_Sum_, 'Frequency'n, _IgnoreAllTimeFrameFilters_,
'Calculated Item 2'n, _ByMonth_, _ByYear_, -1, _Full_, {Date})&lt;/PRE&gt;
&lt;P&gt;Here we have no selection in the drop-down list:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="period1.png" style="width: 436px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26870i5F6297DFBBFF0992/image-size/large?v=v2&amp;amp;px=999" role="button" title="period1.png" alt="period1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here we have January 2019 selected:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="period2.png" style="width: 443px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26871i8B01A96C74F97459/image-size/large?v=v2&amp;amp;px=999" role="button" title="period2.png" alt="period2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The calculated date here was just to get a format similar to yours, but I got the same result with a basic date variable with MMMYYYY format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your report, does Sales2018 give the correct value when you clear the drop-down list selection?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ultimately you might want to take this to SAS Technical Support to figure out what's going on.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 20:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533057#M11856</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-02-05T20:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533171#M11858</link>
      <description>&lt;P&gt;Interesting, i will try to replicate with basic data just like you did. Will let you know.&lt;/P&gt;&lt;P&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 08:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533171#M11858</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2019-02-06T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533276#M11860</link>
      <description>&lt;P&gt;Hello Sam,&lt;/P&gt;&lt;P&gt;I was able to reproduce the exact same weird behaviour with simple data.&lt;/P&gt;&lt;P&gt;As you can see below, when I select "January 2019", the RelativePeriod function returns "February 2018". I insist on the fact that until 1st Febrary the function was returning January 2018 which makes me think that it is based on the current date...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-02-06_15-59-59.png" style="width: 341px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26897iEB9D72B87EA02BD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-02-06_15-59-59.png" alt="2019-02-06_15-59-59.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2019-02-06_16-00-39.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26898iD8BAA9BDCB2CCE23/image-size/large?v=v2&amp;amp;px=999" role="button" title="2019-02-06_16-00-39.png" alt="2019-02-06_16-00-39.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:03:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533276#M11860</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2019-02-06T15:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533347#M11861</link>
      <description>Very strange!&lt;BR /&gt;&lt;BR /&gt;What happens when you select 01FEB2019 instead of 01JAN2019? Also, does 01DEC2018 give you missing values or does it give you the values from 01JAN2018?&lt;BR /&gt;&lt;BR /&gt;Probably we are going to want you to open a track with SAS Technical support.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sam</description>
      <pubDate>Wed, 06 Feb 2019 17:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533347#M11861</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-02-06T17:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533352#M11862</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;What happens when you select 01FEB2019 instead of 01JAN2019?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My sales data is updated accordingly, but the Sales2018 does not change.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Also, does 01DEC2018 give you missing values or does it give you the values from 01JAN2018?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Same behaviour, my sales data of Dec 2018 is displayed but the "ParallelPEriod" function returns February 2018, again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I proceed to open a ticket ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 17:53:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533352#M11862</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2019-02-06T17:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dead end on relative period function</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533354#M11863</link>
      <description>&lt;P&gt;Thanks Victor.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a track or otherwise contact Tech Support, go here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/en/technical-support/contact-sas.html" target="_blank"&gt;https://support.sas.com/en/technical-support/contact-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 18:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Dead-end-on-relative-period-function/m-p/533354#M11863</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2019-02-06T18:13:35Z</dc:date>
    </item>
  </channel>
</rss>

