Skip to content

Business Intelligence··By Markus S.

A holiday calendar that knows every municipality

Public holidays, school holidays and working days for every municipality in Germany as a ready-made BI table. Why we built the calendar and how to connect it.

First the links, in case you want to dive straight in: the product page, the map “Who has the day off?”, the data at data.trakora.com, and the rules and loaders in the repository Trakora/holiday-calendar.

One holiday, 348 exceptions

On 15 August 2026, 82.5 % of the people in Bavaria had the day off. Everyone else lives in one of 348 municipalities, among them Nuremberg, Erlangen and Fürth, and for them it was a normal working day. A calendar table per state can’t tell the difference. It marks all of Bavaria as “Assumption Day”, and the demand forecast for the warehouse in Nuremberg expects a quiet day when the trucks are in fact running.

We have built tables like that ourselves in plenty of projects. A script for the public holidays, school holidays typed in from PDFs, working days counted up in the BI tool. Slightly different every time, and with the same gaps every time. At some point we’d had enough. The result is the Trakora holiday calendar: public holidays, school holidays, working days and bridge days for each of the 10,753 municipalities in Germany, from 2010 to 2035, as ready-made tables for BI and data warehouses. The data is open, with no sign-up and no key.

Why the state is not enough

In Bavaria, Assumption Day is a public holiday only where more Catholic than Protestant residents live (Art. 1 Abs. 1 Nr. 2 und Abs. 3 BayFTG). The state statistics office works out which municipalities those are after every census. Until 2013 it was 1,700 municipalities, from 2014 to 2024 it was 1,704, and since 2025, following the 2022 census, it is 1,708 out of 2,056. Eight municipalities switched with the latest census. Baiersdorf near Erlangen, for example, had the holiday until 2013, lost it with the 2011 census and has had it again since 2025. So if you compare revenue from 2013 with 2014, you need both versions.

Augsburg celebrates the Peace Festival on 8 August, a holiday no other municipality has. In Saxony and Thuringia, Corpus Christi applies only in some municipalities, sometimes only in parts of them. We have researched those lists but haven’t fully checked them against official sources yet, so they are not in the first release. We would rather name a gap than ship a list we can’t stand behind.

On top of that, the rules change over the years. Reformation Day has been a holiday in Bremen, Hamburg, Lower Saxony and Schleswig-Holstein only since 2018, and in 2017 it was a one-off holiday across the country. Berlin has had Women’s Day since 2019, Mecklenburg-Western Pomerania since 2023, and Thuringia has had World Children’s Day since 2019. Berlin also had one-off holidays on 8 May 2020 and 8 May 2025, and the next one falls on 17 June 2028, a Saturday. Apply today’s rules to every year and your history is wrong. That’s why every rule in the calendar has a validity period and a legal basis.

What the tables hold besides holidays

Public holidays alone won’t get a forecast model or a staffing plan very far. So the daily table also holds the columns someone ends up building by hand in almost every BI project.

School holidays for all 16 states are there both as a column per day and as periods per school year, from 2009/10 to 2028/29, taken from the holiday calendars of the Standing Conference of education ministers. School holidays don’t change working days, so they get a column of their own. Where dates haven’t been set yet, the value is left empty instead of saying “no holidays”, so nobody accidentally turns a gap into a school day.

For working days there is a trick that works in any database and any BI tool without a custom function. workday_index numbers the working days of a calendar profile in sequence, and days off get the number of the working day before them. Three working days after a date is simply the working day with that number plus three, and the number of working days between two dates is the difference. An order placed on Friday, 11 August 2028, with three working days of delivery time arrives in Nuremberg on 16 August and in Munich only on the 17th, because the 15th is a day off there and not in Nuremberg. The table also has the next and previous working day, the number of the working day within the month and the working days per month.

Bridge days are marked, along with how many consecutive days off a single day of leave gets you. For the Friday after Ascension Day it’s four. For year-over-year comparisons there is a comparison day. Usually that’s the same weekday 364 days earlier. But Carnival, Easter, Whitsun and Corpus Christi follow the Easter date, and the days around Christmas and New Year follow the calendar date. So Easter Sunday 2026 is compared with Easter Sunday 2025, not with some ordinary Sunday in April.

Days with a daylight saving switch have 23 or 25 hours. If you sum hourly values to days, say energy use or call volumes, you’d otherwise see an outlier on the last Sunday of October that isn’t real. And for Germany and every state, each day carries the share of the population with a public holiday and the share with school holidays, weighted by the population of each municipality. For a nationwide demand forecast, the share of people who have the day off is a far better feature than a holiday flag that is true for Bavaria and false for Hamburg.

From 100 million to 171,000 rows

Storing every day for every municipality would add up to about 100 million rows for Germany alone. But almost all municipalities in a state share the same calendar. So each municipality points to a calendar profile, and only the profiles have daily rows. Germany needs 18: one per state, plus Bavaria without Assumption Day, Bavaria with it, and Augsburg with its Peace Festival. 18 profiles times 26 years is 170,928 rows, which fits into any BI tool and any notebook.

