I need to sum a value based on a condition on BI Publisher on RTF format. This is what's intended: IF FIELD1 = 'THIS' THEN SUM(FIELD2)
So far, i have the current formula:
if FIELD = 'THIS' THEN 'N/A? else sum(FIELD2) end if
The problem is that the sum is not working. It returns 0 for every result when it should be other values. THe N/A part is ok.
How can i achieve this?