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

Syntax

Count({<LastName = ('Smith'), HireDate>= {‘1/1/2013’}>} Distinct SalesPersonID)

What is the error?

9 Replies
m_woolf
Master II
Master II

need braces{} around Smith, not parentheses

naziralala
Creator
Creator
Author

tried that.. does not work

m_woolf
Master II
Master II

are you getting an error or just not the results that you hoped for?

naziralala
Creator
Creator
Author

It is showing as Error in modifier expression

m_woolf
Master II
Master II

The other thing that is wrong is the syntax for >=

It needs to be something like this:

HireDate= {‘>=1/1/2013’}

also set analysis is very picky about date formats. It might be better to use numbers for the comparison.

naziralala
Creator
Creator
Author

This was helpful.

Thank You

ankitaag
Partner - Creator III
Partner - Creator III

=Count({<LastName = {'Smith'}, HireDate= {‘>=1/1/2013’}>} Distinct SalesPersonID)

naziralala
Creator
Creator
Author

Thanks Ankita,

this works...

ankitaag
Partner - Creator III
Partner - Creator III

Hi Nazira,

Kindly mark any 1 of the answer as helpful correct so as to close the discussion