Aggregation Mismatch

Hello @DBrom and welcome to the Quicksight community!

If you are able to access the dataset, it might be easier to do the calculations in SQL as fields and then calculate the if/then statements in Quicksight.

I also recommend checking out these similar issues that came up in the past to see if Nesting might help:

Let me know if this helps!