Thank you Amit,
I tried your suggestion, it didn't work as is. I used instead = sum(max([Amount])) in ([Case Id])
This gave me the result i wanted, but only when having those two lines... because obviously, the formula ignored the other lines that also has 250000 in amount even with different Case ID... so i end up with a very small amount instead of what i should get. The total resulted in 7 millions instead of 368 millions.
Thank you for the input, it's been helpful
Said