

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
RangeSum with Average
Hi All,
Can someone please tell me if there is a way to calculate a rolling 5 year average using the RangeSum? Here is what I have.
rangesum(Before(Count({<YR_SW = {1}>}DISTINCT([Sold To])),0,5))
Example of what I have 2013 has 1300 customers so the 2013's average would be 1300, then 2014 has 1200 customer and the rolling total would be 2500 and it's average would be 1250, etc.....
Thanks
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be use RangeAvg() instead of RangeSum()
RangeAvg(Before(Count({<YR_SW = {1}>}DISTINCT([Sold To])),0,5))


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May be use RangeAvg() instead of RangeSum()
RangeAvg(Before(Count({<YR_SW = {1}>}DISTINCT([Sold To])),0,5))


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Sunny I figured it out right after I hit the post button.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sunny,
Good morning. I was wondering if there is a way to calculate a % of growth using the RangeSum? What I am trying to do is find % of growth over a 11 year period by year. I'm using this for the RangeAvg. Thanks. The first column is actual and the second if from the statement below.
RangeAvg(Before(Count({<YR_SW = {1}>}DISTINCT([Sold To])),0,11))
Great Lakes Central | 11753 | 11753 | 10697 | 11225 | 10935 | 11128 | 11417 | 11201 | 11513 | 11263 | 11440 | 11293 | 12014 | 11396 | 12116 | 11486 | 13099 | 11665 | 13362 | 11835 | 13184 | 11957 | Great Lakes E | 16859 | 16859 | 16081 | 16470 | 16508 | 16483 | 16684 | 16533 | 16749 | 16576 | 17135 | 16669 | 17536 | 16793 | 17730 | 16910 | 18364 | 17072 | 20011 | 17366 | 19781 | 17585 | Great Lakes W | 11117 | 11117 | 10601 | 10859 | 10881 | 10866 | 11262 | 10965 | 11240 | 11020 | 11685 | 11131 | 17360 | 12021 | 18131 | 12785 | 19272 | 13505 | 20395 | 14194 | 20869 | 14801 | Mid Atlantic | 9416 | 9416 | 9213 | 9315 | 12892 | 10507 | 12926 | 11112 | 12505 | 11390 | 12242 | 11532 | 12646 | 11691 | 12611 | 11806 | 12836 | 11921 | 13142 | 12043 | 13063 | 12136 | N Chicago | 7125 | 7125 | 6678 | 6902 | 9421 | 7741 | 9762 | 8247 | 9626 | 8522 | 10003 | 8769 | 10175 | 8970 | 10573 | 9170 | 10933 | 9366 | 11003 | 9530 | 11185 | 9680 | New England | 1955 | 1955 | 1951 | 1953 | 5340 | 3082 | 9316 | 4641 | 9163 | 5545 | 8782 | 6085 | 8737 | 6463 | 8704 | 6744 | 9635 | 7065 | 9768 | 7335 | 9493 | 7531 | Northeast | 14954 | 14954 | 13808 | 14381 | 13685 | 14149 | 13542 | 13997 | 13230 | 13844 | 13244 | 13744 | 13690 | 13736 | 14626 | 13847 | 14917 | 13966 | 14710 | 14041 | 14682 | 14099 | S Chicago | 7752 | 7752 | 7368 | 7560 | 20632 | 11917 | 20991 | 14186 | 20525 | 15454 | 20645 | 16319 | 21005 | 16988 | 20988 | 17488 | 21503 | 17934 | 22205 | 18361 | 22607 | 18747 | South Central | 18372 | 18372 | 16762 | 17567 | 16209 | 17114 | 16049 | 16848 | 16786 | 16836 | 16844 | 16837 | 17597 | 16946 | 18086 | 17088 | 19141 | 17316 | 19061 | 17491 | 19908 | 17710 | Southeast | 10388 | 10388 | 9393 | 9891 | 9456 | 9746 | 9394 | 9658 | 9358 | 9598 | 9989 | 9663 | 9860 | 9691 | 9925 | 9720 | 11208 | 9886 | 13442 | 10241 | 13523 | 10540 | Western | 12328 | 12328 | 11183 | 11756 | 11169 | 11560 | 11392 | 11518 | 11112 | 11437 | 11832 | 11503 | 11980 | 11571 | 13133 | 11766 | 13225 | 11928 | 13040 | 12039 | 12727 | 12102 |
