Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Get a % of yearly total

$
0
0

Hi

 

I have a simple salesamount by period and need to calculate a seasonality (% of yearly total). A sample of Sales:

 

PeriodAmount
2015-12-01275
2016-01-0120
2016-02-0130
2016-03-0132
2016-04-0121
2016-05-0117
2016-06-0154
2016-07-0123
2016-08-0134
2016-09-0121
2016-10-0118
2016-11-0119
2016-12-0121
2017-01-0132
2017-02-0112

 I have a relation between Sales and Dim Time. I need to get the % of year like this:

 

PeriodAmount % of year
2015-12-01275100,00%
2016-01-01206,45%
2016-02-01309,68%
2016-03-013210,32%
2016-04-01216,77%
2016-05-01175,48%
2016-06-015417,42%
2016-07-01237,42%
2016-08-013410,97%
2016-09-01216,77%
2016-10-01185,81%
2016-11-01196,13%
2016-12-01216,77%
2017-01-013210,70%

 

Any guidance ...


Viewing all articles
Browse latest Browse all 213819

Trending Articles



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