Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to calculate the number of regions who have achieved 100% sale by comparing the target value.
Both sale and target values are derived from the expression.
Many thanks in advance
May be like this:
Sum(Aggr(If(Sum(Sales)/Sum(Target) >= 1, 1, 0), Region))
May be like this:
Sum(Aggr(If(Sum(Sales)/Sum(Target) >= 1, 1, 0), Region))
Could you be more specific about your model, expression context and how you derive sales and target?
Maybe something like
=Sum( Aggr(If( Sum(Sales) = Sum(Target),1), Region))
could work.