Work with Custom Fiscal Year Data
Analytics supports custom fiscal year data by generating new fields that describe the custom fiscal year. Each of these new fields is named with the _Fiscal suffix. By working with these fields, SAQL supports custom fiscal year data.
Make sure that a dataset’s dataflow has run after inheriting custom fiscal years and before writing SAQL based on custom fiscal year data.
Each of the queries in the examples is based off the following dataset. These examples presume that Analytics inherited custom fiscal years that begin on February 1 and end on January 31. Custom fiscal years are defined from 2017 until 2022.
Opportunity Name | Created Date | Amount |
---|---|---|
Widgets | 2/15/2017 | 100 |
Widgets | 1/25/2018 | 200 |
Widgets | 3/30/2018 | 100 |
Widgets | 3/30/2019 | 100 |
Widgets | 3/30/2020 | 100 |
Widgets | 3/30/2021 | 100 |
Widgets | 3/30/2022 | 100 |