The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

Please help me in correcting the sql code in information link in order to retrive last 60 days data into dashboard from a date field


Sony Hejmady

Recommended Posts

I want to get 60 days data from a date field transaction_date .In tibcommunity I got this code DATEDIFF(day, %1, GETDATE()) < 60

Not sure where to apply this in the fllowing sql code in fo link.Can we apply in filter If yes please send screenshot.

This is my sql code in information link.

SELECT

a."match date" AS "MatchDate",

a."transaction_date" AS "Tran DATE",

FROM

"app"."salpayemnts" o1

Link to comment
Share on other sites

SELECT

a."match date" AS "MatchDate",

a."transaction_date" AS "Tran DATE",

FROM

"app"."salpayemnts" o1

wherea."transaction_date" >DateAdd(d, -60, GetDate())

Second Option is to load all the data into spotfire without filtering for the last 6o days. Then use the below steps to filter for the last 60 days in your visualization.

Properties>Data>Limit data using expression click edit> "transaction_date" >DateAdd(d, -60, DateTimeNow())

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...