Hi all,
I am running this SQL in SQL Developer and it gets the results as I expected. I want to generate the same thing in OBIEE column formula 12c Version which returns the value in Financial Quarter. All I am trying to display the number of financial quarters to date in financial year.
Select
Case when trunc(sysdate) between ('01-JUL-2018') and ('30-SEP-2018') then 'Financial Quarter: 1'
Else
Case when trunc(sysdate) between ('01-OCT-2018') and ('31-DEC-2018') then 'Financial Quarter: 1 - 2'
Else
Case when trunc(sysdate) between ('01-JAN-2019') and ('31-MAR-2019') then 'Financial Quarter: 1 - 3'
Else
Case when trunc(sysdate) between ('01-APR-2019') and ('30-JUN-2019') then 'Financial Quarter 1 - 4'
END
END
END
END AS FIN_QTR from Dual;
OBIEE Column formula:
Case when Current_date between ('01-JUL-2018') and ('30-SEP-2018') then 'Financial Quarter: 1'
Else
Case when Current_date between ('01-OCT-2018') and ('31-DEC-2018') then 'Financial Quarter: 1 - 2'
Else
Case when Current_date between ('01-JAN-2019') and ('31-MAR-2019') then 'Financial Quarter: 1 - 3'
Else
Case when Current_date between ('01-APR-2019') and ('30-JUN-2019') then 'Financial Quarter 1 - 4'
END
END
END
END
Thanks in advance.
Omar