hello, this seems to be straight forward, but I could not get it.
I wanted to sum up the cost based on distinct code, but my beast mode does nto work:
a sample data, I wanted to calculate sum of cost by distinct code, the sum should be 33. each code has the same cost.
this is my beast mode:
SUM(
CASE
WHEN(distinct `code') then `cost`
END
)