Thanks for your answer. That’s not exactly what we need. In the picture you can see the different groups I created. Right now it grabs the discount from these together (discount over discount etc). We want it to calculate the discount per group separately.