Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 14 Oracle Analytics Lounge
- 214 Oracle Analytics News
- 42 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Calculated column with interval between start and end dates selected in prompt

Summary:
When i select the start and end dates in a prompt, i want to have a calculated column that shows the interval between the start and end dates, i want to use this calculated interval for another calculation. Any idea, how i can have this?
Content (required):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
Answers
-
Hi @Mohamed Hasan ,
You can try prompting the Start and End dates separately in your prompt. You can then create two presentation variables to receive each date.
Receiving those dates through Presentation variables will allow you to pass them to a report and get the Date Diff between them. Here is the column formula:
TIMESTAMPDIFF(SQL_TSI_DAY, @{pvStartDate}{CURRENT_DATE}, @{pvEndDate}{CURRENT_DATE})
Hope this help.
Cheers,
0