1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Lookerのカスタム書式設定で¥を表示する方法

Posted at

Lookerの日本語マニュアル見ても「¥」の表記方法が書かれていなかったので、備忘として残します。

やりたい事

Lookerのグラフや表の金額情報に「¥」を表示させる

下調べ

デフォルトの設定情報はこちらに書かれています。
https://docs.looker.com/ja/exploring-data/custom-formatting

ここを見てみると、「¥」表記についての記述がない事に気付きます。

えっ。まじすか!?
日本にLooker普及させる気マジである?大丈夫?とLookerさんに問い正したい気持ちに駆られました。
それはまたの機会にして、とりあえずLiveChatで聞いてみたら、「¥」はデフォルト設定ないので、エスケープして試行錯誤必要。という事のようでした。

手順

下図の通り、

  • EDITからValesタブを選択する
  • Value Labelsをアクティブ化する
  • Value Formatにエスケープさせたコードを記入する
--頭に¥表記して、1000単位の区切りを入れる書式

\¥#,##0

スクリーンショット 2020-07-14 12.39.27.png

  • 出来上がり!
    スクリーンショット 2020-07-14 12.39.35.png

 あとがき?

日本語表記もデフォルトで使えるといいなと思います。
Looker自体欧米主体で普及しているのは間違い無いと思うのですが、日本でLooker普及率を上げるにはこの手のローカライズも重要なのではと思いますので、今後のアップデートでデフォルト設定して欲しいと切に願います。

1
2
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?