Skip to content

Commit

Permalink
Merge pull request #27 from sql-bi/split-fiscal-templates
Browse files Browse the repository at this point in the history
Split templates in gregorian and fiscal versions
  • Loading branch information
marcosqlbi authored Sep 8, 2022
2 parents 9082e18 + 02665e9 commit 74f9e8e
Show file tree
Hide file tree
Showing 30 changed files with 8,927 additions and 3,558 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"LastYearMax": null,
"AutoScan": "Full",
"DefaultVariables": {
"__FirstFiscalMonth": "4",
"__FirstDayOfWeek": "0"
},
"IsoCountry": "US",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"Description": "Standard fiscal calendar with holidays and standard fiscal time intelligence",
"Templates": [
{
"Class": "HolidaysDefinitionTable",
"Table": "HolidaysDefinition",
"Template": "HolidaysDefinition.json",
"IsHidden": true
},
{
"Class": "HolidaysTable",
"Table": "Holidays",
"Template": null,
"IsHidden": true
},
{
"Class": "CustomDateTable",
"Table": "Date",
"ReferenceTable": "DateAutoTemplate",
"Template": "DateTemplate-02.json",
"LocalizationFiles": [
]
},
{
"Class": "MeasuresTemplate",
"Table": null,
"Template": "TimeIntelligence-02.json",
"Properties": {
"__DisplayFolderRule": "Time intelligence\\@_MEASURE_@\\@_TEMPLATEFOLDER_@",
"_DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_TEMPLATE_@",
"___DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_MEASURE_@",
"DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_MEASUREFOLDER_@\\@_MEASURE_@",
"DisplayFolderRuleSingleInstanceMeasures": "Hidden Time Intelligence"
},
"_comment": "TargetMeasures can override the default setting"
}
],
"IsoTranslation": "en-US",
"IsoFormat": "en-US",
"LocalizationFiles": [
"DateLocalization-02.json"
],
"OnlyTablesColumns": [
"Sales",
"Orders"
],
"ExceptTablesColumns": [],
"FirstYearMin": null,
"FirstYearMax": null,
"LastYearMin": null,
"LastYearMax": null,
"AutoScan": "Full",
"DefaultVariables": {
"__FirstFiscalMonth": "7",
"__FirstDayOfWeek": "0"
},
"IsoCountry": "US",
"InLieuOfPrefix": "(in lieu of ",
"InLieuOfSuffix": ")",
"WorkingDays": "{ 2, 3, 4, 5, 6 }",
"HolidaysDefinitionTable": "HolidaysDefinition",

