Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
janarthanan_rb
Contributor II
Contributor II

Count of regions who has achieved 100% Sales

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

1 Solution

Accepted Solutions
sunny_talwar

May be like this:

Sum(Aggr(If(Sum(Sales)/Sum(Target) >= 1, 1, 0), Region))

View solution in original post

2 Replies
sunny_talwar

May be like this:

Sum(Aggr(If(Sum(Sales)/Sum(Target) >= 1, 1, 0), Region))

swuehl
MVP
MVP

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.