None of this resolves above is correctly.
Previous I explain why uour first formula can't calculate good result, now I understand why Reebo's formula is wrong.
You use DistinctCount, not Count, so I recognize You join two tables, due to some of {pers_id} are dupplicated. If You use formula
if...
I gess what is wrong.
You use formula :
If Not({mgt level} = 'M') then {pers_id)
This formula gives you sometimes {pers_id} sometimes null. DistinctCount counts this Null as 22nd employe.
On the other hands, I don't understand why formula
If Not({mgt level} = 'M') then 1 else 0
gives You...
I think, You should use typiacal Crystal's function "count".
When there are no records function "count" displayed blank filed but not number "1".
Jadwiga.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.