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: 
Not applicable

function inside function

Hi,

i have written as follows:

=count({1<[Termination Year]={"=$(=(year(today())))"}>}([Employee Number]))

this should give count of employees terminated in year=current year. But it is not giving.

Is there any wrong in function used.

1 Solution

Accepted Solutions
sunny_talwar

Try this may be:


=Count({1<[Termination Year]={"$(=Year(Today()))"}>} [Employee Number])

View solution in original post

7 Replies
sunny_talwar

Try this may be:


=Count({1<[Termination Year]={"$(=Year(Today()))"}>} [Employee Number])

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try this: =count({1<[Termination Year]={$(=year(today()))}>} [Employee Number])


talk is cheap, supply exceeds demand
miguelbraga
Partner - Specialist III
Partner - Specialist III

Hey

I think you have the expression wrong, it should be something like this:

=count({1<[Termination Year]={$(=year(today()))} >} [Employee Number])

If you want to affect the number by selection use this:

=count({$<[Termination Year]={$(=year(today()))} >} [Employee Number])

Regards,

MB

miguelbraga
Partner - Specialist III
Partner - Specialist III

Not applicable
Author

hey as per the syntax there must be "=" before the $ right? If  i place = it is behaving in correctly can u tell the reason?

Not applicable
Author

sunindia

hey as per the syntax there must be "=" before the $ right? If  i place = it is behaving in correctly can u tell the reason?

sunny_talwar

Not always. When you are equating it to a number, I don't think you need that. But if You were saying >= or <= or  <> then you will need it.