Hi everyone, I’d like to know if there’s any way to set the Default Value of a Parameters date field to automatically get the first and last day of the previous month, or if there are any alternative solutions.
Hi @Gavi,
You can achieve last day of previous month by using the following function in the default value:
Last day of the previous month: {$FIRST_DAY_OF_MONTH()-1$}
The First Day of Previous Month functions are not supported in the BI Default Date parameters.
Here is a workaround:
Create an LOV:
SELECT ADD_MONTHS((LAST_DAY(SYSDATE)+1),-2) FROM DUAL
Now create a Menu parameter based on the above LOV.
Hope this help.
Thank you.
Welcome to the Oracle Analytics Community!
Please use the following as default values, it should work.
First Day of Month: {$FIRST_DAY_OF_MONTH()$} Last Day of Month: {$LAST_DAY_OF_MONTH()$}
Hi Bhaskar, Thanks for your reply.
I tested {$FIRST_DAY_OF_MONTH()$} and {$LAST_DAY_OF_MONTH()$}, but they give the first and last day of the current month. What I actually need is the first and last day of the previous month.
{$FIRST_DAY_OF_MONTH()$}
{$LAST_DAY_OF_MONTH()$}
Is there a way to shift these functions by -1 month, so the parameter defaults to last month’s range instead of this month’s?
Thank you again for the help!
Hello, Starting with the OAC September 2026 update, you’ll notice some changes to the Workbook authoring experience. The Data, Visualize, and Present tabs will no longer be displayed at the top of the Workbook. Here’s how you can navigate between these experiences going forward. Presenting and configuring a presentation…
Learn how Fusion Data Intelligence supports customization and extensibility across content, data, semantic modeling, and security. This session explains why customers extend FDI, how the FDI architecture enables governed customization, and how to choose among OAC self-service, Data Augmentation, Semantic Model Extensions,…
Hello, I'm trying my hand at creating some KPI's and Dashboard Visualizations for the Recruiting Activity Center (RAC) per the following documentation: Flexible Reporting in Redwood Dashboards Redwood Experience: Recruiting Dashboard When I add a session variable to my OTBI reports, I correctly see a value of 0 in my…
'Facility Name' exists in the Recruiting - Recruiting Real Time multiple times with varying usage. Job Requistion -> Job Requisition - Additional Details -> Facility Name Job Requistion -> Location -> Facility Name Is there any reason why these two Facility Names would not exist in the Recruiting - Real Time Events subject…
we have a requirement to fetch Worker Historic information like Current Job Title Previous Job Title Previous Department New Department Previous Manager New Manager Previous Location New Location which subject area stores this information in the OTBI?