【发布时间】:2021-01-26 18:32:01
【问题描述】:
我有一个这样的数据表。
| Comment 1 | Comment 2 | Comment 3 |
|---|---|---|
| This is a text comment | null | null |
| null | this text comment has a number 2 | null |
| null | null | this is comment 3 |
我想创建一个计算字段,这样我就有一列可以将所有数据聚合成一个这样的列。
| Combined Comment |
|---|
| This is a text comment |
| this text comment has a number 2 |
| this is comment 3 |
我确实阅读了有关 CONCAT 的 GDS 帮助文档,我发现 null 值使它成为 null。
在合并其中两列但不是全部三列时,我的 CASE 语句的运气稍好。
我还尝试将两列合并,然后将该合并列用于另一个计算字段,但没有运气。
所有字段都设置为文本,许多字段混合使用字母和数字字符,但应视为文本。没有只是数字。
感谢任何帮助。
【问题讨论】:
标签: google-data-studio case-statement