Google bigquery 在'之后提取数据_';DataStudio中的字符串

Google bigquery 在'之后提取数据_';DataStudio中的字符串,google-bigquery,google-data-studio,Google Bigquery,Google Data Studio,我有一个位置数据表 91026_2854869 91026_1017246 91026_1101125 91026_3453666 我想提取“\u1”后面的数字,并显示如下结果 2854869 1017246 1101125 3453666 我尝试了下面的查询,但在datastudio中返回错误 split(location_id,"_")[OFFSET(0)] as location_code 我认为这个REGEXP\u提取比这个效果更好。在标准SQL中尝试以下操作:

我有一个位置数据表

91026_2854869
91026_1017246
91026_1101125
91026_3453666
我想提取“\u1”后面的数字,并显示如下结果

2854869
1017246
1101125
3453666
我尝试了下面的查询,但在datastudio中返回错误

split(location_id,"_")[OFFSET(0)] as location_code

我认为这个REGEXP\u提取比这个效果更好。

在标准SQL中尝试以下操作:

with data as (
 select '91026_2854869' as x
 UNION ALL
 select '91026_1017246' as x
 UNION ALL
 select '91026_1101125' as x
 UNION ALL
 select '91026_3453666' as x
)
select REGEXP_EXTRACT(x,  r"_([0-9]+)") from data;