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