my report runs on the 20th of the month but I need it to pull the last months data how would that formula look like?
You haven't given much information here, but I'll do my best to help.
Say you are using a TRANSACTION_DATE to drive the date dimension in your report...
And assuming your report is running on the 20th of every month...
If that report were to run on November 20th, 2017, you could use the following filter on your report:
Where TRANSACTION_DATE = TIMESTAMPADD(SQL_TSI_MONTH, -1, current_date)
To explain a little more --
"TIMESTAMPADD(SQL_TSI_MONTH, -1, current_date)" will always return the date 1 month previous to today's date. So if run it on 11/20/2017, it will return 10/20/2017.
I hope this helps.
Months: 4 weeks running? 30 days running? last calendar month? last fiscal month?
It will be really nice if you can post an example of your requirement.
@Chris, As far as I understand, your solution will fetch the records for that particular date only.
Instead, we can extract the month and Year using TIMESTAMP function to get the previous month using the SYSDATE.
As the OP doesn't really formulate in question in a way to give him a unique answer, all the above are valid answers. It all depends on the granularity of the OP data and what model he adopted (even monthly figures can be attached to a single day which can be the first of the month, the last etc.).
Chris Arnold pointed the OP in the right direction on the function solving most of his problem, of course the OP now need to put some effort in thinking at how to use the TIMESTAMPADD function correctly for his needs.
Description: Join our Product Management team to learn about new features that are part of 26.R3 Application release of Fusion Data Intelligence (SCM). The session will cover updates on Supply Chain Management and Procurement. Presented by: Anil Sebastian - Senior Director, SCM Product Management, Fusion Data Intelligence…
So when I click the apply button, it uses the value . Also. How do I stop the auto populate table when the report opens???? I am in OAC
Good day, please kindly assist. We are creating a graph to calculate the number of assets per milestones. However, the planners have only populated assets for only one milestone from the list of milestones the customer wants to track. Which gives an incorrect view as the project moves past different milestones that it has…
I scheduled the report in OTBI and the agent was run successfully. However, I do not receive the report after the run in my inbox. The addresses are properly recorded, and the report is in an excel format and saved as a pivot table in otbi. What can be the cause?
Anyone has any idea why the OAC documentation on custom viz is not available now? I was able to access till last week - https://docs.oracle.com/en/cloud/paas/analytics-cloud/acsdv/build-package-extension.html. Does this mean OAC doesnt support custom viz or custom workbook extensions?
I made a parameter with letter range values… put it into a dashboard filter. Then I created an expression filter to bind it to my last name column in the table with the image I uploaded here. I am getting the following error??? Invalid Expression. Validation of parameter values failed. A general error has occurred. Message…