Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Community,
I was showing the numbers of separated employees for previous month now I have to put one condition that if EMP_Status = LWP than it does not come under the count.
current using expression for last month count:- Count({<LYear={'$(=Year(Today()))'}, LMonth={'$(=Month(Addmonths(Today(),-1)))'}>} distinct EMP_CODE )
Please advise..
Thanks
Count({<LYear={'$(=Year(Today()))'}, LMonth={'$(=Month(Addmonths(Today(),-1)))'},EMP_Status = -{'LWP'}>} distinct EMP_CODE )
For 2021 Jan, your expression will be like LMonth = Dec & LYear = 2021 and display zero values.
So change the formula like below
Count({<LYear={'$(=Year(Addmonths(Today(),-1)))'}, LMonth={'$(=Month(Addmonths(Today(),-1)))'}, EMP_Status -={'LWP'}>} distinct EMP_CODE )
Thanks for the response, later on I was able to adjust it properly.
Thanks for the advise Mayil, I didn't realize that next year I have to make correction in my KPI's