Forum Discussion
ushadow91
07-20-2023Data Storage
Thanks HamzaJ I'm getting
- "Unexpected Token '[' in FunctionParameters Definition".
- "Unexpected token')' in Boolean expression"
sum([All Tickets],
CASE
WHEN MAX(DDIFF(NOW()[Days Difference])) >1
THEN sum([All Tickets])
WHEN MAX(DDIFF(NOW()[Days Difference])) < 1
THEN 0
end)
HamzaJ
07-20-2023Data Integration
You forgot the , . Try the following:
sum([All Tickets],
CASE
WHEN MAX(DDIFF(NOW(),[Days Difference])) >1
THEN sum([All Tickets])
WHEN MAX(DDIFF(NOW(),[Days Difference])) < 1
THEN 0
else 0
end)