Area charts in Power BI: basic, stacked and 100%

How basic (layered), stacked and 100% stacked area charts in Power BI differ, which question each answers, why layered areas hide each other, the DAX for shares, and when a line chart is better.

Short answer: an area chart is a line chart with the space under the line filled, so it stresses volume over time. Power BI has three: the area chart (Microsoft also calls it a basic or layered area chart: series drawn over each other, see-through), the stacked area chart (series piled up, the top edge is the total) and the 100% stacked area chart (every point is 100%, so it shows the mix). Layered areas work for two or three series at most; with more, use stacked areas or lines.

The chart, part by part: What is an area chart? draws its parts and shows how to read one, its kinds and the mistakes to avoid.

A line says "revenue went up". A filled area says "this much revenue", because the eye reads the filled surface as an amount. That is the area chart's strength and the reason it misleads when it is the wrong one of the three.

Which of the three answers which question?

ChartAnswersWatch out for
Area (basic, layered)how do two or three volumes trend, and which is bigger?areas hide each other; Power BI uses transparency for the overlap
Stacked areahow does the total trend, and what is it made of?only the bottom series has a flat baseline
100% stacked areahow does the mix change over time?absolute numbers disappear
The three area charts

What do they look like?

  • Revenue
  • Cost
050100150JanFebMarAprMayJun
Basic area: revenue and cost per month, cost drawn over revenue

The space between the two edges is the gross profit, and its widening in April is easy to see.

  • Basic
  • Pro
  • Team
02505007501,0001,25020222023202420252026
Stacked area: subscriptions by plan, the top edge is all subscriptions

Total subscriptions grew every year. The stack also shows that Basic stopped growing in 2024, but whether Pro or Team grew faster is hard to judge: they sit on moving baselines. The 100% version answers that:

  • Basic
  • Pro
  • Team
025507510012520222023202420252026
The same numbers as shares of each year (drawn as 100% stacked)

Team went from 5% to 27% of all subscriptions; Basic fell from 73% to 39%.

How do you build one?

  1. In Visualizations pick Area chart, Stacked area chart or 100% stacked area chart.
  2. Drag the date to X-axis and the measure to Y-axis; for series, a field to Legend or several measures to the Y-axis.
  3. Sort the time axis by date: More options (...), Sort axis, by the date field, ascending.
  4. The Lines and Shade area settings in Format visual set line width and how strong the fill is.

One behaviour is different from other visuals: Microsoft notes that selecting an area in a basic area chart highlights it but does not cross-filter the other visuals on the page. Clicking other visuals still filters the area chart.

What DAX goes with an area chart?

The 100% chart computes shares by itself. For a table or tooltip next to it, the share of each plan in its year:

Subscriptions = DISTINCTCOUNT ( Subscriptions[Subscription ID] )

Share of Year =
DIVIDE (
    [Subscriptions],
    CALCULATE ( [Subscriptions], REMOVEFILTERS ( Plans[Plan] ) )
)

For subscriptions, which are counted at a point in time, the value at the end of each period is usually what you want, not a sum over the days. A semi-additive measure handles it:

Active Subscriptions =
CALCULATE (
    [Subscriptions],
    LASTDATE ( 'Date'[Date] )
)

Opening and closing balances in DAX explains why stock-like numbers need this.

What goes wrong?

  • Layered areas with many series. The front area covers the back ones; past three series, nothing is readable. Use lines.
  • Reading a middle band as a trend. In a stacked area, a band that looks like it shrinks may only be squeezed by the band under it growing. Compare middle series with lines or small multiples.
  • An axis above zero. The area's size is read as an amount, so it must start at zero; a zoomed axis is a line chart's privilege.
  • Categories on the X-axis. Filling between "North" and "South" invents a continuity; areas are for time.
  • Summing stock numbers. Headcount, subscriptions and balances summed over days give huge wrong totals; use a closing value.

Where can you check this?

Where do you start?

Use a stacked area when the total and its parts matter, a 100% stacked area when only the mix matters, and a basic area for two series at most. For anything else a line chart is clearer.

Keep reading

More from the blog.

Every post

Next

Building this? Say hello.

A question about this post, a pattern you would build differently, or the next thing you want written out: Behnia reads every message.