Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
How would I create a set expression that would calculation sales growth over a series of years?
It would look like this.
Year | Sales | Growth |
---|---|---|
2016 | 10,000 | 0 |
2017 | 12,000 | 20% |
2018 | 15,000 | 25% |
Thanks for any help.
Depending on the sorting, you can use one of these:
When Ascending Year
Sum(Sales)/Above(Sum(Sales)) - 1
When Descending Year
Sum(Sales)/Before(Sum(Sales)) - 1
Depending on the sorting, you can use one of these:
When Ascending Year
Sum(Sales)/Above(Sum(Sales)) - 1
When Descending Year
Sum(Sales)/Before(Sum(Sales)) - 1
Is it possible to do something like
sum(sales)/sum({<Year= {Year -1}>} sales)
???
Yes, but only when Year is not your dimension. Because when year is your dimension, this will only work for the most recent year.
Thank you for your insight.
No problem at all
Hi sunny,
This will work with company and year month dimesions ad well?
Vikas
It should... you just have to be careful of the sorting and use After/Before if the year is pivoted dimension
Thanks
vikas