The mapping from municipality to profile has a validity period, because it can change with every census. Baiersdorf shows up three times: until 2013 with the holiday, from 2014 to 2024 without, and since 2025 with it again. If you need the flat view of “every municipality on every day”, it’s ready-made in the DuckDB file as region_day, or you build it in your warehouse with a join over the mapping.

The tables are named the way you’d expect from a star schema. dim_date holds everything that is the same everywhere, fact_calendar_day one row per day and profile, dim_region every municipality with district, state, population and coordinates. Then there are the holidays, the rules with their legal basis and the school holidays as periods. Everything is keyed by country, so Austria and Switzerland will later be new rows rather than new tables.

Where the data comes from and how we check it

A missing date is annoying. A wrong one is worse, because it slips into forecasts and rosters without anyone noticing. So we don’t have a single rule without a source. Public holidays come from the holiday laws of the states, and every rule points to its law or ordinance. Municipalities with population, district and coordinates come from the municipality register of the Federal Statistical Office as of 31 December 2025. School holidays come from the calendars of the Standing Conference of education ministers, with a link to the source for every school year.

The Bavarian municipality list took the most work. The state office publishes its determination only as a map, not as a table. So we derived the list from the census evaluation “Population by religious affiliation per municipality” and arrived at 1,708 municipalities, exactly the official count. The older versions we worked out backwards. For 2011 we used the eight changes the state office announced in 2025, which gives the official 1,704. For 1987 we used the changes of 2014 as the press reported them at the time, which gives 1,700, the number reported back then. The published census figures are slightly altered for privacy reasons, and that tips exactly one municipality the wrong way. According to the published figures, Weisendorf has 2,102 Catholics and 2,104 Protestants, yet according to the state office it has the holiday. The correction is in the data, along with the reason.

Checks run automatically. Tests look up known dates for specific municipalities, including every legal change since 2010, and recount the Bavarian municipalities for each census. Before every release, the data is also compared with the OpenHolidays API for 2020 to 2030, and any difference stops the release. On the very first run, that comparison caught the one-off Berlin holiday on 17 June 2028, which our rules were still missing. Since then the two agree at state level. Below the state level there is nothing to compare against, and that is exactly why this calendar exists.

The map is for looking things up, the files are for analysis

The calendar comes with a map, “Who has the day off?”. Pick a day and you see which municipalities have a public holiday or school holidays. Click on a municipality and you get its whole year, with working days, bridge days and the SQL query that fetches exactly that data. The map is meant for a quick look: is Erlangen off on 15 August? When do the summer holidays start in Hesse? It also shows what’s in the tables before you connect anything.

It isn’t built for analysis, and it isn’t going to be. The calendar only really pays off next to your own numbers: revenue per store, delivery times per site, sick days per plant. How many working days your 40 sites had in the third quarter, and how that lines up with revenue, is a question for the BI tool or the warehouse, answered with a join on your own site table. That’s what the files are for, and there are three ways to get them.

All files are at https://data.trakora.com/holiday-calendar/v1/: one DuckDB file with every table, about 5 MB, and every table as Parquet and CSV as well. The quickest way is to query the file directly. DuckDB only fetches the parts the query needs:

ATTACH 'https://data.trakora.com/holiday-calendar/v1/latest/holiday_calendar.duckdb' (READ_ONLY);

SELECT date, holiday_name, school_holiday_name
FROM holiday_calendar.region_day
WHERE region_name = 'Nürnberg' AND year(date) = 2027
  AND (is_public_holiday OR is_school_holiday);

The second way is a one-off download from latest/, for instance by pointing the query editor of your BI tool straight at the Parquet file. A date table only changes a few times a year, so that is often all you need.

The third way is for pipelines that should stay current without reloading everything every week. Every release ships change files in which each row is marked as upsert or delete. manifest.json describes all releases with primary keys, columns and checksums. A pipeline reads the manifest, loads the change files of every release since its last run, and replaces or deletes rows by primary key. The first change file contains everything, and applying them all in order gets you exactly to the state in latest/. Ready-made loaders for the common warehouses, lakehouses and BI tools are in the public repository, and most of them run in CI against two small test releases.

Releases are named after their date, and the first one is 2026.10.27. Within v1, we only add rows and columns and correct values. If we ever had to rename or remove a column, that would be v2, and v1 would stay as it is.

Open, free, and not finished

The rules, school holidays and municipality lists are in the public repository under CC BY 4.0, the code under MIT. If you find a wrong date, open an issue or a pull request with a source and a test date, and CI checks both. What we keep to ourselves is the build, the part that turns the rules into profiles, working days, bridge days and population shares. That’s our work sample, and it keeps outside contributions simple: fixing a date means editing a YAML file, with no build environment needed.

What’s still missing is mentioned above: Corpus Christi in the municipalities of Saxony and Thuringia. After that come Austria and Switzerland. The format already handles some things Germany doesn’t need, such as a different weekend per country and date rules for Orthodox Easter. Half-day holidays aren’t supported yet, and neither are substitute days for holidays that fall on a weekend. Switzerland will make us add them.

And one note we mean seriously: we maintain the data carefully, with a source and a test for every date, but it is not legal advice. If you want to know whether a site has to stay closed on 15 August, read the law. If you want to know how many of your sites are closed that day, you now have a table for it.