0
0

More than 1 year has passed since last update.

Google Looker Studio DATETIMEフィールドをNUMBERタイプに変換するクエリ

Last updated at Posted at 2023-05-17

Google Looker Studioで、DATETIMEフィールドをNUMBERタイプに変換したい場合は、「CAST」を使います。

CAST(CAST(your_datetime AS TEXT ) AS NUMBER )

追記
下記の記事により、DATETIME_DIFFでNUMBERタイプに変換可能だと言われていますが、未検証ですから、ご参考まで
https://stackoverflow.com/questions/71203454/how-can-i-convert-a-date-field-to-number-in-google-data-studio

DATETIME_DIFF(your_datetime, DATE(1899, 12, 31), DAY) + 1
0
0
0

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
0
0