THE SQL Server Blog Spot on the Web

Welcome to - The SQL Server blog spot on the web Sign in | |
in Search

SQLBI - Marco Russo

Please visit the same blog at - comments are now disabled here but you can comment on the new blog (all blog posts available here are available there, too).
You can follow me on Twitter: @marcorus

Handling Wrong or Missing Dates in Tabular and #powerpivot #dax

Recently I received a request from a reader related to the handling of missing or invalid dates in Tabular (but the same can be applied to Power Pivot). In the Analysis Services Tabular book, we wrote that you can insert a special row in the Date table with an ID that can be used to map all the rows in the fact table that don’t have a valid date. Unfortunately, using NULL in the Date column is not compatible with the “Mark as Date Table” feature of the data model, which is necessary for Time Intelligence functions in DAX. The alternative is between using a special date (such as January 1, 1900) or removing the row at all from the Tabular / Power Pivot data model.

I described this last approach in my article Handling Wrong or Missing Dates in Tabular on SQLBI web site.
What is your favorite approach? Comments are welcome!

Published Tuesday, September 24, 2013 3:36 PM by Marco Russo (SQLBI)


No Comments
New Comments to this post are disabled

About Marco Russo (SQLBI)

Marco Russo is a consultant, writer and trainer specialized in Business Intelligence with Microsoft technologies. He runs the SQLBI.COM website, which is dedicated to distribute resources useful for BI developers, like Integration Services components, Analysis Services models, tools, technical information and so on. Marco is certified as MCT, MCDBA, MCSD.NET, MCSA, MCSE+I.

This Blog



Privacy Statement