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

What's the equivalent of Count() in QlikView?

In SQL Server, script below counts if data exists with conditions. I want to know how it is done in Set Analysis.

IF (SELECT Count(*) FROM Customer WHERE CustomerType IN ('10','25,'50') > 1)

       SET BackColor = 'Blue'

ELSE

      SET BackColor = 'Red'

2 Solutions

Accepted Solutions
tresesco
MVP
MVP

Try like:

Count({<CustomerType={'10','25,'50'}>}CustomerType)

View solution in original post

Anil_Babu_Samineni

Perhaps this

If(Count({<CustomerType={'10','25,'50'}>}CustomerType)>1, Blue(), Red())

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
tresesco
MVP
MVP

Try like:

Count({<CustomerType={'10','25,'50'}>}CustomerType)

Anil_Babu_Samineni

Perhaps this

If(Count({<CustomerType={'10','25,'50'}>}CustomerType)>1, Blue(), Red())

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful