Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jegadeesan
Creator
Creator

Distinct Count of Region for target completed.

Hi All,

I have to count  target completed distinct regions .

No of regions which has sales greater then its target of sale.

Am trying with below given expression but not getting expected one.

if(A='a' and B='b' and ((sum({<status='Actual'>}sales)/1000)

>=

((sum({<status='Target''>}sales)/1000))),count(distinct(Region))

Regards,

Jegadees.

1 Reply
sunny_talwar

How about this?

Count(DISTINCT {<Region = {"=Sum({<status='Actual'>}sales) >= Sum({<status='Target''>}sales))"}, A = {'a'}, B = {'b'}>} Region)