Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

formatting - DataStudio Question with Google Sheets- Add commas, add percentage point

I am creating a Data Studio report using Google Sheets for my data. I am trying to add numbers (ex 1,234) and I need to keep the commas in the DataStudio report. How do I do that? DataStudio keeps removing the commas.

I am also adding percentages (ex 1.234%) and I need it to be 3 percentage points but DataStudio is only adding 2. How do I do that?

Thank you so much!

question from:https://stackoverflow.com/questions/65906093/datastudio-question-with-google-sheets-add-commas-add-percentage-point

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I'm not sure if you just want to change the dot/comma with something different, or if they're just hidden. If they're just hidden, you can force them to unhide in the table setting a value for the field "Decimal precision" in the "Style" tab.

Decimal precision in style tab

But if you really want to change the dot/comma behavior, you must understand that, in DataStudio, dots and commas follows the user regional preferences, and there's no simple way to customize this (actually, the best you can do is to treat the field as text and force the symbol you want to use).

Notice that in USA and some other countries, dots are used for decimal separation and commas are used as thousand separator. In my country, Brazil, we use the opposite, and other symbols/configurations exists around the globe.

I prefer to use Google in US English because I don't like translated menus. However, I know that my users usually set their accounts to Brazilian Portuguese, so when they open the dashboard made by me, it'll be displayed using their personal preferences.

So if you just want to adjust the formatting to your regional preference, there's nothing you need to do. Just assure your Google account and your users are set accordingly.

But if you really want to force the appearance of a number to a specific need, as I said, you'll need to convert it to text and format by yourself.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...