我如何从 Google Data Studio 中的文本中提取数字?

How I extract number from text in Google Data Studio?

我试过了,但它仍然显示 null,正如您在屏幕上看到的那样。请帮助解决这个问题。

REGEXP_EXTRACT(X,"[0-9]*[0-9]")

可以使用Calculated Field below which uses the REGEXP_EXTRACT function to extract the numbers and the CAST函数实现,确保是Number字段:

CAST(REGEXP_EXTRACT(Attività, "(\d+)") AS NUMBER )

Google Data Studio Report和GIF详解: