Power BI models can represent missing dates with a labeled dummy row and use calendar-based time intelligence to keep that row from producing misleading results. This approach matters to modelers and report authors whose fact tables include dates that are legitimately blank, such as delivery dates for orders that have not shipped. SQLBI demonstrates the modeling and DAX steps in a YouTube video.
A blank date in a fact table can lead Power BI to create a blank row on the related Date table. That row lets fact records with no matching date remain visible in report totals and groupings. It is not necessarily evidence of bad data: a blank delivery date can simply mean that an order has not shipped yet.
The challenge is presentation and calculation. An automatically generated blank member may appear as “(Blank)” in a slicer, while a conventional Date table cannot use a blank in its date column as a normal key. Classic time-intelligence functions also expect a conventional date-column setup. The demonstrated alternative gives the missing-date row explicit labels and connects tables through an integer key instead.
That design separates the relationship key from the date used to describe calendar periods. It allows the Date column on the special row to remain blank, while text attributes such as Year or Month can display “N/A.” Calendar-based time intelligence supplies the period structure, but measures still need to handle the dummy row deliberately.
This pattern is for Power BI semantic-model authors working with fact tables that have meaningful missing dates, such as undelivered orders. It is particularly relevant when users need a descriptive category for missing dates rather than a generic blank in visuals. Readers working with Power BI models and reports should consider whether this level of date modeling fits their report requirements.
The design requires a Date dimension with an integer DateKey, plus corresponding integer keys in fact tables for each date relationship. In the example, the missing delivery date is represented by the key -1, and the Date table has a matching row with a blank Date. The example also replaces the Order Date relationship with an OrderDateKey relationship, because Date is no longer the primary key.
Calendar-based time intelligence is the other prerequisite for this design. The example does not mark its customized Date table as a conventional Date table; instead, it defines a calendar with period columns and categories. Classic time intelligence and the dummy-date design are not interchangeable: the demonstrated model uses calendar-based functions.
Start by adding an explicit row for the missing date to the Date dimension. Leave its Date and numeric period values blank, and assign readable labels such as “N/A” to text attributes. Then create an integer key for each date row, reserving -1 for the dummy row. In the fact table, use that key for missing dates instead of leaving the relationship key blank.
The example’s Delivery Amount measure activates the relationship between Sales[DeliveryDateKey] and Date[DateKey] with USERELATIONSHIP. For a previous-year result, it combines that measure with DATEADD and the nonblank-date filters. The two filters matter because changing the sort order of “N/A” can change which calendar period DATEADD treats as adjacent.
To avoid repeating the same protection pattern, the demonstration creates a reusable function named ProtectFromDummyDate. It accepts the expression to calculate and the filter expression, then nests CALCULATE operations with the blank-date filters. A measure can call the function with its base measure and a calendar-based DATEADD expression.
This is a modeling choice, not a universal replacement for the automatic blank row. It adds keys and requires consistent changes across date relationships, calendar configuration, and affected measures. A report that only needs to show missing dates as blank may not need a custom “N/A” member; the extra control is useful when a distinct label is part of the desired user experience.
Calendar-based calculations need explicit protection from the dummy row. Without filters on both the source and target sides of a time shift, a missing-date category can be treated as a period before or after a real year, depending on its sort order. The example’s reusable function addresses repeated measure logic, but authors still need to identify which calculations should exclude the dummy row.
The alternative described for ordinary dimensions is to replace an unmatched value with a sentinel key and add a matching descriptive row. Date columns are different because every numeric date value represents a date, and classic time intelligence relies on the date-column setup. The integer-key and calendar-based approach is intended for cases where a deliberately labeled blank date is needed.
A blank date in a fact table can create a blank row on the related Date table. That row keeps fact records without a matching date visible in groupings and aggregations.
Use an integer DateKey for relationships, reserve a key such as -1 for missing dates, and add a matching Date-table row with a blank Date and labels such as “N/A.”
Filter out blank Date values at both the source and result of the time shift, using KEEPFILTERS with NOT ISBLANK('Date'[Date]).
The demonstrated design uses calendar-based time intelligence instead. It does not mark the customized Date table as a conventional Date table, and it uses integer keys for relationships.