Forum Discussion
Forecasting on existing numbers
Hi all,
I'm looking for a solution that will help me with a forecast overview. The following(test) data is available (based on contract data):
| Year | amount |
| 2020 | 150 |
| 2021 | 125 |
| 2022 | 122 |
| 2023 | 121 |
| 2024 | 110 |
| 2025 | 75 |
| 2026 | 45 |
| 2027 | 20 |
What I want to archive is the following view:
| Year | amount | Forecast |
| 2020 | 150 | 768 |
| 2021 | 125 | 618 |
| 2022 | 122 | 493 |
| 2023 | 121 | 371 |
| 2024 | 110 | 250 |
| 2025 | 75 | 140 |
| 2026 | 45 | 65 |
| 2027 | 20 | 20 |
Whereby the Forecast is a SUM of amount of the current year and all future amounts included.
The data is demo data, the real data set is ofcourse bigger but if I get a good suggestion I think I can make this work in the orginal environment as well.
Thanks in advance for a reply!
Regards,
Joep
joep78 , Create a measure like this and try
calculate(sum(Table[amount]), filter(allselected(Table), Table[Year]>=max(Table[Year])))
2 Replies
- amitchandak
Super User
joep78 , Create a measure like this and try
calculate(sum(Table[amount]), filter(allselected(Table), Table[Year]>=max(Table[Year])))
- joep78
Helper III
Hi Amit,
Thanks for your very quick response, this was just what I needed so again, thank you!