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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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)