I can correctly write equation containing text, in latex equation editor online. So:
\text{Micro-averaged Precision} = \frac{TP_{total}}{TP_{total} + FP_{total}}
In Overleaf, this is displayed somehow not as intended (without space):
With the Undefined control sequence.
error.
\text
was not defined, loadamsmath
package. Also use_{\mathrm{total}}
don't use math italic for words