<?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>Question Re: PA: Issues with DATE in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482131#M3377802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to create a new column in PA based on two existing columns?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 09:51:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-05-17T09:51:57Z</dc:date>
    <item>
      <title>PA: Issues with DATE</title>
      <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaq-p/9482129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried to use the R-triple exponential smoothing algorithm to create a forecast. I´m using a dataset of 2007 and 2008 and I want to forecast quarter 1,2,3 and 4 of 2009. Unfortunately PA (SP10) has some issues taking the right year. Instead PA is counting the years like shown in the jpeg attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/218050" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/218117" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts? Regards, Christoph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 14:55:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaq-p/9482129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-16T14:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: PA: Issues with DATE</title>
      <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482130#M3377801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christoph,&lt;/P&gt;&lt;P&gt;This model is expecting one single row per quarter. So you need to aggregate the records beforehand. You need something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quarter,Quantity&lt;/P&gt;&lt;P&gt;2007-Q1, 10&lt;/P&gt;&lt;P&gt;2007-Q2, 12&lt;/P&gt;&lt;P&gt;2007-Q3, 11&lt;/P&gt;&lt;P&gt;2007-Q4, 13&lt;/P&gt;&lt;P&gt;2008-Q1, 12&lt;/P&gt;&lt;P&gt;2008-Q2, 14&lt;/P&gt;&lt;P&gt;2008-Q3, 13&lt;/P&gt;&lt;P&gt;2008-Q4, 15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is also important that the data is sorted in this order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings&lt;/P&gt;&lt;P&gt;Andreas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 17:14:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482130#M3377801</guid>
      <dc:creator>AndreasForster</dc:creator>
      <dc:date>2013-05-16T17:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: PA: Issues with DATE</title>
      <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482131#M3377802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to create a new column in PA based on two existing columns?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 09:51:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482131#M3377802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T09:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: PA: Issues with DATE</title>
      <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482132#M3377803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christoph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes that's possible via the manipulation tools pane or the function builder - depending on what exactly you'd like to do. There are also tutorials available which you'll find on the following page in the :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-32651"&gt;http://scn.sap.com/docs/DOC-32651&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clarissa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 09:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482132#M3377803</guid>
      <dc:creator>clarissa_dold</dc:creator>
      <dc:date>2013-05-17T09:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: PA: Issues with DATE</title>
      <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482133#M3377804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if I create a new clomun like mentioned by Andreas, PA is still using the same time hierarchy as before. So how can I tell the algorithm which time hierarchie he should use? Actually as a user I would expect that PA should be able to use a DATE field or TIMESTAMP correctly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 11:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482133#M3377804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T11:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: PA: Issues with DATE</title>
      <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482134#M3377805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christoph, it sounds like you didn't aggregate the data by quarter?&lt;/P&gt;&lt;P&gt;When using "R-Triple Exponential Smoothing" the input data must be aggregated by the period type you want to predict. So data that goes into the algorithm must contain only one record per quarter. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/218533" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, maybe the "Triple Exponential Smoothing" algorithm fits better for your use. There is no "R-" at the beginning of the name. This means this algorithm is not using the open-source R but the algorithm was implemented by SAP. The configuration of the two is slightly different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With "Triple Exponential Smoothing" you get the option "Consider date column", which sounds like what you are after. Here it uses the time hierachy of a date field to aggregate the data for you. So you can have multiple records per period. The algorithm then aggregates the data per period (ie quarter) and make the prediction for the next periods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 11:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482134#M3377805</guid>
      <dc:creator>AndreasForster</dc:creator>
      <dc:date>2013-05-17T11:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: PA: Issues with DATE</title>
      <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482135#M3377806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andreas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you, its working with the algorithm you´ve mentioned. Still its not working with the R algorithm.&lt;/P&gt;&lt;P&gt;What do you mean by aggregate? That I have to create a new column containing YEAR and QUARTER AS QUARTER like your first column?&lt;/P&gt;&lt;P&gt;If I do so, how can I assign the correct column to the tool? How does PA know which column it should use for the prediction?&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/218503" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 12:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482135#M3377806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T12:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: PA: Issues with DATE</title>
      <link>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482136#M3377807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it's working now with the internal algorithm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For using the R algorithm the data needs to be summarised by quarter. That's what I meant with aggregations. So all values from Januar, February, March have to be summarised into one single row. Just like like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Quarter,Quantity&lt;BR /&gt;2007-Q1, 10.0&lt;BR /&gt;2007-Q2, 12.0&lt;BR /&gt;2007-Q3, 11.0&lt;BR /&gt;2007-Q4, 13.0&lt;BR /&gt;2008-Q1, 12.0&lt;BR /&gt;2008-Q2, 14.0&lt;BR /&gt;2008-Q3, 13.0&lt;BR /&gt;2008-Q4, 15.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can copy/paste this data into a .csv and try it out. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;On the prepare tab you need to convert the Quantity field to a number so that P can pick it up.&lt;BR /&gt;Then configure the "R-Triple Exponential Smoothing" as follows&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/218630" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works as the data has to come sorted with the most recent quarter at the bottom (2007-Q1 is the first record, 2008-Q4 is the last).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then in the configuration the Start Year (2007) and Start Period (1) tell R that the first record is the first period of 2007. Since period is set to Quarter the algorithm knows that the first row is the first quarter of 2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming back to summarising the data into quarters. This can be delegated to the database, ie&lt;BR /&gt;- with Universes connecting to databases&lt;BR /&gt;- SQL Statements&lt;BR /&gt;- HANA Views&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 15:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/pa-issues-with-date/qaa-p/9482136#M3377807</guid>
      <dc:creator>AndreasForster</dc:creator>
      <dc:date>2013-05-17T15:07:09Z</dc:date>
    </item>
  </channel>
</rss>

