M code for date and time dimension table

Hi @chrisgreenslade,

There are requirements to a Date table so what you are proposing will never be a proper Date/Time dimension… That said, you can find examples in the M showcase category for both.

This topic includes a list of requirements for Date table.

.
And here is M code for a Time table, that you can adjust to your needs.

.
And here’s a topic you might also find intresting, although it’s a totally different scenario.

1 Like