Categories
- All Categories
- 89 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14.1K Oracle Analytics Forums
- 5.3K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 51 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations Gallery
- 2 Oracle Analytics Data Visualizations Challenge
- 4 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
Unable to use filter by parameter selected year - 1
I have created parameter using date - year.
Trying to create below calculation to put it as parameter for one of the table for previous year. E.g. when choosing 2024, the table will then be filter by 2023 and so on. However, error is prompt. Could any expert help? Thank you.
Answers
-
Hi,
In your "Previous Year" calculation, what are you trying to get as value?
Currently, if your formula would validate, your "Previous Year" calculation would only have a TRUE or FALSE value, because the calculation expression is a logical operation.
Shouldn't your "Previous Year" calculation be just the
@parameter("…")(2024) - 1
? So the calculation will have a value being a number, and you can then use it to filter a column by it etc.0 -
Actually I believe you also have an error in the formula you used:
EXTRACTYEAR returns a timestamp for January 1st for the year in which the input value occurs.
That's not what you want, you want just the year, as a number (and not a timestamp), for your date: you should use the YEAR(<date>) function instead.
0 -
Hi Gianni
Thanks for prompt reply.
What I am trying to retrieve is
There are 4 purchase order records:
#1 PO Date=2024/11/1; Price=$100; Supplier=ABC
#2 PO Date=2024/12/1; Price=$90; Supplier=XYX
#3 PO Date=2023/11/1; Price=$60; Supplier=ABC
#4 PO Date=2023/12/1; Price=$70; Supplier=XYXI would like to have dashboard to find out the latest and last year latest price.
So I have created dashboard filter using PO Creation Date - Year to allow user to choose which year they would like to see.
I don't have the issue for the latest price of the selected Year. The Price will be changed based on why user select in the parameter.
However, for last year latest record. The filtering is not work as expected. What ever I choose, the filter just ignore it. In the filter, i just use parameter (…) - 1.
0 -
This new filter has limitations. It works only for list filters.
May be that is the reason for error.
You can refer below thread.
1