Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
TeodoraBurlica
Partner - Contributor III
Partner - Contributor III

Master Calendar

Hello,

I have a table that looks like this:

WORKORDER,

START DATE,

END DATE,

WEEKDAY.

I want to create a master calendar with dates between min(START DATE) and Now() and link the table through WEEKDAY only which has the days of the week (1-7).

Thank you

Labels (2)
2 Replies
Mark_Little
Luminary
Luminary

Hi, 

I may be miss understanding the use case here. The creation of the calendar would not be to bad, but linking it back to the weekday field in the fact field will mean it would link all the 1 to the first day of every week.

Would advise either linking to the Start date field or using canonical calendar and link table and recreating you week day field within the calendar table.

TeodoraBurlica
Partner - Contributor III
Partner - Contributor III
Author

I need the method I proposed because I have the same workorder/StartDate and EndDate every day. For example:
Every Monday I have these dates:
Workorder: 1234
StartDate: 10.10.2023
EndDate: 11.10.2024


Every Tuesday I have this data:

Workorder: 1235
StartDate: 12.10.2023
EndDate: 11.10.2024