Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

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.