Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Fia_Fiia
Contributor
Contributor

how to calculate percentage

Hi,

Please help me, I want calculate percentage but this formula doesn't work, the percentage not 100 %

 
 

COUNT({<[EmpStatusByMonth] = {[Active]}>} distinct [Emp No] )/Count({<[EmpStatusByMonth] = {[Active]}>} TOTAL<[Emp No],PT,[Fto Name],Month>distinct [Emp No])

 

 

3 Replies
Vegar
MVP
MVP

It could be the EmpStatusByMonth modifier that is wrong. Try this:

COUNT({<[EmpStatusByMonth] = {'Active'}>} distinct [Emp No] )/Count({<[EmpStatusByMonth] = {'Active'}>} TOTAL<[Emp No],PT,[Fto Name],Month>distinct [Emp No])

 
Fia_Fiia
Contributor
Contributor
Author

I tried it but it still doesn't work ....
Vegar
MVP
MVP

Do you have control over your TOTAL <...> setup. Try removing the <...> and add one dimension at the time.

 

COUNT({<[EmpStatusByMonth] = {'Active'}>} distinct [Emp No] )/Count({<[EmpStatusByMonth] = {'Active'}>} TOTAL<[Emp No],PT,[Fto Name],Month>distinct [Emp No])