Skip to content

Blog / Workday Adaptive Planning

Workday Adaptive Planning: Testing a Python Revenue Forecast Against Last Year + 5%

What I am testing

In financial planning, one common way to prepare a revenue forecast is to take last year’s actuals and apply a fixed percentage increase. For example, if revenue was ₹100 crore in January last year, applying 5% growth gives us a forecast of ₹105 crore for this January.

This approach is simple and easy to explain. But it assumes the same growth percentage works across different months and regions.

I wanted to test whether a simple Python forecasting model performs better than this method. I use historical-style revenue data, build a regression model, and compare its predictions with the Last Year + 5% approach.

I also want to see how the results differ by region, because a forecast that looks accurate at the total company level may not be equally accurate across the business.

How I build the forecast

I start by generating 48 months of synthetic revenue data across four regions: North, South, East and West. The data runs from November 2022 through October 2026.

I give each region a different revenue level and growth pattern. I also include monthly seasonality and some random variation so the numbers are not exactly the same every month.

The dataset contains 192 records, with one revenue value per month for each region.

I use Python, pandas and scikit-learn for the calculations.

For the machine learning forecast, I use LinearRegression. I keep the model simple, with time trend and month-of-year information as inputs. The model uses log-transformed revenue and converts the predictions back to revenue amounts.

I build a separate regression model for each region rather than using one model for the entire business.

For the comparison, I calculate the same month last year’s revenue multiplied by 1.05.

Baseline Forecast = Previous Year’s Same Month Revenue × 1.05

I use the first 36 months to train the regression model and keep the next 12 months for testing. The test period runs from November 2025 through October 2026.

This way, I can compare both methods against the same revenue values without using the test period to train the regression model.

What the dashboard shows

Workday Adaptive Planning: Testing a Python Revenue Forecast Against Last Year + 5%

The dashboard has four charts. I use them to compare forecast values, check accuracy by region, look at the next 12-month forecast and understand the growth assumptions behind the results.

In the first chart, the black line shows the generated actual revenue for the test period. The blue line shows the Python forecast, and the orange dashed line shows the Last Year + 5% forecast.

The Python forecast follows the actual revenue pattern more closely in this test. The fixed 5% method generally produces lower values, especially during months where the generated revenue grows faster than the baseline assumption.

I measure the error using Mean Absolute Percentage Error, or MAPE. It tells me the average absolute forecast error as a percentage of actual revenue. Lower is better.

Here are the results for the 12-month test period:

MethodMAPE
Python Regression Forecast1.59%
Last Year + 5%4.26%

For this dataset, the Python model produces the lower forecast error.

I calculate this total MAPE using monthly revenue aggregated across the four regions. It is different from taking a simple average of the individual regional error percentages.

What I notice by region

I also compare the results separately for North, South, East and West.

RegionPython ForecastLast Year + 5%
East2.9%4.5%
North2.3%3.0%
South1.7%4.8%
West2.7%5.0%

The regression model has a lower error in all four regions, although the difference varies.

South shows the largest improvement in this comparison, while North shows a smaller difference between the two approaches.

I then look at the fourth chart, which compares the year-on-year revenue growth in the synthetic data against the 5% assumption.

The observed regional growth rates range from approximately 7.5% to 10.6%. All four are higher than the fixed 5% uplift.

This helps explain why the baseline forecast is often lower than actual revenue.

The regression model uses historical trends and seasonal patterns, so it is better positioned to follow the growth built into this particular dataset.

One important point is that I generated the data with trends and seasonality. The model is designed to capture those patterns, so this result is not surprising.

It does not mean machine learning always produces a better forecast than a simple growth assumption.

Extending the forecast by another 12 months

After testing the model, I train it again using all 48 months of available data.

I then forecast the next 12 months, from November 2026 through October 2027.

The third chart shows the historical monthly revenue in black and the next 12 months of predicted revenue in blue.

The forecast continues the trend and seasonal pattern learned from the historical data.

This is similar to how I would approach a rolling revenue forecast. I use the latest available actuals, calculate future periods, and update the forecast as new data becomes available.

However, these future values are predictions. They are not actual results or approved financial targets.

I would still review the forecast against business assumptions before using it for planning.

How I would use this with Workday Adaptive Planning

For this experiment, I use Python and synthetic data. I am not running the machine learning model inside Workday Adaptive Planning.

In an actual implementation, I would extract historical revenue from Adaptive Planning or the relevant finance source, with the required accounts, months, levels and dimensions.

I would then prepare that data for the Python model and run the forecast outside Adaptive Planning.

Once I validate the results, I could prepare the output for a separate planning version and load it through an appropriate integration or import process.

I would keep the Python-generated forecast separate from the existing business forecast during testing.

That allows me to compare the numbers without replacing the budget or forecast Finance is already using.

I would also reconcile the output by month and region after loading it. A forecast can be accurate in Python but still produce incorrect reporting if the period or dimension mappings are wrong.

The current notebook only demonstrates the forecasting calculation and dashboard. It does not include an Adaptive Planning integration.

What I would test next

The result looks good for this dataset, but I would not select a forecasting method based on one test period.

I would first repeat the comparison using real revenue history and several different test periods.

I would also compare the regression model against other simple methods, such as using last year’s revenue without an uplift or using separate historical growth rates for each region.

Another important test is how the model handles unusual business activity.

For example, if a major customer leaves, a contract starts halfway through the year or pricing changes, the historical revenue trend may not reflect that information.

I would also review the forecast error in absolute revenue amounts, not only percentages. A small percentage difference can still represent a significant financial variance.

Final observation

In this test, the regression forecast gives me 1.59% MAPE compared with 4.26% for the Last Year + 5% method.

The difference is meaningful for the generated data, but I do not treat it as proof that machine learning is always more accurate.

What I find useful is the comparison itself.

Rather than accepting a fixed growth percentage, I can test it against another method, measure the error and understand where the differences come from.

I can also see whether the improvement is consistent across regions or only appears at the total level.

This is how I prefer to use Python alongside finance planning systems: build a small example, test the numbers, review the results and then decide whether the approach is useful for an actual planning requirement.

All data in this example is synthetic. The dashboard does not contain actual client revenue or market data.