Forum Discussion

likensj's avatar
likensj
Frequent Visitor
10 years ago
Solved

Issue with Day Of Week not calculating correctly

Probably a newby questions-But since I am a newby that is ok, her goes.   I have created a Date table and created a relationship with a "Date Requested Field", This field contains date and time and...
  • Greg_Deckler's avatar
    10 years ago

    I am guessing that you have your "Date Requested Field" linked to your "Date/Time" field in your Date table and your Date table is the date with the time of 12:00:00 AM.

     

    Generally, the way to fix this is that in your fact table with "Date Requested Field", create a new column like:

    FORMAT([Date],"mm/dd/yyyy 12:00:00") 

    And then use that to relate the two tables. Basically, you need a key between the tables so that there is always a match in your Date table. Lots of different ways to go about it, but that's what is going wrong.