Search code examples
looker-studio

How can I remove decimals from Percent or Currency


I am trying to find out how to remove decimals in a dimension that is set to display percent. By default, it shows two decimals in percent. For example, zero percent will show as 0.00%. How can I make it show 0% instead of 0.00%? I tried to use a calculated field XRound [ROUND(X,0)], but when I set XRound to show percent instead of number, it still shows 0.00% and I see no way to change that to 0%.

Same thing happens with Currency - Google Data Studio adds two decimals by default and I cannot find out how to remove them. For example, it shows $100.00 - how to make it show $100 (without any decimals)?


Solution

  • In "Style", there is an option to control the decimal precision of metrics. You can control the decimal precision of all metrics added to a visual individually.

    If you don't want decimals to appear, just change this option to zero.

    Style > Decimal precision