Forecasting demand or sales is one of the most valuable skills a data team can deliver. The challenge is clear: most organizations lack dedicated data science resources to build these models from scratch.
You do not need a PhD in machine learning to produce reliable forecasts. By combining dbt macros with Facebook Prophet, you can create a repeatable, accessible forecasting pipeline that any SQL-proficient analyst can maintain.
In this tutorial, we walk through 10 essential dbt macros specifically designed for time series forecasting, then connect them to a Prophet model in Python. Our goal: help you build a forecasting workflow that you can copy, adapt, and reuse across every project.
At Stellans, we have battle-tested these macros across 50+ client implementations. Clients report 40% faster time-to-insight after implementing macro-based forecasting pipelines. This guide shares the exact approach we use.