简体   繁体   English

如何使用自定义 JOIN 计算仅返回值的最后两个单词?

[英]How do I use a custom JOIN calculation to return only last two words from a value?

I have the following dataset that I'm trying to import from SQL into Tableau我尝试将以下数据集从 SQL 导入 Tableau

在此处输入图像描述

So I would want to go from the first column, to the second column:所以我想从第一列到第二列 go :

在此处输入图像描述

So far I have the following custom query but it's only going off of characters:到目前为止,我有以下自定义查询,但它只是脱离字符:

STR (LEFT ([Membership Code], 5))

How could I change it to give me the desired results?我怎样才能改变它来给我想要的结果?

Do you want this?你想要这个吗?

Replace ([rollup_name], 'Organisation/HFT/USA/Z01/R01/D08/0053/', '')

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM