Am looking into building a filter to dynamically calculate current fiscal month using custom expressions (apply simple). I have some code that returns the current fiscal month using (sysdate -1), just not sure how to build it into a filter. Any ideas? Here's the code I have (Oracle):
select
trunc(sysdate) CURRENT_DAY_DT,
days.day_dt BUSINESS_DAY_DT,
days.fiscal_mo,
months.FISCAL_MO_NAME,
months.FISCAL_YR,
months.FISCAL_MO_NBR
from days, months
where day_dt = trunc(sysdate-1)
and days.fiscal_mo = months.fiscal_mo;
Thanks!
select
trunc(sysdate) CURRENT_DAY_DT,
days.day_dt BUSINESS_DAY_DT,
days.fiscal_mo,
months.FISCAL_MO_NAME,
months.FISCAL_YR,
months.FISCAL_MO_NBR
from days, months
where day_dt = trunc(sysdate-1)
and days.fiscal_mo = months.fiscal_mo;
Thanks!