To show week-over-week (WoW) change in Power BI, the quickest route is a visual calculation: put your weeks and sales in a table, choose New visual calculation and enter [Sales] - PREVIOUS ( [Sales] ). If you need the comparison in more than one visual, write DAX measures instead, using a week index column in your date table so that “previous week” is simply the current week number minus one, even across New Year. Either way, divide by the previous week with DIVIDE to get the WoW %.
This guide covers both methods step by step: visual calculations with PREVIOUS, OFFSET and the Versus previous template, then DAX measures with ISO weeks, a week index and DATEADD. It also covers the first week of the year, the incomplete current week, formatting, a worked example and the mistakes we see most often.
Visual calculations or measures: which to use
| Visual calculation | DAX measure | |
|---|---|---|
| Where it lives | On one visual | In the semantic model |
| Setup | Nothing to add to the model | Week columns in the date table, plus measures |
| “Previous week” means | The previous row shown in the visual | The previous calendar week, whatever the visual shows |
| Reuse in other visuals | No, you recreate it each time | Yes, anywhere in the report |
| Cards, slicers, sorting, exports | Can’t be filtered or sorted on; left out of data exports | Works everywhere |
| Best for | A quick WoW column in one table, matrix or chart | KPIs used across a report, cards, like-for-like weeks |
Many reports use both: measures for the headline numbers, and a visual calculation for a one-off comparison in a single table.
The example model
All the examples use one small model:
- Sales: one row per order, with
Sales[Order Date](a date, no time) andSales[Amount]in pounds. - Date: one row per day, related one-to-many to
Sales[Order Date]on'Date'[Date]and marked as a date table. Weeks run Monday to Sunday and follow ISO 8601, which is the usual choice in the UK and Europe.
The base measure is:
Sales = SUM ( Sales[Amount] )
Add week columns to the date table
Visual calculations don’t strictly need these columns, but they make every week-over-week report easier, and the DAX measures depend on them. Here is a date table built with DAX:
Date =
ADDCOLUMNS (
CALENDAR ( DATE ( 2024, 1, 1 ), DATE ( 2027, 1, 3 ) ),
"Year", YEAR ( [Date] ),
"Day of Week", WEEKDAY ( [Date], 2 ),
"Week Start", [Date] - WEEKDAY ( [Date], 2 ) + 1,
"ISO Week", WEEKNUM ( [Date], 21 ),
"ISO Year", YEAR ( [Date] - WEEKDAY ( [Date], 2 ) + 4 )
)
What each column does:
- Day of Week:
WEEKDAY ( [Date], 2 )returns 1 for Monday to 7 for Sunday. We use it for like-for-like comparisons later. - Week Start: the Monday of each week. Set its data type to Date.
- ISO Week:
WEEKNUMwith return type 21 gives ISO 8601 week numbers, where week 1 is the week containing the first Thursday of the year. Other return types number weeks differently (see the next section). - ISO Year: the year that the week belongs to. It takes the Thursday of the week (Monday plus three days) and returns that date’s year. DAX has no separate ISO year function, so this is the standard way to get one.
Then add two calculated columns that need the columns above:
Week Index =
INT ( DATEDIFF ( DATE ( 2024, 1, 1 ), 'Date'[Week Start], DAY ) / 7 ) + 1
Year Week =
'Date'[ISO Year] & "-W" & FORMAT ( 'Date'[ISO Week], "00" )
Week Index counts weeks from the start of the table: 1, 2, 3 and so on, without restarting each year. 1 January 2024 is a Monday, which is why it’s the anchor date; if your table starts on another day, use the Monday on or before your first date. Year Week is the label people see, such as 2026-W01. Select it and use Column tools > Sort by column to sort it by Week Index.
Notice that the table ends on Sunday 3 January 2027, not 31 December 2026. 2026 has 53 ISO weeks, and week 53 runs from Monday 28 December 2026 to Sunday 3 January 2027. Ending the table on a Sunday keeps the last week complete. Our guide to calendar tables with DAX covers the other columns you’ll usually want, and the same columns can just as well come from Power Query or your data warehouse.
Why the first week of the year is tricky
Weeks don’t line up with years. In ISO numbering, week 1 of 2026 runs from Monday 29 December 2025 to Sunday 4 January 2026, so three days of 2025 belong to 2026’s first week. That causes three common problems:
- Calendar year plus ISO week gives the wrong label. 29 December 2025 has
YEAR2025 and ISO week 1, so a key built from those two would put it in “2025-W01”, a full year away from the rest of its week. Use the ISO Year column with the ISO Week. - Other WEEKNUM return types split the week. With return type 2 (weeks start on Monday, week 1 is the week containing 1 January), 29 to 31 December 2025 are week 53 of 2025 and 1 to 4 January 2026 are week 1 of 2026: two short weeks that compare badly with full ones. The default return type 1 does the same with Sunday-start weeks.
- “Week number minus one” fails in week 1. Week 1 minus one is week 0, which doesn’t exist. The Week Index doesn’t restart, so the week before 2026-W01 is simply the index minus one, which is 2025-W52.

