Strange date relationships with #PowerPivot

Posted by Marco Russo (SQLBI) on SQL Blog See other posts from SQL Blog or by Marco Russo (SQLBI)
Published on Tue, 14 Jun 2011 12:28:18 GMT Indexed on 2011/06/20 16:33 UTC
Read the original article Hit count: 292

Filed under:
A reader of my PowerPivot book highlighted a strange behavior of the relationship between a datetime column and a Calendar table. Long story short: it seems that PowerPivot automatically round the date to the “neareast day”, but instead of simply removing the time (truncating the decimal part of the decimal number internally used to represent a datetime value) a rounding function seems used, moving the date to the next day if the time part contain a PM time. As you can imagine, this becomes particularly...(read more)

© SQL Blog or respective owner

Related posts about PowerPivot