-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from sql-bi/split-fiscal-templates
Split templates in gregorian and fiscal versions
- Loading branch information
Showing
30 changed files
with
8,927 additions
and
3,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
src/Dax.Template.TestUI/Templates/Config-02 - Standard Fiscal.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/Dax.Template.TestUI/Templates/Config-04 - Monthly Fiscal.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
src/Dax.Template.TestUI/Templates/Config-06 - Custom Fiscal.template.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.