Method 1: week over week with visual calculations
Visual calculations are DAX formulas that run on the data already in a visual. They’re no longer a preview feature, so there’s nothing to switch on: if you still see them under File > Options and settings > Options > Preview features, update Power BI Desktop. You can also create them when editing a report in the Power BI service.
- Add a table or matrix with Year Week from the Date table on rows and the Sales measure. A line or column chart with Year Week on the X-axis works in the same way.
- Select the visual and choose New visual calculation on the Home ribbon. The edit screen opens with a preview of the visual, a formula bar and the visual matrix underneath.
- Open the templates menu and choose Versus previous. It writes
[Field] - PREVIOUS ( [Field] ). - Replace
[Field]with[Sales]and rename the calculation, for example Sales WoW.
PREVIOUS returns the value from the row before, in the order the rows are sorted on the axis. These three visual calculations give you the previous week, the change and the change as a percentage:
Sales PW = PREVIOUS ( [Sales] )
Sales WoW = IF ( NOT ISBLANK ( [Sales PW] ), [Sales] - [Sales PW] )
Sales WoW % = DIVIDE ( [Sales] - [Sales PW], [Sales PW] )
A visual calculation can refer to other visual calculations in the same visual, which keeps the formulas short. The IF matters on the first row: there’s no row before it, PREVIOUS returns blank, and without the IF the “change” would be the whole of the first week’s sales. DIVIDE returns blank instead of an error when there’s nothing to divide by. If you don’t want the Sales PW column on the report, hide it in the edit screen: hidden fields stay available to other calculations but don’t show in the visual.
The same calculation with OFFSET
PREVIOUS is a shortcut to OFFSET with a delta of -1. You’d write OFFSET out in full when you need more control, for example to reset the comparison at the start of each year:
Sales WoW (within year) =
[Sales] - CALCULATE ( SUM ( [Sales] ), OFFSET ( -1, ROWS, HIGHESTPARENT ) )
That version needs a hierarchy on rows, such as ISO Year then ISO Week in a matrix, because Reset works on levels. To compare with four weeks ago instead of one, use PREVIOUS ( [Sales], 4 ).
Year end, hierarchies and other time grains
Because PREVIOUS works on rows, it doesn’t care that one row is 2025-W52 and the next is 2026-W01: it compares them like any other pair. In a matrix with ISO Year and ISO Week on rows, the default (no reset) also carries on from the last week of one year to the first week of the next. At the year level, the same calculation compares each year’s total with the year before, and if you swap weeks for months it gives month-over-month. One formula adapts to the grain in the visual, which is the main attraction.
Limits of visual calculations
- Missing weeks are skipped. A visual calculation only sees the rows in the visual. If a week had no sales, it doesn’t appear, and PREVIOUS compares with the week before it. Turning on “show items with no data” doesn’t help, as that option isn’t supported with visual calculations.
- Order comes from the axis fields. PREVIOUS orders rows by the fields on the axis, ascending, not by how the visual is sorted on screen. Zero-padded labels such as 2026-W01, sorted by Week Index, keep weeks in order. If a reader sorts the table by Sales, each row still compares with its previous week, but those rows are no longer next to each other, which can confuse.
- One visual only. You can’t copy or reuse a visual calculation in another visual, filter or sort by it, or pin it to a dashboard, and data exports leave it out.
- No idea of “complete” weeks. It compares whatever is in the rows, including a current week that has only a few days of data.
If any of these matter, use measures.
Method 2: week over week with DAX measures
Previous week with the week index
Sales PW =
VAR CurrentWeek = MAX ( 'Date'[Week Index] )
RETURN
IF (
HASONEVALUE ( 'Date'[Week Index] ),
CALCULATE (
[Sales],
REMOVEFILTERS ( 'Date' ),
'Date'[Week Index] = CurrentWeek - 1
)
)
The variable stores the current week’s index. REMOVEFILTERS ( 'Date' ) clears every filter on the date table, such as ISO Year and Year Week from the visual, and the next line filters to the week before. Without REMOVEFILTERS, the first week of the year would return blank, because the visual’s ISO Year filter (2026) and the previous week (in 2025) can’t both be true. HASONEVALUE returns blank at the grand total and on any row covering more than one week, where “previous week” has no clear meaning.
Then build the change and the percentage from it:
Sales WoW =
IF ( NOT ISBLANK ( [Sales PW] ), [Sales] - [Sales PW] )
Sales WoW % =
DIVIDE ( [Sales] - [Sales PW], [Sales PW] )
These are the same two-measure pattern as our Power BI variance measures, applied to weeks. Because the measures work from the week index, they still return the right previous week when a week has no sales, and they work in cards, charts and tables alike.
One side effect: REMOVEFILTERS also clears slicers on the date table, such as a weekday slicer. If you need to keep one, add it back with VALUES, for example VALUES ( 'Date'[Day of Week] ) as an extra CALCULATE filter.
Same days last week with DATEADD
If you work with daily data, DATEADD can shift each date back seven days:
Sales Same Day LW =
CALCULATE ( [Sales], DATEADD ( 'Date'[Date], -7, DAY ) )
On a row for Thursday 5 November 2026 it returns Thursday 29 October. On a week row, the context is seven contiguous days, so DATEADD returns the seven days of the week before, which makes it a second way to get the previous week. Because the filter is on the date column of a marked date table, Power BI removes the other filters on the Date table for you, so it also works across New Year. DATEADD only returns dates that exist in the date table, so the first week in the table returns blank.
Use DAY with -7 rather than WEEK: with a date column, DATEADD only accepts year, quarter, month and day. The WEEK interval needs calendar-based time intelligence (see below). Our guide to SAMEPERIODLASTYEAR, PARALLELPERIOD and DATEADD explains how DATEADD shifts dates in more detail.
Alternative: OFFSET in a measure
OFFSET also works in model measures, without visual calculations:
Sales PW (OFFSET) =
CALCULATE (
[Sales],
OFFSET ( -1, , ORDERBY ( 'Date'[Week Index], ASC ) )
)
With no table given, OFFSET works on ALLSELECTED of the Week Index column, so it moves through the weeks the user has selected. The first selected week therefore returns blank, even if earlier weeks exist in the model. For most reports the Week Index measure above is easier to reason about. Our post on referencing the previous row in Power BI compares OFFSET with the other previous-row methods.
Calendar-based time intelligence (preview)
Power BI Desktop also has an Enhanced DAX Time Intelligence preview. You define a calendar on the date table, tagging which columns hold the year, week and date, and then week functions such as PREVIOUSWEEK and TOTALWTD work directly:
Sales PW (calendar) =
CALCULATE ( [Sales], PREVIOUSWEEK ( 'ISO Calendar' ) )
Here ‘ISO Calendar’ is a calendar you’ve defined with Year Week tagged as the Week category (or ISO Week and ISO Year as Week of Year and Year). DATEADD ( 'ISO Calendar', -1, WEEK ) also works with a calendar. As of November 2026 the feature is still in preview, calendars can’t be authored in the Power BI service, and they don’t work with live connections or composite models. Our post on custom calendars in Power BI shows how to set one up. Until it’s generally available, the week index measures are the safe choice for production reports.
Handle the incomplete current week
The most misleading WoW figure is the current week. If the data was refreshed overnight and today is Thursday, this week has three days of sales and last week has seven, so the change looks like a collapse. There are two ways to deal with it.
Option 1: only show WoW for complete weeks
Sales WoW % (complete weeks) =
VAR LastSaleDate =
CALCULATE ( MAX ( Sales[Order Date] ), REMOVEFILTERS ( 'Date' ) )
VAR WeekEnd = MAX ( 'Date'[Date] )
RETURN
IF ( WeekEnd <= LastSaleDate, [Sales WoW %] )
The week’s last date (its Sunday) has to be on or before the last order date, so the current week shows blank until it’s finished. This relies on the date table holding whole weeks, which is why it ends on a Sunday.
Option 2: compare like for like
Compare this week so far with the same days of last week:
Sales PW (same days) =
VAR CurrentWeek = MAX ( 'Date'[Week Index] )
VAR LastSaleDate =
CALCULATE ( MAX ( Sales[Order Date] ), REMOVEFILTERS ( 'Date' ) )
VAR LastSaleWeek =
LOOKUPVALUE ( 'Date'[Week Index], 'Date'[Date], LastSaleDate )
VAR LastDay =
IF ( CurrentWeek = LastSaleWeek, WEEKDAY ( LastSaleDate, 2 ), 7 )
RETURN
IF (
HASONEVALUE ( 'Date'[Week Index] ),
CALCULATE (
[Sales],
REMOVEFILTERS ( 'Date' ),
'Date'[Week Index] = CurrentWeek - 1,
'Date'[Day of Week] <= LastDay
)
)
Sales WoW % (same days) =
DIVIDE ( [Sales] - [Sales PW (same days)], [Sales PW (same days)] )
For complete weeks LastDay is 7, so the measure returns the whole previous week. For the current week it only includes the previous week’s days up to the same weekday as the last sale. Label it on the report, for example “vs same days last week”, so readers know what’s being compared.
Worked example
Here is the example model in a table with Year Week on rows. Week 2025-W50 had sales of £11,800.
| Year Week | Week starting | Sales | Sales PW | Sales WoW | Sales WoW % |
|---|---|---|---|---|---|
| 2025-W51 | Mon 15 Dec 2025 | £12,400 | £11,800 | +£600 | +5.1% |
| 2025-W52 | Mon 22 Dec 2025 | £9,300 | £12,400 | -£3,100 | -25.0% |
| 2026-W01 | Mon 29 Dec 2025 | £7,750 | £9,300 | -£1,550 | -16.7% |
| 2026-W02 | Mon 5 Jan 2026 | £11,160 | £7,750 | +£3,410 | +44.0% |
| 2026-W03 | Mon 12 Jan 2026 | £12,276 | £11,160 | +£1,116 | +10.0% |
Check one row: in 2026-W02, £11,160 minus £7,750 is £3,410, and £3,410 divided by £7,750 is 44.0%. 2026-W01 compares with 2025-W52 even though the year changes, because the Week Index for 2026-W01 is one more than for 2025-W52. The visual calculations from Method 1 give the same figures in this table, because every week has sales. With the measures, the visual could show 2026 only (for example with an ISO Year slicer) and 2026-W01 would still compare with 2025-W52; the visual calculation would show blank for 2026-W01, because 2025-W52 isn’t in the visual.
Now the current week. The data runs to Wednesday 4 November 2026, so 2026-W45 (2 to 8 November) has three days:
| Days | 2026-W44 (26 Oct to 1 Nov) | 2026-W45 (2 to 8 Nov) |
|---|---|---|
| Mon | £1,700 | £1,800 |
| Tue | £1,850 | £1,950 |
| Wed | £1,750 | £1,690 |
| Mon to Wed | £5,300 | £5,440 |
| Whole week | £12,600 | £5,440 so far |
- Sales WoW % compares £5,440 with the full £12,600: -56.8%, which looks alarming but only reflects the missing days.
- Sales WoW % (complete weeks) shows blank for 2026-W45.
- Sales WoW % (same days) compares £5,440 with £5,300: +2.6%, which is the honest answer so far.
Format the results
- Measures: select the measure and, on the Measure tools ribbon, set the format to Percentage with one decimal place for the WoW % measures and Currency for the others.
- Plus and minus signs: choose Custom and use a format string with a positive, negative and zero section, such as
+0.0%;-0.0%;0.0%for percentages or+£#,0;-£#,0;£0for amounts. The value stays a number, so it still sorts and charts properly. AvoidFORMAT()in the measure, because it turns the result into text. - Visual calculations: in the edit screen, set the format in the General section of the format pane under Data format, or give a custom format string. Dynamic format strings aren’t supported for visual calculations.
- Colour: use conditional formatting on the WoW % column (green for up, red for down). The variance measures guide has the arrow format strings and colour rules.
Wherever you show a WoW %, show the two weeks’ values too, or at least make the comparison clear in the title. A +44% after a holiday week means something different from a +44% in a normal one.
Common mistakes
- Mixing week systems. WEEKNUM’s default return type starts weeks on Sunday and numbers week 1 as the week containing 1 January. If your business uses ISO weeks, use return type 21 everywhere.
- Combining calendar year with ISO week. Use an ISO Year column, or the last days of December land in the wrong year.
- Subtracting 1 from the week number. It breaks in week 1. Use a week index that doesn’t restart each year.
- Leaving out REMOVEFILTERS. The first week of each year shows blank when the visual filters ISO Year.
- Comparing a part week with a full week. Hide incomplete weeks or compare the same days.
- Using a visual calculation when weeks can be missing. PREVIOUS jumps over empty weeks. Use a measure instead.
- Sorting the week label as text without a sort column. Labels like “W1, W10, W2” sort out of order. Pad to two digits and sort by Week Index.
- Ending the date table mid-week. The last week looks short. End it on a Sunday.
- Order dates with a time. If
Sales[Order Date]includes a time, it won’t match the date table. Change its data type to Date in Power Query.
FAQ
Can I calculate week over week in Power BI without DAX?
Almost. A visual calculation is still a DAX formula, but a very short one, such as [Sales] - PREVIOUS ( [Sales] ), and the Versus previous template writes it for you. You don’t need to change the model or understand filter context to use it.
Are visual calculations still in preview?
No. Microsoft’s documentation no longer labels them as preview, and current versions of Power BI Desktop don’t need a preview setting turned on. If you can’t see New visual calculation on the Home ribbon, select a visual first, then check that Desktop is up to date.
How do I get ISO week numbers in Power BI?
Use WEEKNUM ( 'Date'[Date], 21 ) for the week and YEAR ( 'Date'[Date] - WEEKDAY ( 'Date'[Date], 2 ) + 4 ) for the ISO year. In Power Query, Date.WeekOfYear isn’t ISO-based, so calculate ISO weeks with DAX or bring them from your data source.
Why is my WoW % blank for the first week?
There’s no earlier week to compare with, either in the visual (visual calculations) or in the date table and data (measures). DIVIDE returns blank rather than an error, which is the behaviour you want.
How do I compare with the same week last year?
Filter to the same ISO Week in the previous ISO Year rather than shifting by 52 weeks:
Sales Same Week LY =
VAR CurrentYear = MAX ( 'Date'[ISO Year] )
VAR CurrentWeek = MAX ( 'Date'[ISO Week] )
RETURN
IF (
HASONEVALUE ( 'Date'[Week Index] ),
CALCULATE (
[Sales],
REMOVEFILTERS ( 'Date' ),
'Date'[ISO Year] = CurrentYear - 1,
'Date'[ISO Week] = CurrentWeek
)
)
Week 53 has no match in a 52-week year, so decide how you want to show it (blank, or compare with week 52).
Can I use DATEADD with WEEK?
Only with calendar-based time intelligence, which is in preview. With an ordinary date column, use DATEADD ( 'Date'[Date], -7, DAY ).
To build reliable week, month and year comparisons with confidence, join our live Power BI Advanced course, or browse all our Power BI training courses. For a wider look at visual calculations, see our Power BI visual calculations tricks.
More DAX guides: see DAX functions in Power BI, all our guides by topic.


