To show values in complex formats you can use dual function.
It creates complex value that has both numerical and text representation.
For example in your case
=dual(num(Count(ID),'0') &' or '& num(Count(ID)/Count(total ID)*100,'0 percent'), Count(ID))
For drawing a pie QlikView will use numerical value and for showing "Text on Data Points" or "Show Numbers In Legend" it will use text representation.