Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

trying to measure 2 conditions

hi,

count({<[Year]={$(=max([Year])-1)}>}EMP_STATUS='A')

in the above statement i m trying to count emp_status value A for perivous year .

is it correct ?

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

no,

Correct is as below.

count({<[Year]={"$(=max([Year])-1)"},EMP_STATUS={"A"}>}EMP_STATUS)


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

12 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

no,

Correct is as below.

count({<[Year]={"$(=max([Year])-1)"},EMP_STATUS={"A"}>}EMP_STATUS)


Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
OmarBenSalem

I don't thinkk that would be ok, I would do it as follow:

count({<EMP_STATUS={'A'},[Year]={$(=max([Year])-1)}>}EMP_STATUS)

Anonymous
Not applicable
Author

what if we want to calculate for the same year

Anonymous
Not applicable
Author

what if we want to calculate for the same year

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

It will be

count({<EMP_STATUS={'A'},[Year]={$(=max([Year]))}>}EMP_STATUS)

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
agigliotti
Partner - Champion
Partner - Champion

it should looks like below:

count( {< EMP_STATUS = {'A'}, [Year] = {"$(=Max([Year]))"}>} EMP_STATUS )

Anonymous
Not applicable
Author

can i get tutorial/training guide for this ?

Anonymous
Not applicable
Author

can i get tutorial/training guide for this ?

devarasu07
Master II
Master II

HI,

PFA,