Forum Discussion
Fiscal Period Calculations
- Anonymous3 years ago
Hi Anonymous ,
I updated my sample pbix file(see the attachment), please check if that is what you want.
Current Fiscal Year (Yes/No) = VAR _year = YEAR ( TODAY () ) VAR _month = MONTH ( TODAY () ) VAR _fyear = 'Table'[FISCAL_YEAR] RETURN IF ( ( _month = 1 && _year = _fyear) || ( _month > 1 && _year + 1 = _fyear ), TRUE (), FALSE () )Current Fiscal Quarter (Yes/No) = VAR _month = MONTH ( TODAY () ) VAR _fyear = 'Table'[FISCAL_YEAR] VAR _fquarter = 'Table'[FISCAL_QUARTER] RETURN IF ( ( _month = 1 && 'Table'[FISCAL_QUARTER] = 4 ) || ( _month > 1 && QUARTER ( EOMONTH ( TODAY (), -1 ) ) = 'Table'[FISCAL_QUARTER] ), TRUE (), FALSE () )Best Regards
Hi,
Thanks for the response.
I actually want 2 different columns for Current Fiscal year and Fiscal Quarter.
Column 1 : Current Fiscal Year (Yes/No)
Column 2 : Current Quarter (Yes/No)
- Anonymous3 years agoNot applicable
Hi Anonymous ,
I updated my sample pbix file(see the attachment), please check if that is what you want.
Current Fiscal Year (Yes/No) = VAR _year = YEAR ( TODAY () ) VAR _month = MONTH ( TODAY () ) VAR _fyear = 'Table'[FISCAL_YEAR] RETURN IF ( ( _month = 1 && _year = _fyear) || ( _month > 1 && _year + 1 = _fyear ), TRUE (), FALSE () )Current Fiscal Quarter (Yes/No) = VAR _month = MONTH ( TODAY () ) VAR _fyear = 'Table'[FISCAL_YEAR] VAR _fquarter = 'Table'[FISCAL_QUARTER] RETURN IF ( ( _month = 1 && 'Table'[FISCAL_QUARTER] = 4 ) || ( _month > 1 && QUARTER ( EOMONTH ( TODAY (), -1 ) ) = 'Table'[FISCAL_QUARTER] ), TRUE (), FALSE () )Best Regards
- Anonymous3 years agoNot applicable
Calculations are working perfectly for current fiscal year and quarter.
Just wanted to know if i'll have to change anything in the calculation for next fiscal quarter as both fiscal quarter and fiscal year will change? from 1st Feb it'll be Fiscal year = 2024 and Quarter = 1 for me
- Anonymous3 years agoNot applicable
Hi Anonymous ,
The formula used the function TODAY(), it will return the current date which you check the report. For example, if you check the report on Feb 1, 2023, the function TODAY() will return the date Feb 1, 2023. And yes, the fiscal year will be 2024 and quarter will be 1... It is not required to change anything for the formula....
Best Regards