I think you can do this with a few TSQL commands (which will work in your BAQ).
First, get the number of days from your date into an integer. If not already, convert your Julian to a string then:
CAST(RIGHT(‘17256’,3) AS int) – 1
this should return 255. Now you add this number to the beginning of the year:
CONVERT(sqlDateVar,‘01/01/’ + LEFT(‘17256’,2), 1) // Use 101 if you include the century in your string
So now sqlDateVar holds the date for the first day of the year. All you have to do is add the number of days from above:
DATEADD(day, 255, sqlDateVar)
To add your 90 days, just add that to the number of days above. You can create intermediate variables or combine it into one calculated field once you’re comfortable.
Mark,
I am getting a syntax error when attempting the first function. I have added screen shots below to help with our discussion and to confirm that I have the base BAQ created correctly. Currently my work around is to dump this report into an Excel template. Please review at your leisure.