Combining Label Templates

Hi - It appears a Label Template overrides the Label Format. So I'm trying to integrate the format into the template string but I'm not familiar with code.

I use this template to remove the "0" labels:
#if (value == 0 || value == "N/A") {# #=' '# #} else {# #=value# #}#

But I also want the format of the number to be limited to 2 decimal places. How do I integrate this format into the above template? {0:n2}

Thanks!

Have you tried something like this?
#= value == 0 ? ' ' : value.toFixed(2) #

1 Like