Forum Discussion
djreyes
Helper I
3 years agoFiscal year
Hello, Fiscal year starts April, I tried the formula below but I am getting an error message: Column 2 = if(QUARTER(PowerBi[Document Date].[Quarter])>=2,QUARTER(PowerBi[Document Date].[Quarter]...
- 3 years ago
The QUARTER function expects a date, but you're passing in the quarter from the date hierarchy. Try
Column 2 = IF ( QUARTER ( PowerBi[Document Date].[Date] ) >= 2, QUARTER ( PowerBi[Document Date].[Date] ) - 1, QUARTER ( PowerBi[Document Date].[Date] ) + 1 ) - 3 years ago
Yep, that should give the right result I think
djreyes
Helper I
3 years agoStill 1, I changed the value to 3 and the result is 4, is that an option?
Column 2 =
IF (
QUARTER ( PowerBi[Document Date].[Date] ) >= 2,
QUARTER ( PowerBi[Document Date].[Date] ) - 1,
QUARTER ( PowerBi[Document Date].[Date] ) + 3
)
johnt75
Super User
3 years agoYep, that should give the right result I think