I wonder if you can help me in this situation. What i want is: If a specific field has a specific value (example, if on the column "item" one of the fields is equal to "item1") I want the sum of the cost of that "item1" (in this case, the cost is a fixed value, so I want the number of times that specific item appears x that value) otherwise I want it to return 0
can you please help me? thanks
I've tried something like this but no good:
if ({WGCDocLinhas.artigo}='TAXA') >= 1 then select SUM {WGCDocLinhas.precounit} from WGCDocLinhas where WGCDocLinhas.artigo}='TAXA'