"HolidaysReference": {
"TableName": "Holidays",
"DateColumnName": "Holiday Date",
"HolidayColumnName": "Holiday Name"
},
"TableSingleInstanceMeasures": "Sales",
"AutoNaming": "Prefix",
"TargetMeasures": [
{
"Name": "Sales Amount"
},
{
"Name": "Total Cost"
},
{
"Name": "Margin"
},
{
"Name": "Margin %"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"Class": "CustomDateTable",
"Table": "Date",
"ReferenceTable": "DateAutoTemplate",
"Template": "DateTemplate-02.json",
"Template": "DateTemplate-03.json",
"LocalizationFiles": [
]
},
{
"Class": "MeasuresTemplate",
"Table": null,
"Template": "TimeIntelligence-02.json",
"Template": "TimeIntelligence-03.json",
"Properties": {
"__DisplayFolderRule": "Time intelligence\\@_MEASURE_@\\@_TEMPLATEFOLDER_@",
"DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_TEMPLATE_@",
Expand All @@ -24,7 +24,7 @@
"IsoTranslation": "en-US",
"IsoFormat": "en-US",
"LocalizationFiles": [
"DateLocalization-02.json"
"DateLocalization-03.json"
],
"OnlyTablesColumns": [
"Sales",
Expand All @@ -37,7 +37,6 @@
"LastYearMax": null,
"AutoScan": "Full",
"DefaultVariables": {
"__FirstFiscalMonth": "4",
"__MonthsInYear": "12"
},
"IsoCountry": "US",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"Description": "Monthly fiscal calendar and monthly fiscal time intelligence",
"Templates": [
{
"Class": "CustomDateTable",
"Table": "Date",
"ReferenceTable": "DateAutoTemplate",
"Template": "DateTemplate-04.json",
"LocalizationFiles": [
]
},
{
"Class": "MeasuresTemplate",
"Table": null,
"Template": "TimeIntelligence-04.json",
"Properties": {
"__DisplayFolderRule": "Time intelligence\\@_MEASURE_@\\@_TEMPLATEFOLDER_@",
"DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_TEMPLATE_@",
"_DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_MEASURE_@"
},
"_comment": "TargetMeasures can override the default setting"
}
],
"IsoTranslation": "en-US",
"IsoFormat": "en-US",
"LocalizationFiles": [
"DateLocalization-04.json"
],
"OnlyTablesColumns": [
"Sales",
"Orders"
],
"ExceptTablesColumns": [],
"FirstYearMin": null,
"FirstYearMax": null,
"LastYearMin": null,
"LastYearMax": null,
"AutoScan": "Full",
"DefaultVariables": {
"__FirstFiscalMonth": "4",
"__MonthsInYear": "12"
},
"IsoCountry": "US",

"AutoNaming": "Prefix",
"TargetMeasures": [
{
"Name": "Sales Amount"
},
{
"Name": "Total Cost"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"Class": "CustomDateTable",
"Table": "Date",
"ReferenceTable": "DateAutoTemplate",
"Template": "DateTemplate-03.json",
"Template": "DateTemplate-05.json",
"LocalizationFiles": [
]
},
{
"Class": "MeasuresTemplate",
"Table": null,
"Template": "TimeIntelligence-03.json",
"Template": "TimeIntelligence-05.json",
"Properties": {
"DisplayFolderRule": "Time intelligence\\@_MEASURE_@\\@_TEMPLATEFOLDER_@",
"_DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_TEMPLATE_@",
Expand All @@ -36,7 +36,7 @@
"IsoTranslation": "en-US",
"IsoFormat": "en-US",
"LocalizationFiles": [
"DateLocalization-03.json"
"DateLocalization-05.json"
],
"OnlyTablesColumns": [
"Sales",
Expand All @@ -49,7 +49,6 @@
"LastYearMax": null,
"AutoScan": "Full",
"DefaultVariables": {
"__FirstFiscalMonth": "4",
"__FirstDayOfWeek": "0"
},
"IsoCountry": "US",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"Description": "Custom fiscal calendar based on months with custom time intelligence",
"Templates": [
{
"Class": "HolidaysDefinitionTable",
"Table": "HolidaysDefinition",
"Template": "HolidaysDefinition.json",
"IsHidden": true
},
{
"Class": "HolidaysTable",
"Table": "Holidays",
"Template": null,
"IsHidden": true
},
{
"Class": "CustomDateTable",
"Table": "Date",
"ReferenceTable": "DateAutoTemplate",
"Template": "DateTemplate-06.json",
"LocalizationFiles": [
]
},
{
"Class": "MeasuresTemplate",
"Table": null,
"Template": "TimeIntelligence-06.json",
"Properties": {
"DisplayFolderRule": "Time intelligence\\@_MEASURE_@\\@_TEMPLATEFOLDER_@",
"_DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_TEMPLATE_@",
"__DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_MEASURE_@"
},
"_comment": "TargetMeasures can override the default setting"
}
],
"IsoTranslation": "en-US",
"IsoFormat": "en-US",
"LocalizationFiles": [
"DateLocalization-06.json"
],
"OnlyTablesColumns": [
"Sales",
"Orders"
],
"ExceptTablesColumns": [],
"FirstYearMin": null,
"FirstYearMax": null,
"LastYearMin": null,
"LastYearMax": null,
"AutoScan": "Full",
"DefaultVariables": {
"__FirstFiscalMonth": "4",
"__FirstDayOfWeek": "0"
},
"IsoCountry": "US",
"InLieuOfPrefix": "(in lieu of ",
"InLieuOfSuffix": ")",
"WorkingDays": "{ 2, 3, 4, 5, 6 }",
"HolidaysDefinitionTable": "HolidaysDefinition",

"HolidaysReference": {
"TableName": "Holidays",
"DateColumnName": "Holiday Date",
"HolidayColumnName": "Holiday Name"
},
"AutoNaming": "Prefix",
"TargetMeasures": [
{
"Name": "Sales Amount"
},
{
"Name": "Total Cost"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"Class": "CustomDateTable",
"Table": "Date",
"ReferenceTable": "DateAutoTemplate",
"Template": "DateTemplate-04.json",
"Template": "DateTemplate-07.json",
"LocalizationFiles": [
"DateLocalization-04.json"
"DateLocalization-07.json"
]
},
{
"Class": "MeasuresTemplate",
"Table": null,
"Template": "TimeIntelligence-04.json",
"Template": "TimeIntelligence-07.json",
"Properties": {
"__DisplayFolderRule": "Time intelligence\\@_MEASURE_@\\@_TEMPLATEFOLDER_@",
"_DisplayFolderRule": "Time intelligence\\@_TEMPLATEFOLDER_@\\@_TEMPLATE_@",
Expand All @@ -46,7 +46,7 @@
"IsoTranslation": "en-US",
"IsoFormat": "en-US",
"LocalizationFiles": [
"DateLocalization-04.json"
"DateLocalization-07.json"
],
"OnlyTablesColumns": [
"Sales",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"Class": "CustomDateTable",
"Table": "Date",
"ReferenceTable": "DateAutoTemplate",
"Template": "DateTemplate-05.json",
"Template": "DateTemplate-95.json",
"LocalizationFiles": [
]
},
Expand Down
Loading

0 comments on commit 74f9e8e

Please sign in to comment.