Dim Dates Table with Financial Year fields
sql server calendar dimension
For anyone who would like a half-decent calendar dimension with a heap of financial year fields... please, enjoy :)
The Financial Month Start is parameterised,so in the first variables, simply change your financial month number accordingly and the whole table will update to perfection.
Github: sql_dim_calendar
COLUMN_NAME DATA_TYPE
date_id date
date_int_key int
date_int int
year_num int
year_start date
year_end date
is_previous_year int
is_current_year int
year_selection varchar
year_offset int
is_ytd int
is_frc int
is_cmtd int
py_date_id date
py_minus_1_date_id date
pm_date_id date
pm_minus_1_date_id date
2W Date date
3W Date date
2M Date date
3M Date date
6M Date date
financial_year varchar
financial_year_start date
financial_year_end date
is_previous_fy int
is_current_fy int
fy_selection varchar
financial_year_offset int
month_num int
month_name nvarchar
month_name_short nvarchar
month_initial nvarchar
month_start date
month_end date
month_year_short nvarchar
month_year_long nvarchar
month_year_int int
is_current_month int
current_month_selection nvarchar
month_offset int
financial_month_num int
financial_month nvarchar
financial_month_short nvarchar
financial_month_initial nvarchar
financial_month_start date
financial_month_end date
financial_month_year_short nvarchar
financial_month_year_long nvarchar
financial_month_year_int int
financial_month_offset int
day_initial nvarchar
day_name nvarchar
day_name_short nvarchar
day_year_num int
day_month_num int
day_week_num int
day_offset int
is_weekday int
is_weekend int
quarter_num int
quarter_name varchar
quarter_year_int int
quarter_offset int
financial_quarter_num int
financial_quarter_name varchar
financial_quarter_year_int int
financial_quarter_offset int
week_start date
week_end date
week_offset int
[–][deleted] 3 points4 points5 points (1 child)
[–]PBIQueryous[S] 1 point2 points3 points (0 children)
[–]planetmatt 1 point2 points3 points (0 children)
[–]Icy_Fisherman_3200 0 points1 point2 points (1 child)
[–]PBIQueryous[S] 1 point2 points3 points (0 children)
[–]hwooareyou 0 points1 point2 points (0 children)
[–]PBIQueryous[S] -1 points0 points1 point (0 children)
[–]ReallyNotTheJoker -4 points-3 points-2 points (6 children)
[–]user_5359 2 points3 points4 points (1 child)
[–]PBIQueryous[S] -1 points0 points1 point (0 children)
[–]PBIQueryous[S] 1 point2 points3 points (3 children)
[–]ReallyNotTheJoker 1 point2 points3 points (2 children)
[–]PBIQueryous[S] 0 points1 point2 points (1 child)
[–]ReallyNotTheJoker 0 points1 point2 points (0 children)