CR 10
SQL 2005
I am fixing a estimate report I inherited. It's a manual cross tab that I need to be able to populate date columns for. Say I have a job# and this job# has 4 possible revisions. Each revision has a different DateTime and amount. I can figure min and max easy enough for Date1 and Date4, but how do I figure out Date2 and Date3? I have 4 date formulas and 4 amount formulas. The amount formulas are like this:
I am trying to figure out the date formulas.
Job# ABC123
REVID:04
TASK: DATE1: July 6,1999 DATE2: DATE3: DATE4: April 5, 2000
Art
AMOUNT: 123.00 321.00
Talent
AMOUNT: 1,345.00 2,678.00
Radio
AMOUNT: 45.00 55.00
Travel
AMOUNT: 4,000.00 3250.00
SQL 2005
I am fixing a estimate report I inherited. It's a manual cross tab that I need to be able to populate date columns for. Say I have a job# and this job# has 4 possible revisions. Each revision has a different DateTime and amount. I can figure min and max easy enough for Date1 and Date4, but how do I figure out Date2 and Date3? I have 4 date formulas and 4 amount formulas. The amount formulas are like this:
Code:
//@Amount1
if ToText({a_datetime}, "MM/dd/yyyy") = {@Date1}
then {Amount}
else 0
Job# ABC123
REVID:04
TASK: DATE1: July 6,1999 DATE2: DATE3: DATE4: April 5, 2000
Art
AMOUNT: 123.00 321.00
Talent
AMOUNT: 1,345.00 2,678.00
Radio
AMOUNT: 45.00 55.00
Travel
AMOUNT: 4,000.00 3250.00