Forum Discussion

webportal's avatar
webportal
Impactful Individual
4 years ago
Solved

How to create a calendar table with second granularity?

I've built a calendar table using Power Query for the whole year of 2022 using second granularity.   Basically, by "cross joining" a calendar table with day granularity (365 rows) with a time table...
  • Anonymous's avatar
    Anonymous
    4 years ago

    In the Transaction table does the column you're creating the relationship on have timestamps as well?  If not then you won't get any matches because the Dates aren't lining up to the Timestamps.

    Generally speaking in data modeling we keep our Dates and Times separate.  First, it cuts down on data volumes (only 86400 rows in the Time table and 365/366 rows per year in the Date table). 
    I would try that - separate your Date and Time dimension tables and separate your Dates and Times in the transaction table.  Still gives you the capability to drill-down to the second level without super-sizing your model.