I'm struggling to get rolling 12 months for the months are completed. For example; For the current month the value should display Zero and for the completed month it should display rolling 12 months values. For 2016-Dec the value=sum(2016-Jan till 2016-Dec), 2016-Nov=sum(2015-Dec till 2016-Nov)
Year | Month | Value |
2016 | 8 | 985193929.9 |
2016 | 9 | 985428542.2 |
2016 | 10 | 985365989.1 |
2016 | 11 | 992519096.7 |
2016 | 12 | 980109375.8 |
2017 | 1 | 0 |
Please suggest any idea, if you have come across the same