Quantcast
Channel: SCN: Message List - PA: Issues with DATE
Viewing all articles
Browse latest Browse all 8

Re: PA: Issues with DATE

$
0
0

Glad it's working now with the internal algorithm :-)

 

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:

 

Quarter,Quantity
2007-Q1, 10.0
2007-Q2, 12.0
2007-Q3, 11.0
2007-Q4, 13.0
2008-Q1, 12.0
2008-Q2, 14.0
2008-Q3, 13.0
2008-Q4, 15.0

 

You can copy/paste this data into a .csv and try it out.


On the prepare tab you need to convert the Quantity field to a number so that P can pick it up.
Then configure the "R-Triple Exponential Smoothing" as follows

triplerconfig.PNG

 

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).


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.

 

Coming back to summarising the data into quarters. This can be delegated to the database, ie
- with Universes connecting to databases
- SQL Statements
- HANA Views


Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>