Anthony stark Posted August 12, 2019 Share Posted August 12, 2019 Hi Experts, How do i write the sql date expression below in spotfire expression sysntax (A.STARTDATE > TO_DATE('27-APR-20','dd-MON-yy')+999 OR A.STARTDATE Link to comment Share on other sites More sharing options...
Anthony stark Posted August 14, 2019 Author Share Posted August 14, 2019 Any help Link to comment Share on other sites More sharing options...
Stefan Hansen 2 Posted August 15, 2019 Share Posted August 15, 2019 Hi, can you explain what you want to do here Calculating new columns or just filtering the data Link to comment Share on other sites More sharing options...
Anthony stark Posted August 15, 2019 Author Share Posted August 15, 2019 I am trying to calculate a new column with the SQL syntax converted to a spotfire expresssion. Thanks Link to comment Share on other sites More sharing options...
Stefan Hansen 2 Posted August 15, 2019 Share Posted August 15, 2019 The syntax you have pasted is not my area of expertise can you explain what it does, do you want to add or subtract a number of days from the date column Please explain the data you have and what you want to do with it. Link to comment Share on other sites More sharing options...
Anthony stark Posted August 15, 2019 Author Share Posted August 15, 2019 Hi Stefan, im trying to calculate 999 calendar days before or after that date specified Link to comment Share on other sites More sharing options...
Stefan Hansen 2 Posted August 15, 2019 Share Posted August 15, 2019 Thank you for explaining :) You can use the dateadd function: To calculate +999 days: DateAdd('day',999,[DateColumn]) -999: DateAdd('day',-999,[DateColumn]) In the Data> Calculated column, you can click on the category 'Date and Time' to see the functions that handles dates, if you click on an individual function you can see the syntax that you need to use it. Hope this works for you. Link to comment Share on other sites More sharing options...
Anthony stark Posted August 15, 2019 Author Share Posted August 15, 2019 Thanks Stefan, i appreciate it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now