I've create a klip to show billable and none billable time for the current 7 days, so I'm creating an array to do this using SELECT AND, but its not returning any data, please help
Code
array(
SELECT(
SUM(@Hours),
AND(
@Billable = "true",
DATEVALUE(@Spent Date, "yyyy-M-dd") = DATEVALUE(TODAY(), "yyyy-M-dd")
)
),
SELECT(
SUM(@Hours),
AND(
@Billable = "true",
DATEVALUE(@Spent Date, "yyyy-M-dd") = DATEVALUE(DATE_ADD(TODAY(), "5", 1, "yyyy-M-dd")
)
)
),
SELECT(
SUM(@Hours),
AND(
@Billable = "true",
DATEVALUE(@Spent Date, "yyyy-M-dd") = DATEVALUE(DATE_ADD(TODAY(), "5", 2, "yyyy-M-dd")
)
)
),
SELECT(
SUM(@Hours),
AND(
@Billable = "true",
DATEVALUE(@Spent Date, "yyyy-M-dd") = DATEVALUE(DATE_ADD(TODAY(), "5", 3, "yyyy-M-dd")
)
)
),
SELECT(
SUM(@Hours),
AND(
@Billable = "true",
DATEVALUE(@Spent Date, "yyyy-M-dd") = DATEVALUE(DATE_ADD(TODAY(), "5", 4, "yyyy-M-dd")
)
)
),
SELECT(
SUM(@Hours),
AND(
@Billable = "true",
DATEVALUE(@Spent Date, "yyyy-M-dd") = DATEVALUE(DATE_ADD(TODAY(), "5", 5, "yyyy-M-dd")
)
)
),
SELECT(
SUM(@Hours),
AND(
@Billable = "true",
DATEVALUE(@Spent Date, "yyyy-M-dd") = DATEVALUE(DATE_ADD(TODAY(), "5", 6, "yyyy-M-dd")
)
)
)
)