Hi @Spunny
I think you can use expression like below for the sum of Value column ,so is to Gain column
=Sum(iif(Fields!Cost.Value=0 and Fields!type.Value = "CREDIT",0,Fields!Value.Value))
Here is the result,for test I change the data a bit:
Best Regards,
Isabella
If the answer is the right solution, please click "Accept Answer" and upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.