Power BI How-To
How to make a calendar heatmap in Power BI
Build a calendar heatmap in Power BI: field wells, a worked example, when the native visual is enough, and how to generate the .pbiviz without code.
By Nawaf Sharaf · Founder & Reliability Engineer · Updated
A calendar heatmap is the GitHub-style grid: one cell per day, weeks as columns, weekdays as rows, colour by value. It shows seasonality, weekly rhythm and one-off spikes on the same canvas, for daily sales, ticket volume, incidents or logins across a year or several.
Power BI has no native calendar heatmap; a matrix of week by weekday with conditional formatting gets close but can't label months, handle gaps or stack years. This guide builds one from a date and a value, covers the date-table requirement that keeps the grid complete, and the colour-scale choice that decides whether weekends disappear or stand out.
Step-by-step
- 1
Shape the data for the calendar heatmap
Two columns: Date (date) and Value (numeric). One row per day; gaps treated as zero or skipped depending on prompt. In the finished visual those columns land in the Date, Value, Highlight wells, so name them that way from the start.
- 2
Load a small sample into Power BI Desktop
Relate the visits table to a date table covering the whole year, then load at least a few weeks of visits. The grid is drawn from the date table, so the missing days show as empty cells instead of shifting the weeks.
- 3
Describe the calendar heatmap and generate the .pbiviz
On VizForge, describe the chart in plain English and say what matters for this one: one continuous strip for the date range, or one block per year stacked vertically; week starts on Monday or Sunday; colour scale: sequential by value, or diverging around a target; fixed or auto range. The pipeline writes the TypeScript, type-checks it and packages a .pbiviz.
- 4
Import the .pbiviz into Power BI Desktop
In the Visualizations pane, open the three-dot menu, choose Import a visual from a file and select the .pbiviz. The visual appears in the gallery; add it to the page like any built-in chart.
- 5
Bind the field wells
Date: Date column from a date table. Value: Numeric measure: the cell colour. Highlight: Optional flag column (holiday, campaign day).
- 6
Check the first render, then format
Missing days in the grid: the Date well is bound to the fact table's date, not the date table's. Weeks starting on the wrong day: change the week-start setting, not the data. Then open the formatting pane and set cell size and gap (decides whether a year fits the visual width).
Field wells the generated calendar heatmap exposes
After import, these are the data roles you drop fields into. The names come from the visual’s capabilities.json, which you can rename before packaging if your team uses different terms.
| Well | Takes | Note |
|---|---|---|
| Date | Date column from a date table. | The grid is drawn from the date table, so days with no data still get a cell. |
| Value | Numeric measure: the cell colour. | BLANK draws as an empty cell; wrap in COALESCE if zero is meaningful. |
| Highlight | Optional flag column (holiday, campaign day). | Outlines the cell so it's visible regardless of colour. |
Worked example
Daily website visits around a public holiday in October (an excerpt of the year).
| Date | Visits | Holiday |
|---|---|---|
| 2026-10-05 (Mon) | 4,120 | 0 |
| 2026-10-06 (Tue) | 4,390 | 0 |
| 2026-10-07 (Wed) | 4,250 | 0 |
| 2026-10-10 (Sat) | 1,180 | 0 |
| 2026-10-11 (Sun) | 960 | 0 |
| 2026-10-12 (Mon) | 2,310 | 1 |
What the chart draws: Parts of two adjacent week columns in the 52-column grid: dark weekdays and a pale weekend in the first, then Monday the 12th at the top of the next column, lighter than the Monday before it and ringed, the public holiday the flag column marks.
Live preview
The AI alternative: Describe your calendar heatmap in plain English and VizForge generates the .pbiviz, source included. 5 free credits on signup, no card required.
Generate a calendar heatmap on VizForge →Without code: what to put in the prompt
The generator turns a description into the TypeScript, so the description is where the decisions live. For a calendar heatmap, say:
- One continuous strip for the date range, or one block per year stacked vertically.
- Week starts on Monday or Sunday.
- Colour scale: sequential by value, or diverging around a target; fixed or auto range.
- Empty-day treatment: blank cell, zero colour, or hidden.
- Month labels along the top, weekday labels down the side, and what the tooltip shows.
Example VizForge prompt
Calendar heatmap of daily website visits for the past year. Sequential green color scale, darker = more visits. Label months across the top. Highlight weekend columns with a subtle grey background. Tooltip on hover shows exact date and visit count.
Customise it: formatting options worth exposing
Anything you name as adjustable becomes a card in Power BI’s formatting pane, which a report theme can then set for every copy of the visual. For a calendar heatmap the options that earn their place are:
- Cell size and gap (decides whether a year fits the visual width).
- Colour stops and whether the scale is shared across years.
- Highlight ring colour and width.
- Month and weekday label fonts and visibility.
- Weekend column shading on or off.
For changes the pane doesn’t cover, edit settings.ts and visual.ts in the source that ships with the download and repackage; or refine on VizForge and get a v2 that keeps everything you didn’t mention.
When native Power BI is enough (as of November 2026)
Power BI has no native calendar heatmap. A matrix with week number on columns, weekday on rows and background-colour conditional formatting is enough for a single quarter when month labels and gaps don't matter. For a full year, several years, or a page where readers compare one year with another, you need a visual that lays out the calendar itself.
Limits of Marketplace calendar heatmap visuals
Marketplace calendar heatmaps mostly fix the week start, the year layout and the empty-day treatment, and can be slow across multiple years because they redraw every cell on each interaction. A highlight flag for holidays is uncommon, and colour scales are usually the vendor's palette without theme support.
The general trade-offs (per-user licensing, closed source, no new field wells) are the same for every chart type; see VizForge vs Microsoft Marketplace visuals for the full comparison.
Download, install and first render
The download is a standard .pbiviz plus the TypeScript source. Import it in Power BI Desktop (Visualizations pane → three dots → Import a visual from a file), add it to the page and bind the wells above. Then check the calendar heatmap against this list before you connect the full dataset:
- Missing days in the grid: the Date well is bound to the fact table's date, not the date table's.
- Weeks starting on the wrong day: change the week-start setting, not the data.
- A grid that is all pale with one dark cell: an outlier day owns the scale; fix the scale max.
- Year blocks overlapping: lower the cell size or widen the visual; the layout is fixed-pitch.
When to use a calendar heatmap
- Daily sales or revenue intensity across the year
- Website traffic patterns (day-of-week × week-of-year)
- Support-ticket volume by day
- System incident timeline
- User login frequency / retention calendars
Frequently asked questions
Will the visual work in Power BI Service, Premium and embedded reports?
Yes. A .pbiviz is a standard Power BI custom visual and renders the same in Desktop, the Service, Premium and Premium per User capacities, and embedded scenarios. Tenant admins can restrict custom visuals to certified or organisational ones; if yours does, publish the .pbiviz as an organisational visual rather than importing it per report.
What if I need to change the visual later?
Two paths. Refine on VizForge with an instruction such as "add a target line" and get a v2 .pbiviz that keeps everything you didn't mention; or open the TypeScript source that ships with every download in VS Code, edit it and repackage with pbiviz package.
Can I show multiple years stacked?
Yes. Prompt for 'one row per year' and the visual renders one calendar block per year stacked vertically, with a shared color scale.
What happens on days with no data?
By default rendered as an empty (white) cell. Prompt for 'treat missing as zero' if you want them shaded as the lowest color stop.
Can I overlay holidays?
Yes — bring a Holiday column or flag and the visual outlines those cells with a ring in the formatting pane color.
Does it cross-filter?
Yes — click a cell to filter other visuals to that date; click-drag to select a range.
Put your calendar heatmap on a designed page
Free Design Studio page layouts. Download the background, theme and PBIP project, then import the visual into the slot.
Retail & e-commerce template
E-commerce PerformanceHas a slot for it: “Revenue by day”.
Supply chain template
Warehouse OperationsHas a slot for it: “Lines picked and productivity by day”.
SaaS template
Product Analytics & Feature AdoptionHas a slot for it: “Active users by day”.
Design the page around it, free
A custom visual looks best on a designed page. The free VizForge Design Studio lays out a branded report page at Power BI’s pixel size and exports the background image, a theme JSON and a PBIP project. No signup.
Open the free Design Studio →Guides for related charts
Reference
Data shape, DAX measures, related visuals.
Index
One guide per Power BI visual type, plus the Design Studio guides.
VizForge — AI-generated Power BI custom visuals.