Home Forums Power Pivot Date Tables: Something Special in their Range

This topic contains 1 reply, has 2 voices, and was last updated by  ColinBurrows 6 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7964

    Dan Bliss
    Participant
    • Started: 1
    • Replies: 1
    • Total: 2

    I’ve discovered something special about how Dax/Power Pivot handles date tables:

    To get some time intelligence, I created a date table called Dates2017 and loaded into Data Model (Power Pivot). Initially it had just 1 column, called [Dates] with a range starting Jan 1, 2017 through Dec 31, 2017:

    1/1/2017
    1/2/2017
    .
    .
    12/31/2017

    If I add a Calculated Column to Dates2017, calling it [Days30Prior] = DATEADD(Dates2017[Date],-30,DAY), the first 30 days show blank. The first date to evaluate [Days30Prior] is where [Dates] = 1/31/2017.

    This is interesting behavior. It suggests that one of the ways in which a date table is different is in the range of allowed transformations.

    Anyone care to elaborate or expand or correct me on this?
    Greatly appreciated,
    Dan Bliss

    #7965

    ColinBurrows
    Participant
    • Started: 4
    • Replies: 3
    • Total: 7

    I’m fairly new to this, but from what I’d read that’s actually how I would have expected it to behave.

    When you mark it as a Date Table, I think you’re kind of defining the range of valid dates.

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘Power Pivot’ is closed to new topics and replies.